RE: Unable to relay via postfix ... but telnet works...?

2012-02-17 Thread A. Abd-Allah

Dr. Wietse,
Thank you again for your time. I have been an off-and-on-again user of Postfix 
for many years, and it is a real honor (and surprise!) to get support directly 
from its originator.
> The hop-count limit is reached in the REMOTE mail server. 
I suspected as much, but I wasn't sure. Thanks for clarifying this.
> There are two possibilities:
> 
> - The failing message already has lots of Received: headers (which
> is something that you may be able to fix by removing some or all).
It doesn't because the message is being created at the server where Postfix is 
installed.
> - The REMOTE mail server has an unreasonably-low hop-count limit
> (which is something that only the remote system adminstrator can
> fix).

This is the only possibility that remains... and since the system administrator 
for that system is difficult to communicate with, my guess was that the single 
innocent "Received:" header added by Postfix was the tipping point. For this 
reason, I used the "header_checks" parameter to strip it off before sending it 
to the external mail server...
...and now everything works.
Thank you very much! Your work makes a real difference.
Ahmed.
  

Re: Unable to relay via postfix ... but telnet works...?

2012-02-17 Thread Wietse Venema
A. Abd-Allah:
> Dr. Wietse,
> 
> Thank you for your valuable time, not just for this question, but
> for the entire postfix product.
>
> If I understood you correctly, increasing the hop count limit may
> help in this case. I only see 1 or 2 headers that are being added,
> but I am not sure. I can try changing the limit and then seeing
> the effect.

The hop-count limit is reached in the REMOTE mail server. 

There are two possibilities:

- The failing message already has lots of Received: headers (which
is something that you may be able to fix by removing some or all).

- The REMOTE mail server has an unreasonably-low hop-count limit
(which is something that only the remote system adminstrator can
fix).

Wietse

> A. Abd-Allah:
> > Final-Recipient: rfc822;bob@gmail.comAction: failedStatus:
> > 5.0.0Remote-MTA: smtp;MAILGW1.OURDOMAIN.COMDiagnostic-Code: X-Notes;
> > Error transferring to MAILGW1.OURDOMAIN.COM;  Maximum hop count
> > exceeded.  Message probably in a routing loop. 
> 
> When a mail server receives mail via SMTP, the standard requires
> that it adds a header with:
> 
> Received: stuff.
> 
> Many MTAs count the number of such message header lines and report
> a "Maximum hop count exceeded" error because the number exceeds
> some upper bound.
> 
> With Postfix, the default is "hopcount_limit = 50".
> 
> Your "telnet" message had no such header, while the "non telnet"
> message presumably had several. That's why one triggers the
> error and the other does not.
> 
>   Wietse
  


RE: Unable to relay via postfix ... but telnet works...?

2012-02-17 Thread A. Abd-Allah
Dr. Wietse,

Thank you for your valuable time, not just for this question, but for the 
entire postfix product.

If I understood you correctly, increasing the hop count limit may help in this 
case. I only see 1 or 2 headers that are being added, but I am not sure. I can 
try changing the limit and then seeing the effect.

Thank you again.

> Subject: Re: Unable to relay via postfix ... but telnet works...?
> To: postfix-users@postfix.org
> Date: Fri, 17 Feb 2012 14:52:41 -0500
> From: wie...@porcupine.org
> 
> A. Abd-Allah:
> > Final-Recipient: rfc822;bob@gmail.comAction: failedStatus:
> > 5.0.0Remote-MTA: smtp;MAILGW1.OURDOMAIN.COMDiagnostic-Code: X-Notes;
> > Error transferring to MAILGW1.OURDOMAIN.COM;  Maximum hop count
> > exceeded.  Message probably in a routing loop. 
> 
> When a mail server receives mail via SMTP, the standard requires
> that it adds a header with:
> 
> Received: stuff.
> 
> Many MTAs count the number of such message header lines and report
> a "Maximum hop count exceeded" error because the number exceeds
> some upper bound.
> 
> With Postfix, the default is "hopcount_limit = 50".
> 
> Your "telnet" message had no such header, while the "non telnet"
> message presumably had several. That's why one triggers the
> error and the other does not.
> 
>   Wietse
  

Re: Unable to relay via postfix ... but telnet works...?

2012-02-17 Thread Wietse Venema
A. Abd-Allah:
> Final-Recipient: rfc822;bob@gmail.comAction: failedStatus:
> 5.0.0Remote-MTA: smtp;MAILGW1.OURDOMAIN.COMDiagnostic-Code: X-Notes;
> Error transferring to MAILGW1.OURDOMAIN.COM;  Maximum hop count
> exceeded.  Message probably in a routing loop. 

When a mail server receives mail via SMTP, the standard requires
that it adds a header with:

Received: stuff.

Many MTAs count the number of such message header lines and report
a "Maximum hop count exceeded" error because the number exceeds
some upper bound.

With Postfix, the default is "hopcount_limit = 50".

Your "telnet" message had no such header, while the "non telnet"
message presumably had several. That's why one triggers the
error and the other does not.

Wietse