Wednesday, June 13, 2007

Sendmail SMTP authorization & secure connection

Today, I had to set up SMTP authorization on my FreeBSD 5.4 box. And, of course, since system username & password gets transfered, secure connection, in my opinion (yea, even in my opinion), is a must. Mail users, however, are set to nologin, but better be on the safe side, I guess.

Here's an excellent guide I found with google's help.

http://www.puresimplicity.net/~hemi/freebsd/sendmail.html

Of course, I opted for copy/paste first (as probably all of us do, some just don't admit it)

It was pretty fine, till the time come to restart sendmail. It failed with a message that port is already in use (courtesy of /var/log/maillog). Long story short, I had to comment out
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
from configuration file (probably because it was defined elsewhere but I didn't bother to look) and it started working.

A note - For reasons beyond a mere mortals understanding, Thunderbird 1.5.x.x (OF COURSE I didn't wrote down the exact number) doesn't work with this configuration. However, 2.0 works perfectly. As does Outlook Express. I don't know about other clients, haven't tried. So far so good. There are no angry calls from users, so I'm calling it a day.

No comments: