Here's an idea: In your maildropwrapper, also call various variants of "who am I" to check if it is run with different permissions or group memberships when invoked by postfix.
Maybe some crucial operation in choosing the correct maildir fails because of lack of permission On 31/03/2016 18:07, chaouche yacine wrote: > Sorry, I was wrong. The maildir is messed up in the database, and > surprisingly enough, maildrop is able to deliver mail even with full path > maildirs when invoked from the command line. When invoked from postfix it has > a different behaviour : > > > Here's what it outputs when invoked from command line : > > root@messagerie[10.10.10.20] ~ # cat /home/vmail/maildropwrapper > #!/bin/bash > echo calling maildrop with arguments "$@" >> /tmp/maildrop 2>&1 > maildrop "$@" >> /tmp/maildrop 2>&1 > root@messagerie[10.10.10.20] ~ # > > root@messagerie[10.10.10.20] ~ # echo "envoi vers a.chaouche" | > /home/vmail/maildropwrapper -V9 -d a.chaou...@algerian-radio.dz -w 80 > root@messagerie[10.10.10.20] ~ # cat /tmp/maildrop > calling maildrop with arguments -V9 -d a.chaou...@algerian-radio.dz -w 80 > maildrop: authlib: groupid=120 > maildrop: authlib: userid=113 > maildrop: authlib: logname=a.chaou...@algerian-radio.dz, 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] ~/SCRIPTS/MAIL # mail > a.chaou...@algerian-radio.dz > Subject: hello > test > . > Cc: > root@messagerie[10.10.10.20] ~/SCRIPTS/MAIL # cdroot@messagerie[10.10.10.20] > ~ # cat /tmp/maildrop > calling maildrop with arguments -V9 -d a.chaou...@algerian-radio.dz -w 80 > maildrop: authlib: groupid=120 > maildrop: authlib: userid=113 > maildrop: authlib: logname=a.chaou...@algerian-radio.dz, home=/var/vmail/, > mail=algerian-radio.dz/a.chaouche/ > maildrop: Changing to /var/vmail/ > Message envelope sender=r...@messagerie.algerian-radio.dz > 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] ~ # > > Pay attention to the line that says "calling maildrop with arguments"... > they're the same on both scenarii. What could be the reason to have two > different outputs for the same command ? > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 > _______________________________________________ > Courier-imap mailing list > Courier-imap@lists.sourceforge.net > Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap Enjoy Jakob -- Jakob Bohm, CIO, Partner, WiseMo A/S. https://www.wisemo.com Transformervej 29, 2860 Søborg, Denmark. Direct +45 31 13 16 10 This public discussion message is non-binding and may contain errors. WiseMo - Remote Service Management for PCs, Phones and Embedded ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 _______________________________________________ Courier-imap mailing list Courier-imap@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap