Greg Larkin wrote:
Jonathan Belson wrote:
| I set up a remote box to e-mail 'periodic' output to me directly. It
| has now
| stopped working, and I suspect it's because the 'From:' addresses of the
| e-mails is of the form '[EMAIL PROTECTED]' and the ISP has upped its
| I see /usr/sbin/periodic itself uses the 'mail' command to send the
| mails, but I
| couldn't see a command line option to specify a 'From:'. I guess 'mail'
| 'sendmail' to send e-mail; is there a simple way of forcing a 'From:'
| via 'sendmail' config?
Have a look at this: http://www.sendmail.org/m4/masquerading.html and
perhaps this, too: http://www.madboa.com/geek/sendmail-genericstable/
You can rewrite [EMAIL PROTECTED] to appear as though it's coming from a
real email address by using the techniques on those pages.
Please post back here if you run into any trouble!
OK, thanks. After playing with MASQUERADE_AS(), MASQUERADE_DOMAIN() plus a few
FEATURES(), I've managed to change the 'From:' address for e-mails sent via the
command line. Unfortunately, e-mails sent via the cron-ed periodic scripts
still don't get through, although if I run e.g. 'periodic daily' from the
command line, the mail does reach me.
The only difference I can think of is that cron runs the scripts as root. Could
this cause the difference?
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"