[Mailman-Users] Mailman + Postfix + Virtual Domain (LDAP) not working

Roberto Mascarenhas Braga redbullpn at gmail.com
Thu Jan 27 21:22:48 CET 2011


I'm trying to get Mailman working with Postfix as a MTA but with some
trouble with virtual domains.

I've made setup fine and create my first mailing list, called
"mailman". So, as my domain is cdt.unb.br, the list address is
mailman at cdt.unb.br. The machine that hosts the mailserver is called
mailcdt. So its hostname is mailcdt.cdt.unb.br.

If I send a message to mailman at cdt.unb.br - the desired email to the
testing list - I cannot receive the message. But if I send the email
to mailman at mailcdt.cdt.unb.br (undesired address) I got the message.

Here is my config:
___________________________________________________________________________________
*** /etc/mailman/mm_cfg.py ***
___________________________________________________________________________________
POSTFIX_STYLE_VIRTUAL_DOMAINS   = ['cdt.unb.br']

from socket import *
try:
    fqdn = getfqdn()
except:
    fqdn = 'mm_cfg_has_unknown_host_domains'

DEFAULT_URL_HOST   = "mailcdt.cdt.unb.br"
DEFAULT_EMAIL_HOST = "cdt.unb.br"
VIRTUAL_HOSTS.clear()
MTA = 'Postfix'
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)

___________________________________________________________________________________
*** /etc/postfix/main.cf
___________________________________________________________________________________
unknown_local_recipient_reject_code = 550
relay_domains =

virtual_maps = hash:/etc/postfix/virtual
alias_maps = hash:/etc/aliases, hash:/etc/mailman/aliases
alias_database = hash:/etc/aliases

home_mailbox = Maildir/

debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.3.3/samples
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILE

virtual_mailbox_domains = $mydomain
virtual_mailbox_base = /home/vmail
virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf
virtual_uid_maps = static:500
virtual_gid_maps = static:500

message_size_limit = 30720000

mime_header_checks = regexp:/etc/postfix/mime_header_checks

header_checks = regexp:/etc/postfix/header_checks

virtual_alias_maps = hash:/etc/mailman/virtual-mailman
recipient_delimiter = +


More information about the Mailman-Users mailing list