On 14.01.21 11:27, Fourhundred Thecat wrote:
lets say a client connects and triggers several errors. For instance:

 EHLO asdf
 ....
 mail from: [email protected]
 250 2.1.0 Ok
 rcpt to: [email protected]
 504 5.5.2 <asdf>: Helo command rejected: need fully-qualified hostname

why did the "Helo command rejected" come not immediately after the wrong
EHLO ? Why did postfix wait until failed relay, to report ehlo?

to log all parameters, like mail from: and rcpt to:
Helps much when digging logs why was someone's mail refused.

And even worse, the client tries to relay mail, but no "relay access
denied" is being logged.

the mail can only be rejected with one error. The first error is used.

I am much more interested in "relay access denied", than non-FQDN ehlo.

you can disable the helo checks. I don't recommend that.
I usually allow both relaying and simple helo strings for authenticated
mail.

--
Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
It's now safe to throw off your computer.

Reply via email to