Changing 'From:' address of periodic scripts
Greg Larkin
glarkin at FreeBSD.org
Mon Aug 11 15:21:53 UTC 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jonathan Belson wrote:
| Hiya
|
| 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
| status
| e-mails is of the form 'root at mybox.local' and the ISP has upped its
| anti-spam
| checks.
|
| 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'
| uses
| 'sendmail' to send e-mail; is there a simple way of forcing a 'From:'
| address
| via 'sendmail' config?
|
| Cheers,
|
| --Jon
|
Hi Jon,
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!
Best regards,
Greg
- --
Greg Larkin
http://www.sourcehosting.net/
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
iD8DBQFIoFkC0sRouByUApARAo8OAJ9zuwcF2RL5SyZa6udBc38dMlLO3wCeOlju
FZhVVFU4d+aKeWtBFSnd/7Q=
=B+FE
-----END PGP SIGNATURE-----
More information about the freebsd-questions
mailing list