Sign up using Email and Password. The configuration file is very short and well commented by default. Sign up using Facebook. Andrew October 21, Hehe nice idea, but if there was a problem with your webserver would it be able to send an email? Whilst you can install and configure a fully featured email system you really don’t need to do so if all you want to do is send emails and not receive them too. Before we go ahead with its installation and configuration process, lets understand how it works.
|Date Added:||16 March 2017|
|File Size:||9.25 Mb|
|Operating Systems:||Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X|
|Price:||Free* [*Free Regsitration Required]|
Before we go ahead with its installation and configuration process, lets understand how it works.
Once you’ve finished editing the file press the [Esc] key once and type: After logging in you can close it and return to this page. K K April 5, Very useful. Ask Ubuntu is a question and answer site for Ubuntu users and developers. Once your configuration work is done, time to try sending some mail!
One way to do it would be to just pipe the script output to sSMTP as part of the cron job, but would there be any way to have cron not output to the server mail application buuntu rather to sSMTP directly? How to install ssmtp Before we do anything else we should bring the Ubuntu Repository up to date. And then I came across your article, thank you! The configuration file is very short and well commented by ubunyu. That would be the preferred option in my opinion.
If a cron job fails root will get an email, etc.
This will open the config file for editing. While this does work beautifully, how do I send a BCC: HTML email is possible. I manage to send via PHP mail by modifying php. I mask out the original lines using a but you can simply edit them instead: It will enable all the users to send an email using the credentials in the config without forcing each user to have own email and password.
I personally haven’t done this but if it’s something you’d like to do then edit the revaliases file as follows: If you look at the script itself you can see it’s being called on the following line: You will still be able to send emails to your regular gmail account, but not have to put its valuable password in the config file.
Thanks for the article! If you are familiar with command line editors such as NanoVimEmacs and others, feel free to use them.
Send email alerts using ssmtp
Not sure if anyone know a workaround. Finally, it will be forwarded to the recipient.
If anyone of the followings is not already there in file, simply add it. Suppose you have a Linux server that you need to keep secured. Next we can install the ssmtp package: The server is shutting itself down! This sounds like it might help with that goal?
postfix – How to configure sSMTP to send emails to more than one email address? – Ask Ubuntu
I get error ssmtp: Expanding on Sebastian’s point about rootif someone types the sudo password wrong root will get an email. Just add these lines after the subject: If you’ve been following this guide from the start you’ll know I’ve configured my server to send me an email if either the CPU or any of the hard drives exceed my pre-determined temperatures. For the rest of you, read on!
SunCheek January 10, This info is great!