How to configure local smtp server sendmail/postfix to occur error 503 5.5.4 send AUTH command first?
I want to achieve sendmail/postfix configuration as in smtp.yandex.ru to make error "503 5.5.4 send AUTH command first" occur after:
Code:
telnet localhost 25 I tryed to add in /etc/postfix/main.cf: Code:
smtpd_sender_restrictions = reject_unauthenticated_sender_login_mismatch Code:
smtpd_sender_restrictions = reject_sender_login_mismatch When I try "MAIL FROM" in telnet smtp.yandex.ru 25 then it's immediately giving error "503 5.5.4 send AUTH command first" and don't let me send message. This is what I want. Or it is impossible anyway? Somehow on the internet there is no information about that. another example is gmail with error "530-5.7.0 Authentication Required" that I want: Code:
220 smtp.gmail.com ESMTP g21-20020aa78755000000b006ead618c010sm2628214pfo.192 - gsmtp |
??
You entered MAIL FROM. The server gave a 503 error. Isn’t that what you want? I’m confused. |
Quote:
|
I understood that the foreign connections were examples of what you want.
I’m saying, don’t you already have that? Quote:
|
Quote:
|
All times are GMT -5. The time now is 12:50 PM. |