bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-mailutils] Using maidag.


From: G.W. Haywood
Subject: Re: [bug-mailutils] Using maidag.
Date: Wed, 8 Jun 2016 11:22:33 +0100 (BST)

Hello again,

I wondered why the message below hadn't appeared on the list.  I now
see that I sent it to Mr. Hay's email address and not to the list, I
hadn't set up my mail client properly at the time.  Please accept my
apologies Mr. Hay, I do know better than that.

On Sat, 4 Jun 2016, G.W. Haywood wrote:
On Sat, 4 Jun 2016, William Hay wrote:

I have the following in my ~/.maidag ...

That looks like exactly what I need.  Thank you.

I still seem to be missing a vital link in the chain.

What causes maidag to execute the filter?  I have replaced procmail
with maidag in sendmail.cf, and mail is delivered to users' inboxes
(unix-style mboxes in /var/mail/).  However it appears that the sieve
script in the home directory of user 'copy' is not called when mail is
delivered to 'copy'.  Instead mail just stays in /var/mail/copy, as if
maidag has taken no action.  There is no configuration in SYSCONFDIR
(/usr/local/etc/).

mail4:~# >>> maidag --show-config-options
VERSION=2.2     - Version of this package
SYSCONFDIR=/usr/local/etc       - System configuration directory
MAILSPOOLDIR=/var/mail/         - Default mail spool directory
SCHEME=mbox     - Default mailbox type
LOG_FACILITY=mail       - Default syslog facility
USE_LIBPAM      - PAM support
HAVE_LIBLTDL    - a portable `dlopen' wrapper library
WITH_GNUTLS     - TLS support using GNU TLS
WITH_PYTHON     - Support for Python as extension language
WITH_PTHREAD    - Support for POSIX threads
WITH_LDAP
ENABLE_VIRTUAL_DOMAINS  - Support for virtual mail domains
ENABLE_IMAP     - IMAP4 protocol support
ENABLE_POP      - POP3 protocol support
ENABLE_MH       - MH mail storage support
ENABLE_MAILDIR  - Maildir mail storage support
ENABLE_SMTP     - SMTP protocol support
ENABLE_SENDMAIL         - Sendmail command line interface support
ENABLE_NNTP     - NNTP protocol support

mail4:~# >>> cat /home/copy/.maidag  # comments removed from the output below
#debug=trace2
debug {
  level mailbox=trace2;
  line-info true;
}
logging {
  facility mail;
  tag maidag ;
}
filter {
  language sieve;
  pattern "~/.mailfilter.sv";
}

mail4:~# >>> cat /home/copy/.mailfilter.sv
require ["fileinto"];
if address :is :domain "from" "jubileegroup.co.uk"
{
  fileinto "/home/copy/mail/outgoing";
}
else
{
  fileinto "/home/copy/mail/incoming";
}

mail4:~# >>> ls -lart /home/copy/.mailfilter.sv /home/copy/.maidag
-rwx------ 1 copy copy 395 Jun  4 22:42 /home/copy/.mailfilter.sv
-rwx------ 1 copy copy 454 Jun  5 09:58 /home/copy/.maidag

mail4:~# >>> maidag --config-lint --config-verbose
mail4:~# >>>

Mail delivered to user 'copy' is actually addressed (cc'd) to the
addresses 'address@hidden' or 'address@hidden' and that those addresses
are aliases for 'copy' in Sendmail's 'virtusertable' dbm file.

Once more, the working .procmailrc:

8<-----------------------------------
:0 :
* ^Return-Path:address@hidden
/home/copy/mail/outgoing
:0 :
/home/copy/mail/incoming
8<-----------------------------------

What am I missing?

--

73,
Ged.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]