Sendmail masquerading configuration
Ian Moore
no-spam at swiftdsl.com.au
Wed Feb 23 01:27:36 PST 2005
On Sat, 19 Feb 2005 18:01, Ted Mittelstaedt wrote:
> > -----Original Message-----
> > From: owner-freebsd-questions at freebsd.org
> > [mailto:owner-freebsd-questions at freebsd.org]On Behalf Of Ian Moore
> > Sent: Wednesday, February 16, 2005 2:10 AM
> > To: Ted Mittelstaedt
> > Cc: Ruben de Groot; freebsd-questions at freebsd.org
> > Subject: Re: Sendmail masquerading configuration
> >
> > On Thu, 10 Feb 2005 22:14, Ted Mittelstaedt wrote:
> > > Ian Moore wrote:
> > > > On Wed, 9 Feb 2005 17:21, Ted Mittelstaedt wrote:
> > > >> I would probably install src/usr.sbin/ and recompile cron to use
> > > >> the -f flag. The flags are settible in cron/config.h in
> >
> > the source,
> >
> > > >> FreeBSD uses
> > > >>
> > > >> #define MAILARGS "%s -FCronDaemon -odi -oem -oi -t"
> >
> > /*-*/
> >
> > > >> just change this to
> > > >>
> > > >> #define MAILARGS "%s -FCronDaemon -froot at verizon.net -odi -oem -oi
> > > >> -t" /*-*/
> > > >>
> > > >> Ted
> > > >
> > > > Thanks, I'll give that a go.
> >
> > Hi,
> > Sorry, I'm still having trouble with this - my changes don't seem to
> > have had any effect, cron is still sending mail as
> > root at internal.hamcoll.sa.edu.au (Cron Daemon)
> > I think I've done something wrong!
> >
> > What I did was:
> >
> > #cd /usr/src/usr.sbin/cron/cron
> > #ee config.h:
> > and I changed the line
> > #define MAILARGS "%s -FCronDaemon -odi -oem -oi -t"
> > /*-*/
> > to
> > #define MAILARGS "%s -Froot at hamcoll.sa.edu.au -odi -oem -oi
> > -t" /*-*/
> >
> > (I assume the # at the beginning is correct?)
>
> Yes. But, the line is incorrect - it needs to be the following:
>
> #define MAILARGS "%s -FCronDaemon -froot at hamcoll.sa.edu.au -odi -oem -oi
>
> See my earlier posting for this. "man sendmail" also will explain the
> flags a bit as well.
>
> The rest of the stuff is fine.
>
> Ted
Thanks Ted, - I should have read more carefully.
Well that sort of works - cron jobs get sent from root at hamcoll.sa.edu.au
except for the periodic jobs, which are still sent from
root@<hostname>.hamcoll.sa.edu.au. Perhaps periodic sends the emails itself
instead of cron, though looking at it's source I can't see how.
Also, I still need to adjust my sendmail config on the server that is our
local smtp server. It seems to be putting the hostname back in cron's emails.
Cheers,
--
Ian
GPG Key: http://home.swiftdsl.com.au/~imoore/no-spam.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050223/adc8ae6a/attachment.bin
More information about the freebsd-questions
mailing list