Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Dec 2010
Sendmail or Postfix - auth and non-auth relay (solved)
Now... I just got an Android, and want to be able to connect from anywhere, authenticate and send mail wherever I want. Simple, right? Set up sasl, and it works. I can connect remotely and send mail wherever I want from my phone. Unfortunately, all OTHER incoming connections are now told they can't relay, because they didn't authenticate. Not good!
So I want to allow the mail server to operate as it does now -- anyone is able to send mail to my domains. Plus, I want authenticated users to be able to relay anywhere. Right now it's either requiring auth from all users, or not permitting relaying except from my local machines.
UPDATE: I found the solution a couple of hours after posting this, of course. The solution: Quit trying to get sendmail to behave the way I want, and do it with Postfix. On my postfix server I added the following lines to /etc/postfix/master.cf:
submission inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject
Last edited by dbotkin; 12-16-2010 at 06:14 PM.