Discussion:
Bounce message line length
(too old to reply)
DC-Ops
2017-06-07 16:18:33 UTC
Permalink
Hi All,

Just getting my first Postfix server up and running and am already experiencing an issue, in this case, with bounce messages.

Postfix is acting as an outboudn relay for an Exchange server. If Postfix can't deliver, and has to bounce with NDR, then this is not being fully translated by Exchange, and the error message is mangled.

A TCP dump on the Postfix server shows that this is not really Exchange's fault, it's Postfix putting an end of line/CR before the message is complete.

Action: failed
Status: 5.4.4
Diagnostic-Code: X-Postfix; Host or domain name not found. Name service e=
rror
for name=3Dfakemadeupdomain.com type=3DAAAA: Host not found

HEX excerpt, if that floats your boat:

00000778 65 6d 61 64 65 75 70 64 6f 6d 61 69 6e 2e 63 6f emadeupd omain.co
00000788 6d 0d 0a 41 63 74 69 6f 6e 3a 20 66 61 69 6c 65 m..Actio n: faile
00000798 64 0d 0a 53 74 61 74 75 73 3a 20 35 2e 34 2e 34 d..Statu s: 5.4.4
000007A8 0d 0a 44 69 61 67 6e 6f 73 74 69 63 2d 43 6f 64 ..Diagno stic-Cod
000007B8 65 3a 20 58 2d 50 6f 73 74 66 69 78 3b 20 48 6f e: X-Pos tfix; Ho
000007C8 73 74 20 6f 72 20 64 6f 6d 61 69 6e 20 6e 61 6d st or do main nam
000007D8 65 20 6e 6f 74 20 66 6f 75 6e 64 2e 20 4e 61 6d e not fo und. Nam
000007E8 65 20 73 65 72 76 69 63 65 20 65 3d 0d 0a 72 72 e servic e e=..rr
000007F8 6f 72 0d 0a 20 20 20 20 66 6f 72 20 6e 61 6d 65 or.. for name
00000808 3d 33 44 66 61 6b 65 6d 61 64 65 75 70 64 6f 6d =3Dfakem adeupdom
00000818 61 69 6e 2e 63 6f 6d 20 74 79 70 65 3d 33 44 41 ain.com type=3DA
00000828 41 41 41 3a 20 48 6f 73 74 20 6e 6f 74 20 66 6f AAA: Hos t not fo
00000838 75 6e 64 0d 0a 0d 0a 2d 2d 45 42 30 46 43 43 30 und....- -EB0FCC0


this renders in Exchange as

#< #5.4.4 X-Postfix; Host or domain name not found. Name service e=> #SMTP#

So we don't get the full message.

It would seem that Postfix is trying to keep the line length on NDRs within the ancient 78 charater line limit, even though postconf confirms we are running at the modern 998 limit.

$ postconf | grep line_length_limit
line_length_limit = 2048
lmtp_line_length_limit = 998
smtp_line_length_limit = 998


Can anyone please suggest how we can override the line length on these automated responses, or else get it to observe the 998 limit correctly?

A screenshot always helps :)

Loading Image...
d***@gmail.com
2017-07-11 21:42:23 UTC
Permalink
Post by DC-Ops
Hi All,
Just getting my first Postfix server up and running and am already experiencing an issue, in this case, with bounce messages.
Postfix is acting as an outboudn relay for an Exchange server. If Postfix can't deliver, and has to bounce with NDR, then this is not being fully translated by Exchange, and the error message is mangled.
A TCP dump on the Postfix server shows that this is not really Exchange's fault, it's Postfix putting an end of line/CR before the message is complete.
Action: failed
Status: 5.4.4
Diagnostic-Code: X-Postfix; Host or domain name not found. Name service e=
rror
for name=3Dfakemadeupdomain.com type=3DAAAA: Host not found
00000778 65 6d 61 64 65 75 70 64 6f 6d 61 69 6e 2e 63 6f emadeupd omain.co
00000788 6d 0d 0a 41 63 74 69 6f 6e 3a 20 66 61 69 6c 65 m..Actio n: faile
00000798 64 0d 0a 53 74 61 74 75 73 3a 20 35 2e 34 2e 34 d..Statu s: 5.4.4
000007A8 0d 0a 44 69 61 67 6e 6f 73 74 69 63 2d 43 6f 64 ..Diagno stic-Cod
000007B8 65 3a 20 58 2d 50 6f 73 74 66 69 78 3b 20 48 6f e: X-Pos tfix; Ho
000007C8 73 74 20 6f 72 20 64 6f 6d 61 69 6e 20 6e 61 6d st or do main nam
000007D8 65 20 6e 6f 74 20 66 6f 75 6e 64 2e 20 4e 61 6d e not fo und. Nam
000007E8 65 20 73 65 72 76 69 63 65 20 65 3d 0d 0a 72 72 e servic e e=..rr
000007F8 6f 72 0d 0a 20 20 20 20 66 6f 72 20 6e 61 6d 65 or.. for name
00000808 3d 33 44 66 61 6b 65 6d 61 64 65 75 70 64 6f 6d =3Dfakem adeupdom
00000818 61 69 6e 2e 63 6f 6d 20 74 79 70 65 3d 33 44 41 ain.com type=3DA
00000828 41 41 41 3a 20 48 6f 73 74 20 6e 6f 74 20 66 6f AAA: Hos t not fo
00000838 75 6e 64 0d 0a 0d 0a 2d 2d 45 42 30 46 43 43 30 und....- -EB0FCC0
this renders in Exchange as
#< #5.4.4 X-Postfix; Host or domain name not found. Name service e=> #SMTP#
So we don't get the full message.
It would seem that Postfix is trying to keep the line length on NDRs within the ancient 78 charater line limit, even though postconf confirms we are running at the modern 998 limit.
$ postconf | grep line_length_limit
line_length_limit = 2048
lmtp_line_length_limit = 998
smtp_line_length_limit = 998
Can anyone please suggest how we can override the line length on these automated responses, or else get it to observe the 998 limit correctly?
A screenshot always helps :)
https://pbs.twimg.com/media/DBuyDLkXkAEWZ9d.jpg
Hello

What version of MS Exchange do you use and an you provide the full postconf please ?

They are several settings which can fuck around with MS Exchange.

Regards
Victor

Loading...