Re: Relaying fails but sending is deferred instead of bouncing mail

2011-04-08 Thread Ralf Hildebrandt
* Jean-Sébastien Kroll-Rabotin j...@no-log.org:
 
 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.

From your logs I cannot see WHEN (at which stage of the SMTP dialoge)
the rejection occurs.

I think the rejection occurs immediately (before the HELO)

Try:

smtp_skip_5xx_greeting = no

-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | http://www.charite.de



Re: Relaying fails but sending is deferred instead of bouncing mail

2011-04-08 Thread Daniel Bromberg

On 4/8/2011 2:45 AM, Ralf Hildebrandt wrote:

* Jean-Sébastien Kroll-Rabotinj...@no-log.org:

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.

 From your logs I cannot see WHEN (at which stage of the SMTP dialoge)
the rejection occurs.

I think the rejection occurs immediately (before the HELO)

Try:

smtp_skip_5xx_greeting = no


In my experience RBL rejection is quite immediate indeed.

Just to source it:

  [snapshot-2507] For the sake of Sendmail compatibility, the
  Postfix SMTP client skips over SMTP servers that greet with a 4XX
  or 5XX reply code, treating them as unreachable servers. To obtain
  prior behavior (4XX=retry, 5XX=bounce), specify smtp_skip_4xx_greeting
  = no and smtp_skip_5xx_greeting = no.

I imagine the rationale is that if you hit an RBL, it is after all real-time and 
retrying later MAY work; especially if the admin sees the log and takes immediate corrective 
measures. I have also had the odd experience where one MX server of a domain has weeks-old RBL 
cached data and another in the same farm is current so it's worth it for Postfix outbound to 
consider the MX merely unreachable and to shop around.

-Daniel




Re: Relaying fails but sending is deferred instead of bouncing mail

2011-04-08 Thread Wietse Venema
Daniel Bromberg:
 Just to source it:
 
[snapshot-2507] For the sake of Sendmail compatibility, the
Postfix SMTP client skips over SMTP servers that greet with a 4XX
or 5XX reply code, treating them as unreachable servers. To obtain
prior behavior (4XX=retry, 5XX=bounce), specify smtp_skip_4xx_greeting
= no and smtp_skip_5xx_greeting = no.

The rationale is that some people actually expect that a 5XX reply
on CONNECT means the client should connect to the a backup server
instead.

Keep in mind that the primary purpose of Postfix is to deliver
mail, not to force people to configure the server per the RFC.

Wietse