newaliases not working?

Dan Busarow dan at dpcsys.com
Wed Feb 7 02:39:21 UTC 2007


On Feb 6, 2007, at 6:31 PM, Doug Sampson wrote:

> I'm having trouble getting the periodic reports sent out on a daily  
> basis
> from a FreeBSD 6.2 server. I've changed the /etc/aliases file so  
> that root
> points to an administrative mail address. But for some reason it  
> doesn't get
> translated to the admin email address. I've run the 'newaliases'  
> several
> times to no avail.
>
> Mail log below. The first four lines are a result of running 'periodic
> daily'. The last four lines is when I address a mail directly to
> admin(at)dawnsign.com (the @ sign has been changed to protect it).
>
> Feb  6 17:00:03 ftp sendmail[11196]: l17103fh011196: from=root,  
> size=38,
> class=0, nrcpts=1,  
> msgid=<200702070100.l17103fh011196 at ftp.dawnsign.com>,
> relay=root at localhost
> Feb  6 17:00:03 ftp sm-mta[11197]: l17103eC011197:
> from=<root at ftp.dawnsign.com>, size=367, class=0, nrcpts=1,
> msgid=<200702070100.l17103fh011196 at ftp.dawnsign.com>, proto=ESMTP,
> daemon=Daemon0, relay=localhost [127.0.0.1]
> Feb  6 17:00:03 ftp sendmail[11196]: l17103fh011196: to=to:root,
> ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay,
> pri=30038, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent
> (l17103eC011197 Message accepted for delivery)

Looks like you have a bad entry in /etc/mail/aliases

This to=to:root, should look like to=dougs

Post the relevant lines from your aliases file.

Dan



> Feb  6 17:00:04 ftp sm-mta[11199]: l17103eC011197:
> to=<root at ftp.dawnsign.com>, delay=00:00:01, xdelay=00:00:01,  
> mailer=esmtp,
> pri=30367, relay=mercury.dawnsign.com. [192.168.1.4], dsn=2.0.0,  
> stat=Sent
> (OK)
> Feb  6 17:18:00 ftp sendmail[11242]: l171I0SO011242: from=root,  
> size=84,
> class=0, nrcpts=1,  
> msgid=<200702070118.l171I0SO011242 at ftp.dawnsign.com>,
> relay=root at localhost
> Feb  6 17:18:00 ftp sm-mta[11243]: l171I08q011243:
> from=<root at ftp.dawnsign.com>, size=410, class=0, nrcpts=1,
> msgid=<200702070118.l171I0SO011242 at ftp.dawnsign.com>, proto=ESMTP,
> daemon=Daemon0, relay=localhost [127.0.0.1]
> Feb  6 17:18:00 ftp sendmail[11242]: l171I0SO011242:
> to=to:dougs at dawnsign.com, ctladdr=root (0/0), delay=00:00:00,
> xdelay=00:00:00, mailer=relay, pri=30084, relay=[127.0.0.1]  
> [127.0.0.1],
> dsn=2.0.0, stat=Sent (l171I08q011243 Message accepted for delivery)
> Feb  6 17:18:01 ftp sm-mta[11245]: l171I08q011243:
> to=<admin(at)dawnsign.com>, delay=00:00:01, xdelay=00:00:01,  
> mailer=esmtp,
> pri=30410, relay=mercury.dawnsign.com. [192.168.1.4], dsn=2.0.0,  
> stat=Sent
> (OK)
>
> ps ax shows that sendmail is running as follows:
> <snip>
> 11136  ??  Ss     0:00.08 sendmail: accepting connections (sendmail)
> 11137  ??  Is     0:00.01 sendmail: Queue runner at 00:30:00 for
> /var/spool/clientmqueue (sendmail)
> 11170  ??  Is     0:00.01 /usr/sbin/inetd -wW
> <snip>
>
> I used to receive these daily & security run output messages until  
> the day I
> installed vsftpd using inetd.
>
> There are no mail in any outbound mail queues.
>
> What could I be doing wrong?
>
> ~Doug


More information about the freebsd-questions mailing list