Paul de Vrieze wrote:
On Tuesday 01 April 2003 11:43, Philip Rieger wrote:

Hello all,

I am using gentoo rc3 with vcron and ssmtp. On the boot-console I
regularly get the message

sendmail: cannot open mail:25

In /root/dead.letter I see the line

/bin/sh: line 1: root: command not found

I havn't changed anything in the ssmtp configuration. On my gentoo box
at home everything works fine with the default settings. Both machines
don't have a simple hostname (no FQDN).

The problem was discussed in gentoo forums, but the only solution
proposed was to emerge procmail or another MTU. The setting of MAILTO=""
doesn't have any effect on vcron. Is it possible to solve the problem
without installing a MTU? How do I set up ssmtp correctly? Help would be
appreciated.



You will need to set the mailhub configuration parameter in /etc/ssmtp/ssmtp.conf . The reason you get mails is probably because of a typo in a cron command (from dead.letter). root is not a command ever so probably there is a typo.

Paul


Hello Paul,


thanks for the quick reply. I could still need some help. What is the right mailhub parameter. By default /etc/ssmtp/ssmtp.conf sets mailhub=mail. When mail should be delivered locally, is it just the hostname (in my case mailhub=howard)? This actually changes the error message to: 'sendmail: cannot open howard:25'.

'root' is no command, that's clear. Is there a way to find out, which script tries to run 'root'. In my crontab there are these (default) lines.

*/15 * * * *    root    test -x /usr/sbin/run-crons &&  /usr/sbin/run-crons
0 *  * * *      root    rm -f /var/spool/cron/lastrun/cron.hourly
0 0  * * *      root    rm -f /var/spool/cron/lastrun/cron.daily
0 0  * * 6      root    rm -f /var/spool/cron/lastrun/cron.weekly
0 0  1 * *      root    rm -f /var/spool/cron/lastrun/cron.monthly

Anything wrong here? Thanks in advance to anyone who helps.

Philip


-- [EMAIL PROTECTED] mailing list



Reply via email to