Hello,
i've encountered a problem with amavisd-new.
When a mail has multiple recipients, one local and one remote,
amavisd will create 2 messages in two independent mail-sessions, but
report only a single queue-id back to the calling smtp-client.
Let's take a look at the logs to illustrate that in the following
configuration:
[:25,postfix] -> [:10025,transp.proxy] -> [:10026,postfix] -> [:
10027,amavisd] -> [10028:transp.proxy] -> [10029:postfix]
(i've changed the order of the entries for better reading)
------------------------------------
# these lines belong to the 2nd postfix instance at port 10026
#
Mar 2 17:00:21 mail postfix/smtpd[31476]: connect from localhost
[127.0.0.1]
Mar 2 17:00:21 mail postfix/smtpd[31476]: 1750C18D74:
client=pc1.domain.de[9.8.7.6]
Mar 2 17:00:21 mail postfix/cleanup[31497]: 1750C18D74: message-
id=<[EMAIL PROTECTED]>
Mar 2 17:00:21 mail postfix/qmgr[27725]: 1750C18D74:
from=<[EMAIL PROTECTED]>, size=1116, nrcpt=3 (queue active)
Mar 2 17:00:22 mail postfix/smtp[31480]: 1750C18D74:
to=<[EMAIL PROTECTED]>, relay=127.0.0.1[127.0.0.1], delay=1,
status=sent (250 2.6.0 Ok, id=30138-09, from MTA([127.0.0.1]:10028):
250 Ok: queued as E97CC18FF7)
Mar 2 17:00:22 mail postfix/smtp[31480]: 1750C18D74:
to=<[EMAIL PROTECTED]>, relay=127.0.0.1[127.0.0.1], delay=1,
status=sent (250 2.6.0 Ok, id=30138-09, from MTA([127.0.0.1]:10028):
250 Ok: queued as E97CC18FF7)
Mar 2 17:00:22 mail postfix/smtp[31480]: 1750C18D74:
to=<[EMAIL PROTECTED]>, relay=127.0.0.1[127.0.0.1], delay=1,
status=sent (250 2.6.0 Ok, id=30138-09, from MTA([127.0.0.1]:10028):
250 Ok: queued as E97CC18FF7)
Mar 2 17:00:21 mail postfix/smtpd[31476]: disconnect from localhost
[127.0.0.1]
Mar 2 17:00:22 mail postfix/qmgr[27725]: 1750C18D74: removed
# the following lines are produced by the smtpd at port 10028, which
is triggered by amavisd
# first session from amavisd, to deliver to the external recipients
Mar 2 17:00:21 mail postfix/smtpd[31484]: connect from localhost
[127.0.0.1]
Mar 2 17:00:21 mail postfix/smtpd[31484]: E97CC18FF7:
client=pc1.domain.de[9.8.7.6]
Mar 2 17:00:21 mail postfix/cleanup[28863]: E97CC18FF7: message-
id=<[EMAIL PROTECTED]>
Mar 2 17:00:22 mail postfix/qmgr[27725]: E97CC18FF7:
from=<[EMAIL PROTECTED]>, size=1744, nrcpt=2 (queue active)
Mar 2 17:00:22 mail postfix/smtp[31833]: E97CC18FF7:
to=<[EMAIL PROTECTED]>, relay=1.2.3.4[1.2.3.4], delay=1, status=sent
(250 Ok: queued as 3405393)
Mar 2 17:00:22 mail postfix/smtp[31833]: E97CC18FF7:
to=<[EMAIL PROTECTED]>, relay=1.2.3.4[1.2.3.4], delay=1, status=sent
(250 Ok: queued as 3405393)
Mar 2 17:00:22 mail postfix/smtpd[31484]: disconnect from localhost
[127.0.0.1]
Mar 2 17:00:22 mail postfix/qmgr[27725]: E97CC18FF7: removed
# second session from amavisd, to deliver to the internal recipients
Mar 2 17:00:22 mail postfix/smtpd[31484]: connect from localhost
[127.0.0.1]
Mar 2 17:00:22 mail postfix/smtpd[31484]: 0DD8C18FF9:
client=pc1.domain.de[9.8.7.6]
Mar 2 17:00:22 mail postfix/cleanup[31477]: 0DD8C18FF9: message-
id=<[EMAIL PROTECTED]>
Mar 2 17:00:22 mail postfix/qmgr[27725]: 0DD8C18FF9:
from=<[EMAIL PROTECTED]>, size=1917, nrcpt=1 (queue active)
Mar 2 17:00:22 mail postfix/local[31485]: 0DD8C18FF9:
to=<[EMAIL PROTECTED]>, relay=local, delay=0, status=sent (delivered
to maildir)
Mar 2 17:00:22 mail postfix/smtpd[31484]: disconnect from localhost
[127.0.0.1]
Mar 2 17:00:22 mail postfix/qmgr[27725]: 0DD8C18FF9: removed
------------------------------------
As you can see, amavis will return the same, single, QUEUE-ID
(E97CC18FF7) for both mail-sessions (queue-id E97CC18FF7, and
0DD8C18FF9)
shown in log as "status=sent (250 2.6.0 Ok, id=30138-09, from MTA
([127.0.0.1]:10028): 250 Ok: queued as E97CC18FF7)"
With best regards,
Oliver Geisen
_____________________________
Systemadministrator
Kreisboten Verlag Mühlfellner KG
82362 Weilheim i. Ob.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/