[Mailman-Users] Changing host names, revisited... POSTFIX_STYLE_VIRTUAL_DOMAINS?

Tanstaafl tanstaafl at libertytrek.org
Mon May 3 13:13:18 CEST 2010

On 2010-05-02 7:02 PM, Mark Sapiro wrote:
> Tanstaafl wrote:
>> On 2010-05-02 5:22 PM, Mark Sapiro wrote:
>>> If your list mail goes to ... at example.com and example.com is a local
>>> domain in Postfix (i.e. in mydestinations), you don't want
>>> POSTFIX_STYLE_VIRTUAL_DOMAINS at all and you don't want any references
>>> to Mailman's virtual-mailman in virtual_alias_maps in Postfix.

>> It's not local, I'm using virtual_mailbox_domains/maps... I do host
>> email for two other domains, just no lists (and no need for them)...

> This gets complicated. My question at this point is how is mail to
> listname at example.com getting to Mailman.

Hopefully you can help me figure that out... :)

> Any virtual mappings in Mailman's virtual-mailman will be for the
> listname at myhost.example.com,

Confirmed, /var/lib/mailman/data/virtual-mailman contains blocks like:

# STANZA START: listname
# CREATED: Wed Jan 11 18:32:22 2006
listname at myhost.example.com                    listname

Of course, they are complete with all required aliases for each list.

> etc. addresses, so Postfix can't be relying on that for delivery. So
> if example.com is not a local domain, how is mail to that domain
> getting to Postfix's local delivery in order that Mailman's pipe
> aliases are effective.

As far as I know and understand postfix, I'm using postfix's virtual
delivery agent currently, although I'll be switching this to dovecot-LDA
later. Getting the mailman hostname changed is one thing in a long list
- most of which are done now - of things I had to get done before
switching to dovecot.

> Are transport maps involved for this domain?

I do have one, but it is nothing really - it just has the one entry for
the vacation responder for postfixadmin, and a commented example entry
for bypassing our primary relayhost for any problematic domains. I had
to use it once a long time ago for a few domains that were having
problems accepting data from our primary relayhost (outsourced anti-spam
service), but they fixed that long ago and I haven't used it since.

> I probably need to see "postconf -n" and to understand whether there
> are only list addresses @example.com or if there are non-list virtual
> mailbox users @example.com too.

See below...

> Also, there are mailman generated addresses such as list-bounces, and
> these are currently all generated @myhost.example.com, so how is that
> mail delivered?

Mark, I honestly don't know enough about this stuff to answer that with
any certainty...

Hmmm... could it somehow be from my alias_maps?

/var/lib/mailman/data/aliases contains blocks like the following for
each list:

# STANZA START: listname
# CREATED: Wed Jan 11 18:32:22 2006
listname:             "|/usr/lib64/mailman/mail/mailman post listname"

Again, of course, each has all of the required aliases.

myhost ~ # postconf -n
alias_maps = hash:/etc/mail/aliases, hash:/var/lib/mailman/data/aliases
anvil_rate_time_unit = 360s
anvil_status_update_time = 3600s
bounce_size_limit = 1
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = //usr/lib64/postfix
data_directory = /var/lib/postfix
delay_warning_time = 15m
home_mailbox = .maildir/
html_directory = /usr/share/doc/postfix-2.6.6/html
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
message_size_limit = 51200000
mydomain = example.com
myhostname = smtp.example.com
mynetworks = ###.###.###.###
newaliases_path = /usr/bin/newaliases
parent_domain_matches_subdomains =
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/readme
recipient_delimiter = +
relay_domains =
relayhost = [smtp.example2.com]
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_fallback_relay = [smtp.example3.net]
smtpd_hard_error_limit = 3
smtpd_recipient_limit = 100
smtpd_recipient_restrictions = check_recipient_access
hash:/etc/postfix/moved-employees,  permit_mynetworks,
permit_sasl_authenticated,  reject_unauth_destination,
check_client_access cidr:/etc/postfix/allowed_clients.cidr,
check_recipient_access hash:/etc/postfix/x-employees,
check_sender_access hash:/etc/postfix/blocked_senders,
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/wildcard.crt
smtpd_tls_key_file = /etc/ssl/wildcard.key
smtpd_use_tls = yes
transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = mysql:/etc/postfix/mysql_vam.cf,
virtual_gid_maps = static:207
virtual_mailbox_base = /var/virtual/mail
virtual_mailbox_domains = mysql:/etc/postfix/mysql_vmd.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql_vmm.cf
virtual_minimum_uid = 207
virtual_uid_maps = static:207
myhost ~ #

Thanks again Mark...



More information about the Mailman-Users mailing list