ram пишет:
On one of my servers I have put in main.cf
smtpd_client_restrictions = permit_mynetworks,reject
Because I want only my internal servers to use this machine as a relay.
This works as expected , but when connections come from outside
mynetworks the Error comes only after "RCPT TO:"
Can I just not give an error AND close the connection immediately after
connect rather than wait for RCPT TO:
Yes, you can. See http://www.postfix.org/postconf.5.html#smtpd_delay_reject
It is on by default, so postfix delays reject until RCPT TO; if you turn
off that parameter, it will reject immediatly. But, not all mail
software understand that early reject properly, so be warned.
Nikita