If you want to use sendmail so that you can send all your mails from the local system to your email address, then you have to use sendmail. Now, configuring sendmail has never been that easy and if you are working internally on your corporate network then for sending mails to the same domain, generally you don’t have to login. That being the case, you can use something simpler like “sstmp“. Install ssmtp with:
sudo yum install ssmtp
and then just open the file “/etc/ssmtp/ssmtp.conf”, change the email address, and you should be done. If your mail host is not reachable as “mail“, then you might need to change mailhub. Just check the alternatives with “galternatives” to make sure that mta/sendmail alternative default is set to “ssmtp“.
- 2010/06/09 email with templates (with variables) from the command line with sendmail or any other MTA.
- 2010/05/27 Checking the links to your site (from affiliates) using cron and bash script.
- 2012/09/30 phpmyadmin access problem and change server from URL
- 2011/02/19 Using ssmtp to send mail using gmail.
- 2010/04/12 Afraid Dynamic DNS client in Fedora with Email indicating the changed to original IP.