| |||||||||||||||||||||||||||||||
|
> Hi list, > > I am using P. 2.2.10-1ubuntu0.1 (i.e. from package at Ubuntu 6.06 LTS) > as a mail gateway. Recently I started to observe very strange behavior on my > production server: > > When I send an e-mail to user1, I expect the mail to be > delivered from smarthost to user1. Instead, it is > delivered to a list named user1g, where user1 is a member of... (which is > obviously wrong). > > No matter how detailed logs I turned on, all I can see is proper > addressing in "first round" (before content filtering) > ... > May 17 17:47:48 XXX postfix/smtp[4414]: 6729C2DEC6D: > to=<user1>, relay=127.0.0.1[127.0.0.1], delay=0, status=sent > (250 A0125AAF620 queued for delivery) > > no address processing in content filters (I swear) and when the e-mail is > reinjected, and in Round Two myscript.pl is invoked immediately > > May 17 17:47:52 XXX postfix/smtpd[4617]: D369C2E5CA6: > client=localhost.example.org[127.0.0.1] > May 17 17:47:52 XXX postfix/cleanup[4162]: D369C2E5CA6: > message-id=<464C791E.2090302> > May 17 17:47:53 XXX postfix/qmgr[4069]: D369C2E5CA6: > from=<daria.morgendorffer>, size=1158, nrcpt=1 (queue active) > May 17 17:47:56 XXX myscript[4741]: running as UID 112 EUID 112 GID 112 > 112 EGID 112 112 > ... > Please show all lines related to the message # grep 6729C2DEC6D /var/log/maillog # grep D369C2E5CA6 /var/log/maillog Ralf has a perl script to find such lines. he posted the link recently. > > > some config snippets: > snippets are not supported. send output of 'postconf -n'. see http://www.postfix.org/DEBUG_README.html#mail > ** main.cf: > virtual_alias_maps = hash:/etc/postfix/virtual, > hash:/etc/postfix/groups/virtual > alias_maps = hash:/etc/postfix/aliases, hash:/etc/postfix/groups/aliases > virtual_alias_domains = $virtual_alias_maps > canonical_maps = pcre:/etc/postfix/canonical > content_filter = scan:[127.0.0.1]:10023 > > > ** virtual: > user1 user1 > You use two */virtual files. how do we know which one you describe here? > > ** groups/aliases: > user1g: "|/usr/local/scripts/myscript.pl > /etc/postfix/groups/user1g.list" > > > ** groups/user1g.list: > user1 > > > ** canonical: > /^user1$/ real.name > > note that it is also possible that the configuration you post here is different from your actual configuration. nothing proves that your obfuscation preserves the configuration. you may want to add a real user (user1) to minimize the need for obfuscation (so that only the domain is replaced by example.org).
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com