⇤ ← Revision 1 as of 2007-03-25 13:29:13
1693
Comment:
|
1693
converted to 1.6 markup
|
Deletions are marked like this. | Additions are marked like this. |
Line 6: | Line 6: |
[[BR]] [[BR]] |
<<BR>> <<BR>> |
sSMTP - Simple SMTP
sSMTP is a simple MTA to deliver mail from a computer to a mail hub (SMTP server). sSMTP is simple and lightweight, there are no daemons or anything hogging up CPU; Just sSMTP. Unlike Exim4, sSMTP does not receive mail, expand aliases, or manage a queue.
Setting up sSMTP
sSMTP's main configuration file is located at /etc/ssmtp/ssmtp.conf
Here is a sample configuration file taken from my /etc/ssmtp/ssmtp.conf:
# # Config file for sSMTP sendmail # # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. root='''yourmail@mail.com''' # The place where the mail goes. The actual machine name is required no # MX records are consulted. Commonly mailhosts are named mail.domain.com mailhub='''smtp.yourmail.com''' # Where will the mail seem to come from? rewriteDomain= # The full hostname hostname='''yourname@mail.com''' # Are users allowed to set their own From: address? # YES - Allow the user to specify their own From: address # NO - Use the system generated From: address FromLineOverride=YES # Username and password for Google's Gmail servers # From addresses are settled by Mutt's rc file, so # with this setup one can still achieve multi-user SMTP AuthUser='''username''' AuthPass='''password'''
Using sSMTP with Gmail
Using sSMTP with Gmail is simple, you just have to change a few options around and add in TLS encryption and change Google's server to port 587
UseTLS=YES UseSTARTTLS=YES mailhub=smtp.gmail.com:587
And that's all. Now just tell your MUA to run /usr/sbin/ssmtp for outgoing mails, and you should be set.