0

Here is an excerpt of my Postfix configuration:

broken_sasl_auth_clients = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_relay_restrictions = permit_sasl_authenticated, reject

I now want to test that Postfix really only accepts messages from authenticated users. Therefor I used telnet (directly on the server) and send a mail - which was successful even though I did not perform any authentication in the telnet session. Is that the expected behaviour? The last line of the excerpt suggests that the test should not have worked!?

Thanks!

Andrew Schulman
  • 8,811
  • 21
  • 32
  • 47
Daniel
  • 161
  • 5
  • Postfix accepts mail to local addresses and virtual aliases by default. Did you test it for a foreign domain? – NuTTyX Aug 10 '14 at 11:58
  • Please provide us the full output from your telnet session (when testing authentication) like this [question](http://serverfault.com/q/587107/218590) – masegaloeh Aug 10 '14 at 14:18

1 Answers1

1

What about this?

smtpd_recipient_restrictions = permit_sasl_authenticated, reject

Not tested, but should work AFAIK. You should get the REJECT error after sending the receiving address.

sebix
  • 4,313
  • 2
  • 29
  • 47