Hi Michael,

    It sounds like you may be putting your Mailman aliases (pipes to the 
mailman binary) in your /etc/postfix/virtual file.  Mailman's Postfix 
virtual domain integration populates a Mailman specific virtual, and 
aliases file, located in /usr/local/mailman/data.

    If you haven't done this already, you might want to run 
/usr/local/mailman/bin/genaliases
    to create the Mailman virtual-mailman and aliases files that Postfix 
will use (you already have correct lines for this in the Postfix main.cf 
file).

    When running genaliases do you get any errors about running postalias 
or postmap?  You may need to set the variables POSTFIX_ALIAS_CMD and 
POSTFIX_MAP_CMD in the Mailman mm_cfg.py file, so mailman knows where the 
postalias and postmap commands reside.



    In terms of the error you refer to in your message below, I don't 
believe that you can have pipes to commands in your Postfix 
/etc/postfix/virtual domain map.  Instead you need to have (this is what 
mailman does  - see above):

    Your Postfix virtual file might contain:
[EMAIL PROTECTED] ListName
[EMAIL PROTECTED] ListName-admin
[EMAIL PROTECTED] ListName-bounces
[EMAIL PROTECTED] ListName-confirm
[EMAIL PROTECTED] ListName-join
[EMAIL PROTECTED] ListName-leave
[EMAIL PROTECTED] ListName-owner
[EMAIL PROTECTED] ListName-request
[EMAIL PROTECTED] ListName-subscribe
[EMAIL PROTECTED] ListName-unsubscribe


    Your Postfix aliases file might then contain:
## ListName mailing list
ListName: "|/usr/local/mailman/mail/mailman post ListName"
ListName-admin: "|/usr/local/mailman/mail/mailman admin ListName"
ListName-bounces: "|/usr/local/mailman/mail/mailman bounces ListName"
ListName-confirm: "|/usr/local/mailman/mail/mailman confirm ListName"
ListName-join: "|/usr/local/mailman/mail/mailman join ListName"
ListName-leave: "|/usr/local/mailman/mail/mailman leave ListName"
ListName-owner: "|/usr/local/mailman/mail/mailman owner ListName"
ListName-request: "|/usr/local/mailman/mail/mailman request ListName"
ListName-subscribe: "|/usr/local/mailman/mail/mailman subscribe ListName"
ListName-unsubscribe: "|/usr/local/mailman/mail/mailman unsubscribe ListName"



    Let me know if I am not making sense, or if you still have problems, 
I'm happy to try to help.

Thanks,
Ivan Fetch.

On Thu, 30 Jun 2005, Michael GIbbs wrote:

> Greetings,
>
>    I have been trying to integrate Mailman 2.1.6 with Postfix  2.2.4
> with no luck.  I have followed the instructions on the Mailman
> website for Postfix, and I have installed Postfix-style Virtual
> Domains.  The lists domain name used is different then the mail servers
> actual domain.
>
>    When I send mail to <username>@virtual-domain.com, it gets sent to
> the right mail address (which is NOT located locally).  If,
> however, a mail is sent for an alias under mailman
> <list>@virtual-domain.com, I get the following:
>
> Jun 30 02:11:05 mail postfix/smtp[27605]: E7118340227:
> to=<|/usr/local/mailman/mail/mailman post [EMAIL PROTECTED]>, o
> rig_to=<[EMAIL PROTECTED]>, relay=mail.domain.com[ipaddress
> removed], delay=1, status=bounced (host
> mail.domain.com[ipaddress removed] said: 550 5.7.1
> <"|/usr/local/mailman/mail/mailman post gamer"@domain.com>... Cannot
> mail dire
> ctly to programs (in reply to RCPT TO command))
>
> Here is my Postfix main.cf:
>
> #
> # Postfix Basic Configuration Settings
> #
> myhostname = mail.domain.com
> mydomain = domain.com
> myorigin = $mydomain
> mydestination = $myhostname localhost.$mydomain localhost
> mynetworks = <ipaddress removed>/29
> relay_domains = /etc/postfix/relay_domains
> readme_directory = no
> sample_directory = /etc/postfix
> sendmail_path = /usr/sbin/sendmail
> html_directory = no
> setgid_group = postdrop
> command_directory = /usr/sbin
> manpage_directory = /usr/local/man
> daemon_directory = /usr/libexec/postfix
> newaliases_path = /usr/bin/newaliases
> mailq_path = /usr/bin/mailq
> queue_directory = /var/spool/postfix
> mail_owner = postfix
> unknown_local_recipient_reject_code = 550
> local_recipient_maps = $virtual_alias_maps $alias_maps unix:passwd.byname
>
> smtpd_recipient_restrictions = permit_sasl_authenticated
> permit_mynetworks check_relay_domains
> smtpd_sender_restrictions =  permit_sasl_authenticated permit_mynetworks
> reject_sender_login_mismatch
>
> #  Map config Settings
> alias_database = hash:/etc/postfix/aliases,
> hash:/usr/local/mailman/data/aliases
> alias_maps = hash:/etc/postfix/aliases, hash:/usr/local/mailman/data/aliases
>
> #virtual map config
> virtual_alias_maps = hash:/etc/postfix/virtual,
> hash:/usr/local/mailman/data/virtual-mailman
>
> # sasl config
> broken_sasl_auth_clients = yes
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_security_options = noanonymous
>
> # tls config
> smtp_use_tls = yes
> smtpd_use_tls = yes
> smtp_tls_note_starttls_offer = yes
> smtpd_tls_key_file = /etc/postfix/ssl/post.pem
> smtpd_tls_cert_file = /etc/postfix/ssl/post.pem
> smtpd_tls_CAfile = /etc/postfix/ssl/post.pem
> smtpd_tls_loglevel = 3
> smtpd_tls_received_header = yes
> smtpd_tls_session_cache_timeout = 3600s
> tls_random_source = dev:/dev/urandom
>
>
> Here is my Mailman mm_cfg.py:
> MTA='postfix'
> POSTFIX_STYLE_VIRTUAL_DOMAINS = ['virtual-domain.com']
>
>
>
> Mike Gibbs
>
> ------------------------------------------------------
> Mailman-Users mailing list
> Mailman-Users@python.org
> http://mail.python.org/mailman/listinfo/mailman-users
> Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
> Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
> Unsubscribe: 
> http://mail.python.org/mailman/options/mailman-users/ifetch%40du.edu
>
> Security Policy: 
> http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp
>
>
------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to