Thank you, Mark, for the help.
We had a power outage last Friday so I didn't had chance to play with it. Now I rebuilt my test sever and reconfigured the Mailman. I also patched the Mailman/MTA/Postfix.py.

Now I can see the improvement (no more "Unknown user") but I still has some trouble.

After create the first mailman mail list, again, I send test post to [email protected]. The log shows:

Aug 9 10:05:08 mail MailScanner[2371]: New Batch: Scanning 1 messages, 881 bytes Aug 9 10:05:08 mail MailScanner[2371]: Virus and Content Scanning: Starting Aug 9 10:05:08 mail MailScanner[2371]: Requeue: E1ECD42F01D3.A461F to 7E27A42F01D2 Aug 9 10:05:08 mail postfix/qmgr[2182]: 7E27A42F01D2: from=<[email protected]>, size=1015, nrcpt=1 (queue active)
Aug  9 10:05:08 mail MailScanner[2371]: Uninfected: Delivered 1 messages
Aug 9 10:05:08 mail postfix/trivial-rewrite[2523]: warning: do not list domain mydomain.com in BOTH mydestination and virtual_mailbox_domains Aug 9 10:05:08 mail MailScanner[2371]: Deleted 1 messages from processing-database Aug 9 10:05:09 mail postfix/local[2538]: 7E27A42F01D2: to=<[email protected]>, relay=local, delay=1.1, delays=0.96/0.02/0/0.17, dsn=2.0.0, status=sent (delivered to command: /usr/lib/mailman/mail/mailman post mailman)
Aug  9 10:05:09 mail postfix/qmgr[2182]: 7E27A42F01D2: removed

It seems the mail get drliverd by postfix. But when I check mail as [email protected] ( this is the owner of the Mailman list) there is nothing. So I went to check the spool:
[r...@mail in]# ll /var/spool/mailman/in
total 12
-rw-rw---- 1 apache mailman 1935 Aug 9 10:03 1281125961.361567+13f4f098b3279d920b85092212b376695b4b960c.pck -rw-rw---- 1 nobody mailman 1309 Aug 9 09:51 1281372696.8948531+615da8c239c0eea8523aef9203fd4af249567d1b.pck -rw-rw---- 1 nobody mailman 1309 Aug 9 10:05 1281373509.027688+d4f4af3b3e59ba39d7ed6a0ae2242f1eb20bab36.pck

Is that means the mail stuck at there? What should I do to make the delivery to all subscribers?

I am using MySQL to setup virtual domain. Should I put something in the transfer table? (I have: transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf in main.cf)


Here are some of information:
-------------------------------------------------------------------------------------------------------------------------------------------
[r...@mail in]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases,hash:/etc/mailman/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
header_checks = regexp:/etc/postfix/header_checks
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = mail.mydomain.com, mydomain.com, localhost, localhost.localdomain
myhostname = mail.mydomain.com
mynetworks = 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
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_mailbox_limit_maps
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
recipient_delimiter = +
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_create_maildirsize = yes
virtual_gid_maps = static:5000
virtual_mailbox_base = /home/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_maildir_extended = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
virtual_uid_maps = static:5000

-------------------------------------------------------------------------------------------------------------------
/etc/mailman/mm_cfg.py

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

DEFAULT_URL_HOST   = 'mail.mydomain.com'
DEFAULT_EMAIL_HOST = 'mydomain.com'

# Because we've overriden the virtual hosts above add_virtualhost
# MUST be called after they have been defined.

add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)


##############################################################
# Put YOUR site-specific configuration below, in mm_cfg.py . #
# See Defaults.py for explanations of the values.            #

# Note - if you're looking for something that is imported from mm_cfg, but you
# didn't find it above, it's probably in Defaults.py.

MTA = 'Postfix'
POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mydomain.com']
------------------------------------------------------------------------------------------------------
[r...@mail mailman]# ll
total 52
-rw-r----- 1 root mailman    41 Aug  6 10:23 adm.pw
-rw-rw---- 1 root mailman  1132 Aug  6 12:55 aliases
-rw-r----- 1 root mailman 12288 Aug  6 12:55 aliases.db
lrwxrwxrwx 1 root mailman 34 Aug 6 10:12 mm_cfg.py -> /usr/lib/mailman/Mailman/mm_cfg.py
-rw-r--r-- 1 root mailman 14114 May 24  2008 sitelist.cfg
-rw-rw---- 1 root mailman  1155 Aug  6 12:55 virtual-mailman
-rw-r----- 1 root mailman 12288 Aug  6 12:55 virtual-mailman.db

