I've just noticed that adding virtual_alias_domains = cdt.unb.br to main.cf stops my LDAP Binding. So I removed it and took the original error (unknown user). The virtual-mailman file is fine with the alias.
Roberto
On Fri, Jan 28, 2011 at 5:16 PM, Roberto Mascarenhas Braga <redbullpn@gmail.com> wrote:
Does /etc/mailman/virtual-mailman exist and have entries like
mailman@cdt.unb.br mailman mailman-admin@cdt.unb.br mailman-admin
Yes. It does exist with the lines above. So I've added virtual_alias_domains = cdt.unb.br to main.cf. Now I got:
# postconf | grep virtual_alias_domains proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks virtual_alias_domains = cdt.unb.br
Just to check I've made the other steps you told: # /usr/lib/mailman/bin/dumpdb /var/lib/mailman/lists/novalista/config.pck | grep host_name 'digest_footer': '_______________________________________________\n%(real_name)s mailing list\n%(real_name)s@%(host_name)s\n%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s\n', 'host_name': 'cdt.unb.br', 'msg_footer': '_______________________________________________\n%(real_name)s mailing list\n%(real_name)s@%(host_name)s\n%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s\n',
So it looks as the host_name is ok, cdt.unb.br. So I didn't run fix_urls.
Then I run genaliases and sent a test email again. The I've got the error below:
mailcdt postfix/error[8792]: 0CA433806F: to=<mailman@cdt.unb.br>, relay=none, delay=3.9, delays=3.9/0.03/0/0.03, dsn=5.0.0, status=bounced (User unknown in virtual alias table)
Thanks for the help until now.
Roberto
On Fri, Jan 28, 2011 at 4:38 PM, Mark Sapiro <mark@msapiro.net> wrote:
Roberto Mascarenhas Braga wrote:
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@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@cdt.unb.br - the desired email to the testing list - I cannot receive the message. But if I send the email to mailman@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 = +
Does /etc/mailman/virtual-mailman exist and have entries like
mailman@cdt.unb.br mailman mailman-admin@cdt.unb.br mailman-admin ...
If so, you may need
virtual_alias_domains = cdt.unb.br
in main.cf.
If not, check the host_name of the 'mailman' list
bin/dumpdb lists/mailman/config.pck | grep host_name
If the host_name is not cdt.unb.br, run fix_url
bin/withlist -l -r fix_url mailman
Then, whether or not you needed fix_url, run
bin/genaliases
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan