newaliases not working?
Doug Sampson
dougs at dawnsign.com
Wed Feb 7 18:44:55 UTC 2007
> > 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.
>
# Pretty much everything else in this file points to "root", so
# you would do well in either reading root's mailbox or forwarding
# root's email from here.
root: admin(at)dawnsign.com <<<<<<<<<<<<<<<<
replaced @ sign with (at)
<<<<<<<<<<<<<<<< to
prevent spamming
# Basic system aliases -- these MUST be present
MAILER-DAEMON: postmaster
postmaster: root
# General redirections for pseudo accounts
_dhcp: root
_pflogd: root
bin: root
bind: root
daemon: root
games: root
kmem: root
mailnull: postmaster
man: root
news: root
nobody: root
operator: root
pop: root
proxy: root
smmsp: postmaster
sshd: root
system: root
toor: root
tty: root
usenet: news
uucp: root
Oh, and I noticed that I had been typing
mail to:root
instead of
mail root
at the command prompt. Thus that would explain why in the logs yesterday we
were seeing to=to:root.
This morning, I tried again with the mail command and here's the outout from
the maillog:
Feb 7 10:18:43 ftp sendmail[13901]: l17IIhhO013901: from=root, size=46,
class=0, nrcpts=1, msgid=<200702071818.l17IIhhO013901 at ftp.dawnsign.com>,
relay=root at localhost
Feb 7 10:18:43 ftp sm-mta[13902]: l17IIh7l013902:
from=<root at ftp.dawnsign.com>, size=372, class=0, nrcpts=1,
msgid=<200702071818.l17IIhhO013901 at ftp.dawnsign.com>, proto=ESMTP,
daemon=Daemon0, relay=localhost [127.0.0.1]
Feb 7 10:18:43 ftp sendmail[13901]: l17IIhhO013901: to=root, ctladdr=root
(0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30046,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l17IIh7l013902 Message
accepted for delivery)
Feb 7 10:18:44 ftp sm-mta[13904]: l17IIh7l013902:
to=<root at ftp.dawnsign.com>, delay=00:00:01, xdelay=00:00:01, mailer=esmtp,
pri=30372, relay=mercury.dawnsign.com. [192.168.1.4], dsn=2.0.0, stat=Sent
(OK)
As you can see, there appears mail sent to root still goes to
root(at)ftp.dawnsign.com.... Um?
~Doug
More information about the freebsd-questions
mailing list