Ubuntu 14.04 - Set up smtp notification for cron job
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ubuntu 14.04 - Set up smtp notification for cron job
I have zero experience in setting up SMTP. I want to set up SMTP on Ubuntu Desktop 14.04 LTS so I will get an email to confirm a certain cron job has run
From the guide, I see that Postfix is quite involved in set up, especially for such a simple task as emailing a cron job. And I am assuming that setting up Postfix in Ubuntu Server is similar to doing so in Ubuntu Desktop, but I stand to be corrected.
Can someone refer advise the simplest way to do this. Thanks!
Just a bit of a note, it may be a decent idea - instead of setting up a postfix server use an email client like mutt to send an email using a different email server (like a gmail account or an ISP account)
Just a bit of a note, it may be a decent idea - instead of setting up a postfix server use an email client like mutt to send an email using a different email server (like a gmail account or an ISP account)
OK. Mr. Newbie here. I am hoping to not have to install more software to accomplish this. I am thinking there may be a way that is already burned into the OS that can do this, at least on Ubuntu Server. As both desk top and server are quite similar, minus the GUI, anyway. But, perhaps not. I will review Mutt and see if that would be an easier alternative. Thank you for the suggestion!
Just a bit of a note, it may be a decent idea - instead of setting up a postfix server use an email client like mutt to send an email using a different email server (like a gmail account or an ISP account)
this is your best option.
you don't want to install a full mail server just for notification mails.
it's also a commonly chosen option in situations like these.
...
instead of setting up a postfix server use an email client like mutt to send an email using a different email server (like a gmail account or an ISP account)
This works well to send email interactively. However, I have not discovered how to do this from within a script without end-user interaction.
I don't find any way to use mutt and accomplish the following:
I've used exim4 for this in the past. It's relatively easy to set up.
If you can't get it working, I have some notes on my exim4 setup.
Thanks for the tip and the willingness to guide my stumbling.
ASIDE -- With all of the mobile device notifications and such that are possible, I wish that command-line or similar workstation notifications out to mobile devices would be more main stream.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.