On Thursday 26 Jun 2014 03:15:54 Dale wrote: > Neil Bothwick wrote: > >> I have to say, I dread setting up a mail server about as bad as I dread > >> going to the Doctor. It's just something I really don't want to add to > >> my system unless I have to. > > > > Which is why I suggesting something like ssmtp, which you can't call a > > server, it just forwards. Often the only configuration needed is changing > > one line in ssmtp.conf, to the address of your ISP's mail server. > > > > That's it, now any program can send mail using sendmail and it just goes > > to your ISP mailbox. > > I like this part: > > "Extremely simple MTA to get mail off the system to a Mailhub" > > ^^^^^ That part right up there. :-D That may be a new thread, if > needed. Try this basic setup in your /etc/ssmtp/ssmtp.conf: ============================================================ root=dale@gmail.com #Change to your preferred email address mailhub=smtp.gmail.com:465 #Could also use port 587 for STARTTLS rewriteDomain=dales_smoker.shack #Something to denote your machine's name FromLineOverride=YES UseTLS=YES #Can also try UseSTARTTLS=YES as an alternative AuthUser=dale@gmail.com AuthPass=dalesgmails3cr3tpasswd #Special characters seem to barf with ssmtp ============================================================ Sort out access rights to 0604, since it now contains your mail passwd unencrypted: # ls -la /etc/ssmtp/ssmtp.conf -rw-r----- 1 root ssmtp 1696 May 19 23:40 /etc/ssmtp/ssmtp.conf Add this in your /etc/ssmtp/revaliases: ======================================= root:dale@gmail.com:smtp.gmail.com:465 dale:dale@gmail.com:smtp.gmail.com:465 other_user:dale@gmail.com:smtp.gmail.com:465 ======================================= Then ping a message to yourself as a test to see that all works fine: echo "My first test message" | mail -v -s "Test for sSMTP 1" dale@gmail.com It should then appear in your gmail account (Sent folder). Set a label/filter to find such messages easily and you're done. -- Regards, Mick