Mailman and postfix virtual user trouble

Hello,
I'm configuring mailman and postfix with virtual domain support. The problem is that everytime I send an email to mylist@lists.anotherdom.net I got a reply error from postfix as
<*mylist@mydomain.io <mylist@mydomain.io>>* (expanded from < mylist@lists.anotherdom.net>): User unknown in virtual alias table
I do not understand why the list is traduced to mydomain.io that is not configured anywhere. My mm_cfg.py is:
MAILMAN_SITE_LIST = 'mailman' DEFAULT_URL_PATTERN = 'http://%s/cgi-bin/mailman/' IMAGE_LOGOS = '/images/mailman/' DEFAULT_EMAIL_HOST = 'myhost.mydomain.io' DEFAULT_URL_HOST = 'myhost.mydomain.io' add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST) DEFAULT_SERVER_LANGUAGE = 'en' DEFAULT_SEND_REMINDERS = 0 MTA='Postfix' POSTFIX_STYLE_VIRTUAL_DOMAINS = ['lists.anotherdom.net']
Here my main.cf configuration: http://pastebin.com/zNf9Lyn7
I see that virtual-mailman just translate:
mylist@lists.anotherdom.net mylist
And probably here postfix try to treat it as local address. However in /var/lib/mailman/data/virtual-mailman is present
mylist: "|/var/lib/mailman/mail/mailman post mylist"
Any idea?
thanks Ste

On 02/19/2014 12:44 PM, Stefano Cislaghi wrote:
I see that virtual-mailman just translate:
mylist@lists.anotherdom.net mylist
Yes.
And probably here postfix try to treat it as local address. However in /var/lib/mailman/data/virtual-mailman is present
You mean /var/lib/mailman/data/aliases?
mylist: "|/var/lib/mailman/mail/mailman post mylist"
Here's an issue. From main.cf:
mydestination = localhost, localhost.localdomain mydomain = mydomain.io
You need to have mydomain.io in mydestination, either by
mydestination = localhost, localhost.localdomain, $mydomain
or
mydestination = localhost, localhost.localdomain, mydomain.io
Hoever, I'm concerned about the implication of
mailman_destination_recipient_limit = 1
What's in /etc/postfix/transport? If there is a 'mailman' transport entry for the lists.anotherdom.net domain and this transport is defined in master.cf as postfix_to_mailman.py, see the FAQ at <http://wiki.list.org/x/EYDt>, and probably just remove the 'mailman' entry from /etc/postfix/transport and removemailman_destination_recipient_limit from main.cf.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Quick question what does this parameter do exactly?
mailman_destination_recipient_limit = 1

On 02/20/2014 05:57 AM, George Kasica wrote:
Quick question what does this parameter do exactly?
mailman_destination_recipient_limit = 1
See <http://www.postfix.org/postconf.5.html#transport_destination_recipient_limit>.
In this case, it ensures that if one message is addressed to more than one address served by the 'mailman' transport, that the message is delivered separately to the mailman transport for each address.
It should be used if and only if there is a postfix_to_mailman.py or similar 'mailman' transport.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
George Kasica
-
Mark Sapiro
-
Stefano Cislaghi