On 10/17/07, Sunnz <[EMAIL PROTECTED]> wrote:
> Thanks for all the help, well I am probably just going to start out
> fresh by installing 4.2-release... so after booted up, I should:
>
> 0. Check the /etc/services and make sure smtp-ssl 465/tcp is defined.
> 1. add the cyrus-sasl package
> 2. re-compile sendmail with -DSASL (add WANT_SMTPAUTH= yes in /etc/mk.conf)
> 3. set up up SMTP AUTH with sendmail
> client (AuthInfo option in sendmail, and setting the smarthost entry
> in sendmail.cf)
>
> My ISP doesn't support standard STARTTLS in port 25... only smtp-ssl.
> (in fact they have blocked port 25, but can unblock it at request.)
>
> And thanks for web interface suggestions like webmin! I however like
> to at least give this a fair go in the hopes of that I can actually
> learn to manage a Unix box.
[...]

IMHO, there are better (read: smart) ways to manage a *nix box, than
to configure sendmail. One alternative you could look at is "postfix".
I recently configured postfix, and find it to be pretty simple than
sendmail. Here is how:
1. Add postfix-sasl2 from packages
2. Add cyrus-sasl from packages
3. Configure main.cf (of postfix) with smarthost and sasl info:
----8<----
relayhost = smtp.server.com

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous, noplaintext
smtp_sasl_mechanism_filter = login, ntlm
----8<----
Adjust the security options, and mechanism filter values according to
your local settings (postfix has good documentation on it).
4. Create /etc/postfix/sasl_passwd with the following info:
smtp.server.com user:pass
5. Chmod the sasl_passwd file, as it contains your password
root# chmod 600 /etc/postfix/sasl_passwd
6. create sasl_passwd.db from sasl_passwd
root# postmap hash:/etc/postfix/sasl_passwd
7. add the following entries to /etc/rc.conf.local (create
rc.conf.local if it does not exist)
sendmail_flags="-bd"
syslogd_flags="-a /var/spool/postfix/dev/log"
8. restart syslogd
9. start postfix
root# postfix start

If all goes well, postfix should be able to deliver your emails to the
world. Well, and in half the time needed to configure sendmail
(actually, not really configure, *understand* and configure sendmail).

-Amarendra

Reply via email to