[r...@mail mailman]# cat aliases
# This file is generated by Mailman, and is kept in sync with the
# binary hash file aliases.db.  YOU SHOULD NOT MANUALLY EDIT THIS FILE
# unless you know what you're doing, and can keep the two files properly
# in sync.  If you screw it up, you're on your own.

# The ultimate loop stopper address
mailman-loop: /var/lib/mailman/data/owner-bounces.mbox

# STANZA START: mailman
# CREATED: Fri Aug  6 12:55:44 2010
mailman:             "|/usr/lib/mailman/mail/mailman post mailman"
mailman-admin:       "|/usr/lib/mailman/mail/mailman admin mailman"
mailman-bounces:     "|/usr/lib/mailman/mail/mailman bounces mailman"
mailman-confirm:     "|/usr/lib/mailman/mail/mailman confirm mailman"
mailman-join:        "|/usr/lib/mailman/mail/mailman join mailman"
mailman-leave:       "|/usr/lib/mailman/mail/mailman leave mailman"
mailman-owner:       "|/usr/lib/mailman/mail/mailman owner mailman"
mailman-request:     "|/usr/lib/mailman/mail/mailman request mailman"
mailman-subscribe:   "|/usr/lib/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe mailman"
# STANZA END: mailman

[r...@mail mailman]# cat virtual-mailman
# This file is generated by Mailman, and is kept in sync with the binary hash # file virtual-mailman.db. YOU SHOULD NOT MANUALLY EDIT THIS FILE unless you # know what you're doing, and can keep the two files properly in sync. If you
# screw it up, you're on your own.
#
# Note that you should already have this virtual domain set up properly in
# your Postfix installation.  See README.POSTFIX for details.

# LOOP ADDRESSES START
[email protected]    mailman-loop
# LOOP ADDRESSES END

# STANZA START: mailman
# CREATED: Fri Aug  6 12:55:44 2010
[email protected]              mail...@localhost
[email protected]        mailman-ad...@localhost
[email protected]      mailman-boun...@localhost
[email protected]      mailman-conf...@localhost
[email protected]         mailman-j...@localhost
[email protected]        mailman-le...@localhost
[email protected]        mailman-ow...@localhost
[email protected]      mailman-requ...@localhost
[email protected]    mailman-subscr...@localhost
[email protected]  mailman-unsubscr...@localhost
# STANZA END: mailman

---------------------------------------------------------------------------------------------------------


Again, thank you for the great help.

Jian



On 10-08-05 10:04 PM, Mark Sapiro wrote:
Jian Gao wrote:
After create the mailman list, I added two subscribers and test the mail
list. The maillog shows:

|Aug  5 14:00:26 mail postfix/virtual[2984]: C5C3142F01CB:
to=<[email protected]>, relay=virtual, delay=0.4,
delays=0.37/0.02/0/0.01, dsn=5.1.1, status=bounced (unknown user:
"[email protected]")|

It seems postfix couldn't find the alias, am I right?

Yes. Because postfix thinks mydomain.com is a virtual domain and you
have no virtual mapping for these addresses.


Here is some of my configurations:
[r...@mail ~]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases,hash:/etc/mailman/alias
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
header_checks = regexp:/etc/postfix/header_checks
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = mail.mydomain.com, localhost, localhost.localdomain

The above does not include mydomain.com, only mail.mydomain.com so
mydomain.com is not a local domain. If you want mydomain.com to be
local, include it above.

If mydomain.com is intended to be a virtual domain to work with
Mailman/Postfix integration, you need

virtual_alias_domains = mydomain.com

below and you need to add "hash:/etc/mailman/" to virtual_alias_maps
and you need to add

POSTFIX_STYLE_VIRTUAL_DOMAINS = ['mydomain.com']

to mm_cfg.py and run Mailman's bin/genaliases to create the
virtual-mailman file.

If this is not satisfactory, the FAQ at<http://wiki.list.org/x/ZoCj>
may be of interest.


--
Jian Gao
IT Administrator
SJ Geophysics Ltd. <http://www.sjgeophysics.com>
[email protected] <mailto:[email protected]>
Tel: (604)582-1100
------------------------------------------------------
Mailman-Users mailing list [email protected]
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/archive%40jab.org

Reply via email to