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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Am 21.07.2013 10:42, schrieb Indunil Jayasooriya:
> Hi,
> 
> When no MTA is installed, How to send an email with a cronjob?
> 
> I have below entrty in my cronjob?
> 
> my /etc/cron.d/backup file looks like this.
> 
> MAILTO=myemail@xxxxxxxxxxx
> 15 11 * * * root /root/scripts/backup.sh
> 
> Can I send this email via SMTP server?

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

http://pkgs.org/centos-6-rhel-6/epel-x86_64/ssmtp-2.61-19.el6.x86_64.rpm.html

It does exactly what you intend to do.

There is another null client called msmtp

http://msmtp.sourceforge.net/

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

> Hope to hear from you.

Alexander


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux