Mailinglist Archive: opensuse-security (605 mails)
| < Previous | Next > |
postfix aliases.db
- From: "Thomas Schweikle" <tschweikle@xxxxxxxxxx>
- Date: Tue, 23 Oct 2001 11:37:26 +0100
- Message-id: <OF8619E038.F217C353-ON41256AEE.00390228@xxxxxxxxxx>
Hi!
It looks like postfix is ignoring aliases.db in some cases. Assume settings
in postfix.rc.config:
POSTFIX_CREATECF="yes"
POSTFIX_RELAYHOST="snoopy.nic.home.net"
POSTFIX_NULLCLIENT="no"
POSTFIX_MASQUERADE_DOMAIN=""
POSTFIX_LOCALDOMAINS=""
and aliases like:
root: \root, tschweikle@xxxxxx
# Basic system aliases that MUST be present.
mailer-daemon: root
postmaster: mailer-daemon
# General redirections for pseudo accounts in /etc/passwd.
daemon: root
lp: root
news: root
uucp: root
games: root
man: root
at: root
postgres: root
[...]
a mail to root should be delivered localy _and_ forwarded to
tschweikle@xxxxxxx In the logs you see:
xcnlm03s:/etc # mail -s Test root
Test
.
EOT
xcnlm03s:/etc # tail /var/log/mail
Oct 23 13:22:51 xcnlm03s postfix/pickup[3508]: 809643EE01:
uid=0 from=<root>
Oct 23 13:22:51 xcnlm03s postfix/cleanup[3820]: 809643EE01:
message-id=<20011023112251.809643EE01@xxxxxxxxxxxxxxxxxxxx>
Oct 23 13:22:51 xcnlm03s postfix/qmgr[3509]: 809643EE01:
from=<root@xxxxxxxxxxx>, size=333, nrcpt=1 (queue active)
Oct 23 13:22:51 xcnlm03s postfix/smtp[3822]: 809643EE01:
to=<root@xxxxxxxxxxx>, relay=snoopy.nic.home.net[192.168.10.17],
delay=0, status=sent (250 Message received:
20011023091948234.AAA246.308@xxxxxxxxxxxxxxxxxxxx)
Mail will only be delivered to root!
Setting
POSTFIX_LOCALDOMAINS=""
to "localhost mm.home.net" makes postfix respect aliases.db:
xcnlm03s:/etc # mail -s test root
Test
.
EOT
xcnlm03s:/etc # tail -n 5 /var/log/mail
Oct 23 13:28:49 xcnlm03s postfix/local[5926]: 863A13EE01:
to=<root@xxxxxxxxxxx>, relay=local, delay=0, status=sent (mailbox)
Oct 23 13:28:49 xcnlm03s postfix/cleanup[5924]: A6C923EE02:
message-id=<20011023112849.863A13EE01@xxxxxxxxxxxxxxxxxxxx>
Oct 23 13:28:49 xcnlm03s postfix/local[5926]: 863A13EE01:
to=<root@xxxxxxxxxxx>, relay=local, delay=0,
status=sent (forwarded as A6C923EE02)
Oct 23 13:28:49 xcnlm03s postfix/qmgr[5674]:
A6C923EE02: from=<root@xxxxxxxxxxx>, size=495, nrcpt=1 (queue active)
Oct 23 13:28:49 xcnlm03s postfix/smtp[5927]: A6C923EE02:
to=<tschweikle@xxxxxx>, relay=snoopy.nic.home.net[192.168.10.17],
delay=0, status=sent (250 Message received:
20011023092546406.AAA337.247@xxxxxxxxxxxxxxxxxxxx)
--
Thomas
It looks like postfix is ignoring aliases.db in some cases. Assume settings
in postfix.rc.config:
POSTFIX_CREATECF="yes"
POSTFIX_RELAYHOST="snoopy.nic.home.net"
POSTFIX_NULLCLIENT="no"
POSTFIX_MASQUERADE_DOMAIN=""
POSTFIX_LOCALDOMAINS=""
and aliases like:
root: \root, tschweikle@xxxxxx
# Basic system aliases that MUST be present.
mailer-daemon: root
postmaster: mailer-daemon
# General redirections for pseudo accounts in /etc/passwd.
daemon: root
lp: root
news: root
uucp: root
games: root
man: root
at: root
postgres: root
[...]
a mail to root should be delivered localy _and_ forwarded to
tschweikle@xxxxxxx In the logs you see:
xcnlm03s:/etc # mail -s Test root
Test
.
EOT
xcnlm03s:/etc # tail /var/log/mail
Oct 23 13:22:51 xcnlm03s postfix/pickup[3508]: 809643EE01:
uid=0 from=<root>
Oct 23 13:22:51 xcnlm03s postfix/cleanup[3820]: 809643EE01:
message-id=<20011023112251.809643EE01@xxxxxxxxxxxxxxxxxxxx>
Oct 23 13:22:51 xcnlm03s postfix/qmgr[3509]: 809643EE01:
from=<root@xxxxxxxxxxx>, size=333, nrcpt=1 (queue active)
Oct 23 13:22:51 xcnlm03s postfix/smtp[3822]: 809643EE01:
to=<root@xxxxxxxxxxx>, relay=snoopy.nic.home.net[192.168.10.17],
delay=0, status=sent (250 Message received:
20011023091948234.AAA246.308@xxxxxxxxxxxxxxxxxxxx)
Mail will only be delivered to root!
Setting
POSTFIX_LOCALDOMAINS=""
to "localhost mm.home.net" makes postfix respect aliases.db:
xcnlm03s:/etc # mail -s test root
Test
.
EOT
xcnlm03s:/etc # tail -n 5 /var/log/mail
Oct 23 13:28:49 xcnlm03s postfix/local[5926]: 863A13EE01:
to=<root@xxxxxxxxxxx>, relay=local, delay=0, status=sent (mailbox)
Oct 23 13:28:49 xcnlm03s postfix/cleanup[5924]: A6C923EE02:
message-id=<20011023112849.863A13EE01@xxxxxxxxxxxxxxxxxxxx>
Oct 23 13:28:49 xcnlm03s postfix/local[5926]: 863A13EE01:
to=<root@xxxxxxxxxxx>, relay=local, delay=0,
status=sent (forwarded as A6C923EE02)
Oct 23 13:28:49 xcnlm03s postfix/qmgr[5674]:
A6C923EE02: from=<root@xxxxxxxxxxx>, size=495, nrcpt=1 (queue active)
Oct 23 13:28:49 xcnlm03s postfix/smtp[5927]: A6C923EE02:
to=<tschweikle@xxxxxx>, relay=snoopy.nic.home.net[192.168.10.17],
delay=0, status=sent (250 Message received:
20011023092546406.AAA337.247@xxxxxxxxxxxxxxxxxxxx)
--
Thomas
| < Previous | Next > |