[Pkg-exim4-users] dc_localdelivery='maildir_home' has no effect?

thomas thomas.bsd at gmail.com
Fri Sep 3 09:47:47 UTC 2010


2010/9/2 Andreas Metzler <ametzler at downhill.at.eu.org>:
>> Thanks Andreas. I had "root: " with no redirection in /etc/aliases.
>> But changing this line to "root: jdoe" did not solve the problem. Now
>> mail to root (and to jdoe) go to /var/mail/jdoe, not to
>> /home/jdoe/Maildir. Is it normal? Did I miss something?
>
> What does
> /usr/sbin/exim4 -bt jdoe
> say?

R: system_aliases for jdoe at localbox.somewhere.tld
R: userforward for jdoe at localbox.somewhere.tld
R: procmail for jdoe at localbox.somewhere.tld
jdoe at localbox.somewhere.tld
 router = procmail, transport = procmail_pipe

Thanks for putting me on the right track. I forgot that exim was
calling procmail. John Doe's ~/.procmailrc had only the following
lines:

MAILDIR=/home/jdoe/mail/mailboxes

:0:
$1/

... The $1 arg is given by /home/jdoe/.fetchmailrc:
For instance:
# Put mail in /home/jdoe/mail/mailboxes/amailbox
mda '/usr/bin/procmail -a amailbox

I added a filter in /home/jdoe/.procmailrc:
:0:
* ^To:.*localbox.somewhere.tld$
local/new

This puts the local mail in /home/jdoe/mail/mailboxes/local, which
solves my problem.

There is just one thing I do not understand. For the non-local mail, I
simply indicate "mailboxname" and procmail is clever enough to catch
that it is a maildir mailbox and it puts mail in "mailboxname/new".
But for local mail, I have to tell procmail to put mail in
"mailboxname/new". Not a big thing, but I do not see the logic in
this.

Jedenfalls vielen Dank
Thomas



More information about the Pkg-exim4-users mailing list