[Mailman-Users] postfix and mailman issues

Michael GIbbs mike at gibbs-family.org
Fri Jul 1 21:05:57 CEST 2005


Ivan,

    Adding @localhost to the end of a list instead of just gamer it now 
reads gamer at localhost.  That seems
to have works.  The question is why did it not work before, and will I 
have to do this manual to all lists in virtual-mailman.

Mike


Ivan Fetch wrote:

> Hi Mike,
>
>     The "VirtualDomain.org IGNORE" line can be in /etc/postfix/virtual.
>
>
>     What happens if you add @localhost to the end of a line in 
> /usr/local/mailman/data/virtual-mailman,, then run postalias on it:
> listname at VirtualDomain.org listname at localhost
>
>
>     This is kind of a stab in the dark RE: Postfix's MyDestination 
> being appended to the end of the right side of the virtual map  when 
> it has no host part.  I may be able to experiment with this later on a 
> box with a test list.
>
>
> Thanks - Ivan.
>
>
> On Fri, 1 Jul 2005, Michael GIbbs wrote:
>
>> Ivan,
>>
>>   My line is washingtongamers.org   IGNORE
>>
>> The docs say the second part of that (DOMAIN, IGNORE) can be anything 
>> as postfix ignores it.  I know the
>> virtual domain works as I can receive mail to an email address with 
>> washingtongamers.org and it get correctly redirected
>> to an offsite email address destination (aka send to 
>> testing at washingtongamers.org gets accepted and correctly
>> sent to bubba at domain.com).  My question is, is that line actually 
>> talking about adding the above to virtual-mailman
>> and not virtual?
>>
>> Mike
>>
>> Ivan Fetch wrote:
>>
>>> Hi Mike,
>>>
>>>    Looking in README.POSTFIX (part of the Mailman source, although I 
>>> don't see it with 2.1.6), it does say:
>>>
>>> "First, you need to set up the Postfix virtual alias domains as
>>>     described in the Postfix documentation (see Postfix's virtual(5)
>>>     manpage).  Note that it's your responsibility to include the
>>>     "virtual-alias.domain anything" line as described manpage; Mailman
>>>     will not include this line in virtual-mailman.  I highly encourage
>>>     you to make sure your virtual alias domains are working properly
>>>     before integrating with Mailman."
>>>
>>>
>>>
>>>    DO you have this line in /etc/postfix/virtual:
>>> # note the "DOMAIN" part can really be anything
>>> washingtongamers.org DOMAIN
>>>
>>>
>>>
>>> Thanks - Ivan.
>>>
>>> On Fri, 1 Jul 2005, Michael GIbbs wrote:
>>>
>>>> Ivan,
>>>>
>>>>   I have the right .db files in /usr/local/mailman/data, as I did 
>>>> run genaliases.  I get no errors wihle running it.
>>>>
>>>> As for my alias_map settings I have this:
>>>>
>>>> #  Map config Settings
>>>> alias_database = hash:/etc/postfix/aliases
>>>> alias_maps = hash:/etc/postfix/aliases, 
>>>> hash:/usr/local/mailman/data/aliases
>>>>
>>>> # Virtual config Settings
>>>> virtual_alias_maps = hash:/etc/postfix/virtual, 
>>>> hash:/usr/local/mailman/data/virtual-mailman
>>>>
>>>> After rerunning genaliases and restarting everything, I get this 
>>>> error, which seems to still be rewriting the domain name:
>>>>
>>>> Jul  1 00:31:51 mail postfix/smtp[10936]: 53E73340187: 
>>>> to=<gamer at gibbs-family.org>, orig_to=<gamer at washingtongamers.org>, r
>>>> elay=mail.gibbs-family.org[204.157.3.80], delay=0, status=bounced 
>>>> (host mail.gibbs-family.org[204.157.3.80] said: 550 5.1.1
>>>> <gamer at gibbs-family.org>... User unknown (in reply to RCPT TO 
>>>> command))
>>>>
>>>> Do I need to add to the top of virtual-mailman:
>>>>
>>>> washingtongamers.org      IGNORE
>>>>
>>>> /etc/postfix/virtual contains washingtongamres.org aliases not 
>>>> related to the mailing list?  Could this be causing the problem?
>>>>
>>>> Mike
>>>>
>>>>
>>>>
>>>> Ivan Fetch wrote:
>>>>
>>>>> 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:
>>>>> ListName at VirtualDomain.com ListName
>>>>> ListName-admin at VirtualDomain.com ListName-admin
>>>>> ListName-bounces at VirtualDomain.com ListName-bounces
>>>>> ListName-confirm at VirtualDomain.com ListName-confirm
>>>>> ListName-join at VirtualDomain.com ListName-join
>>>>> ListName-leave at VirtualDomain.com ListName-leave
>>>>> ListName-owner at VirtualDomain.com ListName-owner
>>>>> ListName-request at VirtualDomain.com ListName-request
>>>>> ListName-subscribe at VirtualDomain.com ListName-subscribe
>>>>> ListName-unsubscribe at VirtualDomain.com 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 gamer at domain.com>, o
>>>>>> rig_to=<gamer at virtual-domain.com>, 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 at 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 
>>>>>>
>>>>>>
>>>>
>>>>
>>
>>




More information about the Mailman-Users mailing list