I'm using ssmtp to send mail on several boxes. One of the boxes is running a
real MTA and acts as the hub for the other boxes.

Check /var/log/mail*.

I'm assuming you set mailhub=foo in your ssmtp.conf, which means you're
using the box foo to relay your mail. It's possible that the hub is refusing
to send the mail. That would look something like:

Jan 17 15:44:59 starscream postfix/smtp[8356]: 24E2D4AC9: to=<
[EMAIL PROTECTED]>, relay=xxxxxxxx:25, delay=15, delays=0.1/0.01/15/0.1,
dsn=5.7.1, status=bounced (host xxxxxxxxxxx said: 550 5.7.1 <
[EMAIL PROTECTED]>... Relaying denied (in reply to RCPT TO command))

At any rate, if there's an error anywhere along the way, it should show up
in one of the mail logs.

On Jan 22, 2008 11:19 AM, Michael Higgins <[EMAIL PROTECTED]> wrote:

> On Tue, 22 Jan 2008 15:48:05 +0000
> Neil Bothwick <[EMAIL PROTECTED]> wrote:
>
> > On Tue, 22 Jan 2008 07:36:46 -0800, Michael Higgins wrote:
> >
> > > Is anyone using cron (vixie-cron) without a real MTA and getting
> > > emails? The test is simple, just "echo hello world". I expect this
> > > to come as an email to the address I put in MAILTO="". But it
> > > doesn't.
> >
> > It works on several boxes here. Is ssmtp working correctly? Try
> >
> > echo -e "To: Me\nSubject: ssmtp test\n\nssmtp test" | /usr/sbin/ssmtp
> > youraddress
> >
> > If it fails, check /etc/ssmtp/ssmtp.conf, particularly the mailhub
> > setting.
>
> No fail. Worked like a charm...
>
> I edit my crontab like sudo crontab -u mykhyggz -e
>
> At the top, is MAILTO="[EMAIL PROTECTED]"
>
> My user belongs to cron group: groups
> wheel cron users mykhyggz
>
> Cron is running: top bn1|grep cron
>  5068 root      18   0  3072  692  552 S  0.0  0.7   0:00.00 cron
>
> 15        08      *              *       *            echo hello world
>
> should have sent me an email with 'hello world' in the body at 8:15, or
> so I believe, but didn't.
>
> What else can I check?
>
> Cheers,
>
> --
>  |\  /|        |   |          ~ ~
>  | \/ |        |---|          `|` ?
>  |    |ichael  |   |iggins    \^ /
>  michael.higgins[at]evolone[dot]org
> --
> gentoo-user@lists.gentoo.org mailing list
>
>

Reply via email to