Recipient address rejected: User unknown in virtual mailbox table
Hello,
having a virtual server with ubuntu 8.04 i installed with aptitude mailman (2.1.9-9u) with postfix, following:
https://help.ubuntu.com/community/Mailman
As admin, i can sign in new mailinglist-users, but if i mail to:
Mailman-request@example.org (where example.org is my domain)
i get a bounce-mail:
Recipient address rejected: User unknown in virtual mailbox table
Same thing if i mail to mailman@example.org. Sure, i didn't create in my domain in postfix a user "mailman-request" or "mailman", because i thought this is what my installation and configuration in postfix checks out.
What is wrong? Does anybody could give me a hint?
Thank you,
: franc
franc walter <francwalter@gmx.de> wrote:
having a virtual server with ubuntu 8.04 i installed with aptitude mailman (2.1.9-9u) with postfix, following:
https://help.ubuntu.com/community/Mailman
As admin, i can sign in new mailinglist-users, but if i mail to:
Mailman-request@example.org (where example.org is my domain)
i get a bounce-mail:
Recipient address rejected: User unknown in virtual mailbox table
Same thing if i mail to mailman@example.org. Sure, i didn't create in my domain in postfix a user "mailman-request" or "mailman", because i thought this is what my installation and configuration in postfix checks out.
What is wrong? Does anybody could give me a hint?
You don't create users or mailboxes for Mailman's list addresses. This is handled by alias_maps, virtual_alias_domains, and virtual_alias_maps in Postfix, or, since this is Debian/Ubuntu, possibly by postfix_to_mailman.py.
If you are following the Postfix section of <https://help.ubuntu.com/community/Mailman>, you have left something out, possibly you didn't add
lists.example.com mailman:
to the Postfix transport table, or possibly you are not mailing to the lists.example.com domain.
See the installation Manual at <http://www.list.org/mailman-install/node12.html> and/or the Debian/Ubuntu specic documentation.
You may also find the FAQ at <http://wiki.list.org/x/ZoCj> relevant.
In order for this list to be of more help, we need more information including
the contents of mm_cfg.py the output of postconf -n
and possibly additional Postfix information such as the contents of or at least anything to do with Mailman from master.cf and the Postfix transport table.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Thu, 8 Jul 2010, Mark Sapiro wrote:
You don't create users or mailboxes for Mailman's list addresses. This is handled by alias_maps, virtual_alias_domains, and virtual_alias_maps in Postfix, or, since this is Debian/Ubuntu, possibly by postfix_to_mailman.py.
Having set up Mailman on 3 separate systems, 2 Debian and 1 Ubuntu, I can personally recommend not using postfix2mailman. I understand it's not recommended, and there really seems to be no reason to use it. The alias maps way seems a lot easier to understand in my opinion. I just followed the installation manual and did just fine.
Geoff.
Am Thu, 8 Jul 2010 20:18:25 +0300 (IDT) schriebst du:
I can personally recommend not using postfix2mailman. I understand it's not recommended, and there really seems to be no reason to use it. The alias maps way seems a lot easier to understand in my opinion. I just followed the installation manual and did just fine.
I am very confused now. Could you indicate me the doc where you followed the installation?
franc walter wrote:
I am very confused now. Could you indicate me the doc where you followed the installation?
I think all you need should be at <http://www.list.org/mailman-install/node12.html> and the first subsection 6.1.1.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Am Thu, 8 Jul 2010 11:01:13 -0700 schriebst du:
I think all you need should be at <http://www.list.org/mailman-install/node12.html> and the first subsection 6.1.1.
OK, i think i won't use this postfix2mailman and do it like you propose.
I will tell later if it works, thank you very much till yet!!!
yours, franc
On Thu, 8 Jul 2010, franc walter wrote:
I am very confused now. Could you indicate me the doc where you followed the installation?
The installation guide can be found at http://list.org/site.html
The specific sections on Postfix can be found at http://list.org/mailman-install/node12.html
However I recommend reading through the whole thing because it's very easy to skip out important things in a package-based system like Debian/Ubuntu where things are done for you.
A couple of things to note:
The Mailman user under Debian/Ubuntu is list.
The alias and virtual-mailman files will be in /var/lib/mailman/data
IMHO, the section concerning virtual domains is more confusing than it needs to be, so feel free to ask if you get confused.
Geoff.
Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/geoff%40quitelikely.com
Am Thu, 8 Jul 2010 21:06:09 +0300 (IDT) schriebst du:
A couple of things to note:
- The Mailman user under Debian/Ubuntu is list.
- The alias and virtual-mailman files will be in /var/lib/mailman/data
OK, thanks.
IMHO, the section concerning virtual domains is more confusing than it needs to be, so feel free to ask if you get confused.
Oh yes, this is not clear to me. I don't understand where the file:
/var/lib/mailman/data/virtual-mailman
should come from. Have i to build it?
I changed my postfix-main.cf from:
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
to:
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf,hash:/var/lib/mailman/data/virtual-mailman
(i use mysql and no db-files for the virtual-domains) but then Postfix won't run, because this file doesn't exist.
And i put into my mm_cfg.py this (i restartet mailman and postfix after):
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['example.org', 'example2.org']
because i have those two domains and want to run mailman with both. I think it is wrong but i don't understand why. I have read the doc (6.1.2) ten times, but my view doesn't change. Could you give me a hint?
On Fri, 9 Jul 2010, franc walter wrote:
Oh yes, this is not clear to me. I don't understand where the file:
/var/lib/mailman/data/virtual-mailman
should come from. Have i to build it?
This is built by the /usr/lib/mailman/bin/genaliases script, providing you have Mailman configured correctly.
I changed my postfix-main.cf from:
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
to:
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf,hash:/var/lib/mailman/data/virtual-mailman
This looks right to me.
And i put into my mm_cfg.py this (i restartet mailman and postfix after):
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['example.org', 'example2.org']
This also looks right. Try running genaliases.
Geoff.
Am Fri, 9 Jul 2010 16:34:36 +0300 (IDT) schriebst du:
This also looks right. Try running genaliases.
If i run
/usr/lib/mailman/bin/genaliases
in:
/var/lib/mailman/data/
all i get is aliases and aliases.db, but no virtual-mailman and virtual-mailman.db
Im my mm_cfg.py i have
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['example.org', 'example2.org']
Do i need more?
Another problem is, that i don't know where to put
virtual-alias.domain anything
Am Thu, 8 Jul 2010 08:37:45 -0700 schriebst du:
You don't create users or mailboxes for Mailman's list addresses. This is handled by alias_maps, virtual_alias_domains, and virtual_alias_maps in Postfix, or, since this is Debian/Ubuntu, possibly by postfix_to_mailman.py.
If you are following the Postfix section of <https://help.ubuntu.com/community/Mailman>, you have left something out, possibly you didn't add
lists.example.com mailman:
to the Postfix transport table, or possibly you are not mailing to the lists.example.com domain.
I have exatcly this in the file /etc/postfix/transport and i have the db-file transport.db nearby.
But i don't send to mailman@lists.example.com but to mailman@example.com, like described in the mailman-welcome-mail. Is this wrong?
In order for this list to be of more help, we need more information including
the contents of mm_cfg.py
My mm_cfg.py:
# -*- python -*-
"""This is the module which takes your site-specific settings.
From a raw distribution it should be copied to mm_cfg.py. If you already have an mm_cfg.py, be careful to add in only the new settings you want. The complete set of distributed defaults, with annotation, are in ./Defaults. In mm_cfg, override only those you want to change, after the
from Defaults import *
line (see below).
Note that these are just default settings - many can be overridden via the admin and user interfaces on a per-list or per-user basis.
Note also that some of the settings are resolved against the active list setting by using the value as a format string against the list-instance-object's dictionary - see the distributed value of DEFAULT_MSG_FOOTER for an example."""
####################################################### # Here's where we get the distributed defaults. #
from Defaults import *
############################################################## # Put YOUR site-specific configuration below, in mm_cfg.py . # # See Defaults.py for explanations of the values. #
#------------------------------------------------------------- # The name of the list Mailman uses to send password reminders # and similar. Don't change if you want mailman-owner to be # a valid local part. MAILMAN_SITE_LIST = 'mailman'
#------------------------------------------------------------- # If you change these, you have to configure your http server # accordingly (Alias and ScriptAlias directives in most httpds) DEFAULT_URL_PATTERN = 'http://%s/cgi-bin/mailman/' PRIVATE_ARCHIVE_URL = '/cgi-bin/mailman/private' IMAGE_LOGOS = '/images/mailman/'
#------------------------------------------------------------- # Default domain for email addresses of newly created MLs DEFAULT_EMAIL_HOST = 'example.org' #------------------------------------------------------------- # Default host for web interface of newly created MLs DEFAULT_URL_HOST = 'example.org' #------------------------------------------------------------- # Required when setting any of its arguments. add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
#------------------------------------------------------------- # The default language for this server. DEFAULT_SERVER_LANGUAGE = 'en'
#------------------------------------------------------------- # Iirc this was used in pre 2.1, leave it for now USE_ENVELOPE_SENDER = 0 # Still used?
#------------------------------------------------------------- # Unset send_reminders on newly created lists DEFAULT_SEND_REMINDERS = 0
#------------------------------------------------------------- # Uncomment this if you configured your MTA such that it # automatically recognizes newly created lists. # (see /usr/share/doc/mailman/README.Exim4.Debian) # MTA=None # Misnomer, suppresses alias output on newlist
#------------------------------------------------------------- # Uncomment if you use Postfix virtual domains, but be sure to # see /usr/share/doc/mailman/README.Debian first.
# fcw: 2010-07-06 Postfix MTA='Postfix'
#------------------------------------------------------------- # Uncomment if you want to filter mail with SpamAssassin. For # more information please visit this website: # http://www.jamesh.id.au/articles/mailman-spamassassin/ # GLOBAL_PIPELINE.insert(1, 'SpamAssassin')
# Note - if you're looking for something that is imported from mm_cfg, but you # didn't find it above, it's probably in /usr/lib/mailman/Mailman/Defaults.py.
DEFAULT_SERVER_LANGUAGE = 'de'
the output of postconf -n
root@example:~# postconf -n alias_database = hash:/etc/aliases append_dot_mydomain = no biff = no broken_sasl_auth_clients = yes config_directory = /etc/postfix content_filter = smtp-amavis:[127.0.0.1]:10024 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 mydestination = mail.example.org, www.example.org, lists.example.org, localhost.example.org, localhost mynetworks = myorigin = /etc/mailname readme_directory = no receive_override_options = no_address_mappings recipient_delimiter = + smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_hard_error_limit = 10 smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination reject_unauth_pipelining check_recipient_access hash:/etc/postfix/roleaccount_exceptions check_client_access hash:/etc/postfix/rbl_client_exceptions check_policy_service inet:127.0.0.1:60000 smtpd_sasl_auth_enable = yes smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot smtpd_soft_error_limit = 8 smtpd_tls_auth_only = yes smtpd_tls_cert_file = /etc/apache2/ssl/servercert.pem smtpd_tls_key_file = /etc/apache2/ssl/serverkey.pem smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtpd_use_tls = yes virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf virtual_gid_maps = static:5000 virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf virtual_transport = dovecot virtual_uid_maps = static:5000
and possibly additional Postfix information such as the contents of or at least anything to do with Mailman from master.cf
My Postfix - master.cf:
# # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master"). # # Do not forget to execute "postfix reload" after editing this file. # # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - - - - smtpd #submission inet n - - - - smtpd # -o smtpd_tls_security_level=encrypt # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING
smtps inet n - - - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject -o milter_macro_daemon_name=ORIGINATING #628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup -o content_filter= -o receive_override_options=no_header_body_checks cleanup unix n - - - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo n - - 300 1 oqmgr tlsmgr unix - - - 1000? 1 tlsmgr rewrite unix - - - - - trivial-rewrite bounce unix - - - - 0 bounce defer unix - - - - 0 bounce trace unix - - - - 0 bounce verify unix - - - - 1 verify flush unix n - - 1000? 0 flush proxymap unix - - n - - proxymap proxywrite unix - - n - 1 proxymap smtp unix - - - - - smtp # When relaying mail as backup MX, disable fallback_relay to avoid MX loops relay unix - - - - - smtp -o smtp_fallback_relay= # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - - - - showq error unix - - - - - error retry unix - - - - - error discard unix - - - - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - - - - lmtp anvil unix - - - - 1 anvil scache unix - - - - 1 scache # # ==================================================================== # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # # Many of the following services use the Postfix pipe(8) delivery # agent. See the pipe(8) man page for information about ${recipient} # and other message envelope options. # ==================================================================== # # maildrop. See the Postfix MAILDROP_README file for details. # Also specify in main.cf: maildrop_destination_recipient_limit=1 # maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient} # # See the Postfix UUCP_README file for configuration details. # uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) # # Other external delivery methods. # ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient scalemail-backend unix - n n - 2 pipe flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension} mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user} dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -d ${recipient}
smtp-amavis unix - - - - 2 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes -o max_use=20
127.0.0.1:10025 inet n - - - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_delay_reject=no -o smtpd_client_restrictions=permit_mynetworks,reject -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o smtpd_data_restrictions=reject_unauth_pipelining -o smtpd_end_of_data_restrictions= -o mynetworks=127.0.0.0/8 -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 -o smtpd_client_connection_count_limit=0 -o smtpd_client_connection_rate_limit=0 -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks # -o local_header_rewrite_clients=
Thank you very much for reply!
: franc walter
franc walter wrote:
But i don't send to mailman@lists.example.com but to mailman@example.com, like described in the mailman-welcome-mail. Is this wrong?
[...]
#------------------------------------------------------------- # Default domain for email addresses of newly created MLs DEFAULT_EMAIL_HOST = 'example.org'
If you want to use postfix-to-mailman.py as you have set it up, the above needs to be
DEFAULT_EMAIL_HOST = 'lists.example.com'
(the exact domain in your
lists.example.com mailman:
entry in /etc/postfix/transport)
If you change that and then run
/path/to/mailman/bin/withlist -l -a -r fix_url
The address in the welcome message will be mailman@lists.example.com.
If this is not the domain you want for email, I suggest you forget postfix-to-mailman.py and set up Mailman/Postfix integration as discussed at <http://www.list.org/mailman-install/node12.html>
[..]
#------------------------------------------------------------- # Uncomment if you use Postfix virtual domains, but be sure to # see /usr/share/doc/mailman/README.Debian first.
# fcw: 2010-07-06 Postfix MTA='Postfix'
This is irrelevant if you are using postfix-to-mailman.py
[...]
I think your postconf -n and master.cf are OK for postfix-to-mailman.py as long as you mail to lists @lists.example.com (and change DEFAULT_EMAIL_HOST and run fix_url so your lists know this).
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
franc walter -
Geoff Shang -
Mark Sapiro