Changing 'From:' address of periodic scripts
glarkin at FreeBSD.org
Mon Aug 11 15:21:53 UTC 2008
-----BEGIN PGP SIGNED MESSAGE-----
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 'root at mybox.local' 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 root at mybox.local 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!
http://www.FreeBSD.org/ - The Power To Serve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the freebsd-questions