On Tue, March 13, 2012 17:56, Richard C. Steffens wrote: >> You might also look at SSMTP as an alternative to a full MTA since all >> you >> want is outbound email. It's very easy to configure and can >> authenticate >> on your behalf against various SMTP servers (to include google, which I >> use, and probably comcast - but you would need to test that to verify >> that >> it will actually work in your case). >> >> It's also available in the Ubuntu repositories. > > Indeed it is. It was a simple install. I found examples with Google > showing me what needed to be in the config file. I successfully sent > myself a test message from the command line. > > To use ssmtp from the command line requires the use of sudo. If I put > the call in crontab does that mean that I don't have to use sudo? > > -- > Regards, > > Dick Steffens > > > _______________________________________________ > PLUG mailing list > [email protected] > http://lists.pdxlinux.org/mailman/listinfo/plug >
Richard, You should continue to use mailx (or other tool) for the command. ssmtp will pick up the email and forward it on (if it's configured correctly). something like: echo "Don't forget the doctor's appointment" | mailx -s "Reminder" user@domain mailx will hand it to ssmtp and ssmtp just takes the message coming from mailx and forwards it to the appropriate MTA that is configured (in /etc/ssmtp/ssmtp.conf) for delivery to the user(s). mailx should NOT require root/sudo. Neither should ssmtp (it's just running as a background "service" (kinda) and takes what it receives from mailx and forwards it to the MTA. I hope that's clearer. Tim -- Timothy J. Bruce visit my Website at: http://www.tbruce.com Registered Linux User #325725 _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
