SDB:SMTP-AUTH Client with Sendmail
Version: 4.2 - 7.3
Situation
You want to use SMTP-AUTH with sendmail to authenticate at your ISP similarly to what happens with e.g. Netscape/Mozilla or Outlook.
Procedure
- You need the package
sendmail-tls
, seriesSEC
, instead of the "normal" sendmail package.
Please note that it is not possible to completely resolve all dependencies and that the configuration cannot be done with YaST, since YaST wrongly assumes the existence of the package sendmail. Therefore, please ignore the unresolved dependencies and make sure that sendmail has been previously configured according to your purposes. - In addition, you have to slightly modify sendmail's default configuration:
The easiest way consists of editing the file/sbin/conf.d/SuSEconfig.sendmail
. However, all changes will disappear as soon as the package is updated.
This can be avoided by copying the file:cp /sbin/conf.d/SuSEconfig.sendmail /sbin/conf.d/SuSEconfig.sendmail2
and inserting the following lines in the new file after line 74 (SuSE Linux 7.3):
(the lines that must be inserted are marked with a "+")
(74) cat <<-EOF (75) + define(\`confAUTH_MECHANISMS', \`PLAIN')dnl (76) + define(\`confDEF_AUTH_INFO', \`/etc/mail/default-auth-info')dnl (78) MAILER(\`local')dnl From now on, the configuration will be correctly generated every time SuSEconfig runs.
- The file
/etc/mail/default-auth-info
must be now created with the format:
USERNAME USERNAME PASSWORD MAILSERVERMAILSERVER
corresponds to the smart host through which all your outgoing messages are sent (i.e. your ISP's mail server)
This file must be readable forroot
only:chmod 600 /etc/mail/default-auth-info
Sendmail will use the authentication from now on, always provided the remote host allows it.
Security tip:
Please note that with the above-mentioned "PLAIN" configuration, user data are sent unencrypted through the Internet.
This is most likely the only "encryption" method supported by 99% of the ISPs and 100% of the mail clients normally used with other operating systems :-(
If your ISP offers TLS/SSL encryption,too, it will be used automatically, thus protecting the password transmission.
<keyword>sendmail,smtp,auth,sasl,mta</keyword>