Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Aug 2008 11:21:38 -0400
From:      Greg Larkin <glarkin@FreeBSD.org>
To:        Jonathan Belson <jon@witchspace.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Changing 'From:' address of periodic scripts
Message-ID:  <48A05902.8060103@FreeBSD.org>
In-Reply-To: <48A00C8C.4060105@witchspace.com>
References:  <48A00C8C.4060105@witchspace.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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@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@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-----




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48A05902.8060103>