[Mailman-Users] Postfix and Mailman tips in FAQ have a mistake?

Mark Sapiro mark at msapiro.net
Wed Dec 29 16:57:42 CET 2010


Konstantin Vasilyev wrote:
>
>But now I have another error in maillog
>> postfix/smtpd[46087]: NOQUEUE: reject: RCPT from
>> unknown[192.168.2.199]: 550 5.1.1 <mailman at cellnetrix.com>: Recipient
>> address rejected: User unknown in virtual mailbox table;
>> from=<admin at cellnetrix.com> to=<mailman at cellnetrix.com> proto=ESMTP
>> helo=<[192.168.2.199]>


Which says that Postfix is using the virtual transport for this address.


>Here is my postconf -n
>
># postconf -n
>alias_maps = hash:/etc/aliases, hash:/usr/local/mailman/data/aliases

Good.

[...]
>transport_maps = hash:/usr/local/etc/postfix/transport,                
>hash:/usr/local/mailman/data/transport-mailman

Good. But, did you reload Postfix after adding the above? If so, I
don't know what the problem might be. But, see below.


[...]
>
>What am I doing wrong?


As I say above, if you reloaded Postfix after adding
hash:/usr/local/mailman/data/transport-mailman to transport_maps, I
don't know why this doesn't work, but, based on your Postfix
configuration, I don't know why you think you need to do this
transport_maps thing at all.

I think your Postfix will work if you do the following:

1) remove the

POSTFIX_MAP_CMD = '/path/to/data/virtual_to_transport'

line from mm_cfg.py.

2) run Mailman's bin/genaliases to create virtual-mailman.db

3) add "hash:/usr/local/mailman/data/virtual-mailman" to Postfix
main.cf virtual_alias_maps.

4) remove "hash:/usr/local/mailman/data/transport-mailman" from Postfix
main.cf transport_maps.

5)reload Postfix.

At this point, Postfix should deliver mail to Mailman. You can then
remove /usr/local/mailman/data/transport-mailman* as those files are
no longer used.

Note, you should also add

recipient_delimiter = +

to Postfix main.cf so that Mailman's VERP like addresses will work.

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan



More information about the Mailman-Users mailing list