Hi,

when using multiple outbound IPs in master.cf and FILTER we encountered an
unfortunate problem.

Postfix seems not to update the nexthop when a filter matches in a
multi-recipient mail.

As you see from the log Postfix tries to deliver each mail to the same MX
(in this case mx-ha01.web.de).

Is this a configuration error or maybe a bug in Postfix?

--- main.cf ---
smtpd_recipient_restrictions =
       check_recipient_access pcre:/etc/postfix/random-recipient.pcre,
       check_sender_access pcre:/etc/postfix/random-sender.pcre,
       permit_mynetworks,
       reject_unauth_destination
smtp_destination_recipient_limit = 1
---

--- master.cf ---
smtpout0  unix  -       -       -       -       -       smtp
        -o smtp_helo_name=mout0.domain.tld
        -o smtp_bind_address=1.2.3.0
smtpout1     unix  -       -       -       -       -       smtp
        -o smtp_helo_name=mout33.domain.tld
        -o smtp_bind_address=1.2.3.1
...
smtpoutN     unix  -       -       -       -       -       smtp
        -o smtp_helo_name=mout33.domain.tld
        -o smtp_bind_address=1.2.3.N
---

--- random-recipient.pcre ---
/^([a-z0-9])(.*)@(.*)/  FILTER  smtpout$1:$3
---

--- mail.log ---
Sep 9 16:23:34 vs-mout-01 postfix/smtpd[3245]: NOQUEUE: filter: RCPT from
localhost[127.0.0.1]: <[email protected]>: Recipient address triggers
FILTER smtpoutt:domain.tld; from=<[email protected]>
to=<[email protected]> proto=ESMTP helo=<localhost>
Sep 9 16:23:37 vs-mout-01 postfix/smtpd[3245]: 708CF50FCA: filter: RCPT
from localhost[127.0.0.1]: <[email protected]>: Recipient address triggers
FILTER smtpoutc:domain.tld; from=<[email protected]>
to=<[email protected]> proto=ESMTP helo=<localhost>
Sep 9 16:23:40 vs-mout-01 postfix/smtpd[3245]: 708CF50FCA: filter: RCPT
from localhost[127.0.0.1]: <[email protected]>: Recipient address
triggers FILTER smtpouta:domain2.tld; from=<[email protected]>
to=<[email protected]> proto=ESMTP helo=<localhost>
Sep 9 16:23:46 vs-mout-01 postfix/smtpd[3245]: 708CF50FCA: filter: RCPT
from localhost[127.0.0.1]: <[email protected]>: Recipient address triggers
FILTER smtpoutm:web.de; from=<[email protected]> to=<[email protected]>
proto=ESMTP helo=<localhost>
Sep 9 16:23:49 vs-mout-01 postfix/qmgr[3183]: 708CF50FCA:
from=<[email protected]>, size=337, nrcpt=4 (queue active)
Sep 9 16:23:49 vs-mout-01 postfix/smtp[3266]: 708CF50FCA:
to=<[email protected]>, relay=mx-ha01.web.de[217.72.192.149]:25,
delay=19, delays=18/0/0.05/0.19, dsn=5.0.0, status=bounced (host
mx-ha01.web.de[217.72.192.149] said: 550 relaying to <[email protected]>
prohibited by administrator (in reply to RCPT TO command))
Sep 9 16:23:49 vs-mout-01 postfix/smtp[3266]: 708CF50FCA:
to=<[email protected]>, relay=mx-ha01.web.de[217.72.192.149]:25, delay=19,
delays=18/0/0.05/0.2, dsn=5.0.0, status=bounced (host
mx-ha01.web.de[217.72.192.149] said: 550 relaying to <[email protected]>
prohibited by administrator (in reply to RCPT TO command))
Sep 9 16:23:49 vs-mout-01 postfix/smtp[3266]: 708CF50FCA:
to=<[email protected]>, relay=mx-ha01.web.de[217.72.192.149]:25, delay=19,
delays=18/0/0.05/0.27, dsn=2.0.0, status=sent (250 OK id=1Oti2X-00065j-00)
---

Reply via email to