From: Albert Chin (no email)
Date: Sun Oct 01 2006 - 00:16:03 EDT
I've configured an internal server to manage internal mailing lists
with Mailman. I'd like to use Postfix virtual aliases to handle list
addresses. Server is FreeBSD 6.1-STABLE/Intel, Postfix is 2.2.10, and
Mailman is 2.1.8. The changes I made to main.cf:
mydomain = thewrittenword.com
myorigin = $mydomain
inet_interfaces = $myhostname, localhost
local_recipient_maps = $alias_maps
mynetworks = 192.168.0.0/24, 192.168.1.0/24, 127.0.0.0/8
alias_maps = hash:/ext/postfix/aliases,
hash:/ext/postfix/mailman-aliases,
hash:/etc/opt/TWWfsw/mailman21/aliases
alias_database = hash:/ext/postfix/aliases,
hash:/ext/postfix/mailman-aliases
masquerade_domains = !lists.il.thewrittenword.com,
!lists.thewrittenword.com
virtual_alias_domains = lists.il.thewrittenword.com,
lists.thewrittenword.com
virtual_alias_maps = hash:/etc/opt/TWWfsw/mailman21/virtual-mailman
$ dig il.thewrittenword.com mx
il.thewrittenword.com. 1D IN MX 10 rom.il.thewrittenword.com.
$ dig lists.il.thewrittenword.com mx
lists.il.thewrittenword.com. 1D IN MX 10 maetel.il.thewrittenword.com.
/etc/opt/TWWfsw/mailman21/aliases has:
build: "|/opt/TWWfsw/mailman21/mail/mailman post build"
/etc/opt/TWWfsw/mailman21/virtual-mailman has:
virtual-alias.domain anything
build
If I send mail to one of the list addresses,
, I get the following:
$ telnet maetel smtp
Connected to maetel.il.thewrittenword.com.
Escape character is '^]'.
220 maetel.il.thewrittenword.com ESMTP Postfix (2.2.10)
mail from: <>
250 Ok
rcpt to: <>
250 Ok
data
354 End data with <CR><LF>.<CR><LF>
to: <>
From: <>
Subject: Test
test
.
250 Ok: queued as D0256CA
On maetel, /var/log/maillog has:
Sep 30 22:59:54 <2.6> maetel postfix/qmgr[5957]: D0256CA: from=<>, size=445, nrcpt=1 (queue active)
Sep 30 22:59:55 <2.6> maetel postfix/smtp[5960]: D0256CA: to=<>, orig_to=<>, relay=mail1.thewrittenword.com[67.95.107.114], delay=6, status=bounced (host mail1.thewrittenword.com[67.95.107.114] said: 550 <>: User unknown in local recipient table (in reply to RCPT TO command))
Why isn't mail to delivered locally
because of the /etc/opt/TWWfsw/mailman21/virtual-mailman entry and the
/etc/opt/TWWfsw/mailman21/aliases entry? I'd expect Postfix to first
read /etc/opt/TWWfsw/mailman21/virtual-mailman, discover the
" build" entry, and then read
/etc/opt/TWWfsw/mailman21/aliases to look up an entry for "build" and
then deliver to the command specified for the "build" alias entry.
But, it seems to think is non-local,
rewrites to destination to , and attempts
delivery to the mail server for thewrittenword.com, which doesn't know
about .
Any ideas?
-- albert chin ()
|
|
|