Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to use the MAILTO function in crontab on my mybookworld (it's a NAS)

I've installed a rather unfamiliar (i think) MTA: ESMPT

With mutt (console based email client) it works perfectly. But in crontab there is no reaction (even if I'm using the same crontab file as on my desktop machine with postfix as MTA). So think maybe the system doesn't know that ESMTP is a MTA that could be used from crontab.

How can I tell crontab what MTA to use?

share|improve this question

2 Answers 2

Both Vixie-cron and dcron use the MTA at hardcoded location /usr/sbin/sendmail1. Make sure this points to esmtp.

Also, you may need to configure the relay destination system-wide, in /etc/esmtprc, in order to receive output from system cronjobs (/etc/crontab and /etc/cron.*/). This is not necessary if you only use your own crontab.

1 (Some other programs may be using /usr/lib/sendmail.)

share|improve this answer
    
thanks for the try, but symbolic links to /usr/sbin/sendmail, /usr/bin/sendmail and /usr/lib/sendmail don't work for me:( –  Graslandpinguin Mar 28 '11 at 3:41
    
@Captn: Could you elaborate on what exactly are you linking to where? (To clarify, running namei -l /usr/sbin/sendmail should point to ESMTP, and it must be readable and executable.) –  grawity Mar 28 '11 at 5:54

Try installing "ssmtp", it's really easy. Just point it at another MTA like your ISP's. Look for "ssmtp.conf".

Sometimes /etc/sendmail is a link to the default MTA if that's what is more of interest.

share|improve this answer
    
Unfortunately ssmtp is not in ipkg.nslu2-linux.org/feeds/optware/cs05q1armel/cross/unstable | link to /etc/sendmail don't work, too. –  Graslandpinguin Mar 28 '11 at 4:17
    
Sorry, I mixed up my Linux flavours a bit there. In qmail on Gentoo there's this symbolic link to boost qmail's sendmail compatibilities: /usr/sbin/sendmail -> /var/qmail/bin/sendmail –  Jonathan Ross Mar 28 '11 at 6:20
    
Here's a link to a SSMTP tutorial. If you can install it and have another mail box to point at (like your ISP's) it'll take two minutes to get running (if you're testing from the command line also install "mailx" or "mail" and type something like "mailx -s "Testing 1,2,3" me@me.com < /dev/null". linux.com/archive/feature/132006 –  Jonathan Ross Mar 28 '11 at 6:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.