top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

When no MTA is installed, How to send an email with a cronjob?

0 votes

When no MTA is installed, How to send an email with a cronjob? I have below entry in my cronjob? My /etc/cron.d/backup file looks like this.
15 11 * * * root /root/scripts/

Can I send this email via SMTP server?

posted Jul 21, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button
You don't. You would have had to gone to some effort to not have an MTA
installed, as one is installed by default. Did you remove it (or simply not configure it)? [they basically work for localhost delivery without any changes.]

1 Answer

+1 vote

If you decide a full blown MTA is too heavy weight in your environment on the different nodes (Postfix isn't the ideal choice for a so called null client), then have a look at ssmtp for example. It is provided by EPEL

It does exactly what you intend to do. There is another null client called msmtp

but that one isn't available being packaged for CentOS.

answer Jul 21, 2013 by anonymous
Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.