On Sun, Mar 01, 2009 at 03:49:18AM +0000, Daniel C wrote: > I just changed the owner of the IMAP folder and assigned Postfix and > courier-authlib to use this new user. It has a UID and GID of 1000.
What user does amavis run as? What you say that Postfix uses "this new user", what do you mean by that? > Here a new set of headers (from both duplicated mails), and a copy of my log > from this. Sorry if I put a link in my message, it's because I can't include > all the header's data from Hotmail... > > http://www.myrandor.com/postfix2.txt > > From what I can see in there, the email is picked up only once from my > mail client. So I suspect something's wrong in Postfix... Come on, there is no basis for this conclusion, indeed the opposite seems likely, the extra copy has: Received: by mail.mydomain.com (Postfix, from userid 1000) id 1E671420CF8; Sat, 28 Feb 2009 22:17:41 -0500 (EST) X-IMAP-Sender: jac...@mydomain.com Are you saying that Postfix adds the "X-IMAP-Sender" header that is not in the original SMTP message? The second copy is injected by user 1000, what is running as that user now? > Seems like > it delivered the mail to Amavis, but doing a copy to itself at the > same time...? Don't waste your time looking for Postfix bugs. The unwanted duplication will be found in non-Postfix code, unless you find it, you will make no progress. Pursue this on the amavis list. >From your logs, below are shown the ONLY deliveries performed by Postfix. No Postfix delivery is via a delivery agent that is capable of calling sendmail(1) to fork the message, because lmtp(8) and virtual(8) simply don't have code to do this. All deliveries before virtual(8) delivery are to amavis, which is presumably still running as the wrong user (1000 just like virtual(8) and the IMAP server, instead of a dedicated user). Your amavis config forks the message. Don't do that. In via smtpd(8) out via lmtp(8) to amavis: Feb 28 22:17:40 homer postfix/smtpd[23674]: B82157EDC6: client=ip-xxx.xxx.xxx.xxx.dsl-xxx.net[xxx.xxx.xxx.xxx], sasl_method=PLAIN,sasl_username=jac...@mydomain.com Feb 28 22:17:40 homer postfix/cleanup[23681]: B82157EDC6: message-id=<49a9fe50.1090...@mydomain.com> Feb 28 22:17:44 homer postfix/lmtp[23682]: B82157EDC6: to=<jac...@mydomain.com>, relay=10.0.32.13[10.0.32.13]:10024, delay=3.4, delays=0.08/0.01/0/3.3, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=15794-04, from MTA([10.0.32.13]:10025): 250 2.0.0 Ok: queued as 0FF3437098E) In via sendmail(1) out via lmtp(8) to amavis: Feb 28 22:17:41 homer postfix/pickup[23038]: 1E671420CF8: uid=1000 from=<jac...@mydomain.com> Feb 28 22:17:41 homer postfix/cleanup[23681]: 1E671420CF8: message-id=<49a9fe50.1090...@mydomain.com> Feb 28 22:17:44 homer postfix/lmtp[23697]: 1E671420CF8: to=<jac...@mydomain.com>, relay=10.0.32.13[10.0.32.13]:10024, delay=3.5, delays=0.05/0.01/0.01/3.4, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=23199-01, from MTA([10.0.32.13]:10025): 250 2.0.0 Ok: queued as 887707EDC6) In via smtpd(8) from amavis out via virtual(8) to maildir: Feb 28 22:17:44 homer postfix/smtpd[23706]: 0FF3437098E: client=homer.mydomain.com[10.0.32.13] Feb 28 22:17:44 homer postfix/cleanup[23681]: 0FF3437098E: message-id=<49a9fe50.1090...@mydomain.com> Feb 28 22:17:44 homer postfix/virtual[23709]: 0FF3437098E: to=<jac...@mydomain.com>, relay=virtual, delay=0.08, delays=0.06/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir) In via smtpd(8) from amavis out via virtual(8) to maildir: Feb 28 22:17:44 homer postfix/smtpd[23706]: 887707EDC6: client=homer.mydomain.com[10.0.32.13] Feb 28 22:17:44 homer postfix/cleanup[23681]: 887707EDC6: message-id=<49a9fe50.1090...@mydomain.com> Feb 28 22:17:44 homer postfix/virtual[23709]: 887707EDC6: to=<jac...@mydomain.com>, relay=virtual, delay=0.02, delays=0.01/0/0/0.01, dsn=2.0.0, status=sent (delivered to maildir) -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majord...@postfix.org?body=unsubscribe%20postfix-users> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.