FrontPage Ubuntu~mail
Ubuntu »mail

No older revisions available




I just want to set up mail server to send mail to web users with gmail. I do not want to receive mail.

apt-get install ssmtp
Then, configure the ssmtp

We need to then need to edit, ‘/etc/ssmtp/ssmtp.conf’:

root=username@gmail.com
mailhub=smtp.gmail.com:587
rewriteDomain=
hostname=username@gmail.com
UseSTARTTLS=YES
AuthUser=username
AuthPass=password
FromLineOverride=YES
Then add each account that you want to be able to send mail from by editing, ‘/etc/ssmtp/revaliases‘:
root:username@gmail.com:smtp.gmail.com:587
localusername:username@gmail.com:smtp.gmail.com:587

Try
# ssmtp mail@to.someone.org
Write some messages then hit enter, then, hit ctrl-d.


Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2012-05-08 14:46:55
Processing time 0.0120 sec