On Thursday, March 31, 2016 3:55 PM, Bennett Todd <[email protected]> wrote:

>How about running a logging wrapper script, instead.


Good idea. When maildrop is invoked from the command line, it works. Each mail 
is delivered to the correct Maildir. Here's what it outputs :

root@messagerie[10.10.10.20] ~ # echo "envoi vers a.chaouche" | 
/home/vmail/maildropwrapper -V9 -d [email protected] -w 80

root@messagerie[10.10.10.20] ~ # cat /tmp/maildrop 
calling maildrop with arguments -V9 -d [email protected] -w 80
maildrop: authlib: groupid=120
maildrop: authlib: userid=113
maildrop: authlib: [email protected], home=/var/vmail/, 
mail=algerian-radio.dz/a.chaouche/
maildrop: Changing to /var/vmail/
Message envelope sender=MAILER-DAEMON
maildrop: Attempting .mailfilter
WARN: quota string '1073741824' not parseable
maildrop: Delivery complete.
root@messagerie[10.10.10.20] ~ # 



When invoked from postfix, mail for any recipient is invariably delivered to 
/var/vmail/Maildir, which is nobody's Maildir by the way. Here's what it logs 
(I have prefixed diffrences with +):

root@messagerie[10.10.10.20] ~ # cat /tmp/maildrop 
calling maildrop with arguments -V9 -d [email protected] -w 80
maildrop: authlib: groupid=120
maildrop: authlib: userid=113
maildrop: authlib: [email protected], home=/var/vmail/, 
mail=algerian-radio.dz/a.chaouche/
maildrop: Changing to /var/vmail/
Message envelope [email protected]
maildrop: Attempting .mailfilter

( missing line WARN: quota string '1073741824' not parseable )

+maildrop: Delivering to ./Maildir
+maildrop: Flock()ing ./Maildir.
+maildrop: Appending to ./Maildir.
maildrop: Delivery complete.
root@messagerie[10.10.10.20] ~ # 


What could be the reason to have two different outputs for the same command ?


Here's master.cf

maildrop  unix  -       n       n       -       -       pipe
# flags=DRhu user=vmail argv=/usr/bin/maildrop -V9 -d ${recipient} -w 80 >> 
tmp/maildrop 2>&1 
flags=DRhu user=vmail argv=/home/vmail/maildropwrapper -V9 -d ${recipient} -w 80

Reply via email to