[Mailman-Users] Postfix virtualdomains + maildrop + mailman?

Hans-Christian Prytz hcp_public at prytz.net
Tue Aug 3 13:54:35 CEST 2004

Hi, I'm trying to add some mailinglists to a machine I run, but I'm having 
some trouble getting things to work. Not really sure if this is the right 
list, but I'll try anyway.

The setup:
One machine (machinename.dom.ain) is hosting mail fro dom.ain as a virtual 
domain (users etc. in a sql database), and I'm using maildrop to filter mail 
into the correct mailboxes (eg virtual_transport=maildrop as per one of the 
howtos on postfix.org).

Now I would like to add lists.dom.ain to hold some mailinglists. I've tried to 
use the built-in virtual domain support, and this works if I use the default 
postfix virtual deilvery agent (but then no filtering of mail into mailboxes) 
but not with maildrop.
/usr/local/mailman/data/virtual-mailman resolves testlist at lists.prytz.net to 
testlist (ie. testlist at dom.ain) which is then looked up 
in /usr/mailman/data/aliases which has testlist resolved to 
"|/usr/local/mailman/mail/mailman post testlist" which seems normal. However 
what is passed to maildrop as the destination is: 
|/usr/local/mailman/mail/mailman post testlist at dom.ain

Any suggestions on how to implement a virtual domain containing mailman lists 
while still using maildrop?



Some configuration stuff (seems to be the relevant parts):

from main.cf

local_recipient_maps = $alias_maps $virtual_mailbox_maps
alias_maps = mysql:/etc/postfix/mysql-aliases.cf, hash:/etc/mail/aliases

# Virtual mailbox stuff
virtual_transport = maildrop
maildrop_destination_recipient_limit = 1
#virtual_transport = virtual
#virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-domains.cf
virtual_mailbox_domains = prytz.net
#virtual_mailbox_domains = prytz.net lists.prytz.net
virtual_minimum_uid = 1100
virtual_gid_maps = static:1101
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
#virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
virtual_alias_maps = 
virtual_uid_maps = static:1101
virtual_mailbox_base = /var/mail/vmail
#virtual_mailbox_base = /home/vmail
#virtual_mailbox_limit =

# Mailman stuff goes here
owner_request_special = no

transport_maps = hash:/etc/postfix/transport
# For filtrering av sender ip etc
smtpd_client_restrictions = hash:/etc/postfix/client_access
# Filtrer paa output fra den over
header_checks = pcre:/etc/postfix/header_checks_spam

More information about the Mailman-Users mailing list