| Main Archive Page > Month Archives > postfix-users archives |
Hi,
When my Postfix server sends some mail from addresses in the local
domain, permanent errors (5XX) are treated as temporary errors (4XX)
and mail is delayed while it should definitely fail. Errors are due to
the fact that my server is flagged as a spammer in some RBL lists, but
the origin of the problem is not important here, the real issue is that
mail are then “trapped” in the queue and sending is retried in loop
until I manually remove the mail with “postsuper”. Moreover, when
relaying fails for an address that comes from outside of local domain,
errors are treated fine and messages are bounced.
A summary of this issue is provided here with log excerpts :
http://net.pouill.eu/~jyes/perso/postfix/postfix.desc
The relevant logs are :
- http://net.pouill.eu/~jyes/perso/postfix/mail.log.shouldfail which
shows the transaction log when relaying a mail from an address in local
domain. The mail is delayed after error 554 (what I think is wrong).
- http://net.pouill.eu/~jyes/perso/postfix/mail.log.fails which show
the transaction log when relaying a mail from an address in external
domain. Mail is bounced (which is what I want).
Hereafter are the two lines of log where you can see a message being delayed instead of being bounced.
> Mar 31 15:18:31 mail postfix/smtp[5342]: A217A3A772: host smtp-in.sfr.fr[93.17.128.16] refused to talk to me: 554 5.7.1 Service unavailable; Client host [XX.XX.XX.XX] blocked using pbl.spamhaus.sfr; http://www.spamhaus.org/query/bl?ip=XX.XX.XX.XX
> Mar 31 15:50:45 mail postfix/smtp[5469]: A217A3A772: to=<SOMEONE at EXAMPLE dot COM>, relay=smtp-in.sfr.fr[93.17.128.7]:25, delay=95118, delays=95118/0.07/0.62/0, dsn=4.7.1, status=deferred (host smtp-in.sfr.fr[93.17.128.7] refused to talk to me: 554 5.7.1 Service unavailable; Client host [XX.XX.XX.XX] blocked using pbl.spamhaus.sfr; http://www.spamhaus.org/query/bl?ip=XX.XX.XX.XX)
I hope I provided enough information for you to help me track this
issue. I will provide more information upon request.
J.-S.