[Mailman-Developers] [Mailman-checkins] SF.net SVN: mailman: [8100] trunk/mailman/Mailman/MTA/Postfix.py
Tokio Kikuchi
tkikuchi at is.kochi-u.ac.jp
Sun Nov 26 03:28:58 CET 2006
Hi,
After all, you are right, Barry.
Tokio Kikuchi wrote:
>>> - if config.USE_LMTP immediately after ALIASFILE add/remove; we need
>>> to keep alias settings because postfix rejects as unknown if
>>> not present.
>> I haven't tried this diff yet, but are you sure that you need the
>> alias settings if you've got a transport_maps setting? I thought
>> that I tested using fully qualified alias names in the transport map
>> and not needing alias file entries unless you wanted site-wide or
>> across-all-domain aliases, e.g. noreply at .
>
> Well, I'm testing on debian/postfix-2.1.5, which may be old, but the
> postfix returns 550 if I set up with transport map only. But,
> additional test on my site revealed that using virtual map resulted in
> pipe command and not lmtp. :-( I'll test it more on this weekend.
>
I've committed in trunk and here is the basic configuration for Postfix
virtual host environment. We need no indivual entries for transport
file. You may have to run bin/genaliases if LMTP_ONLY_DOMAINS is
updated though.
Postfix configuration
main.cf
+-------------------------------------------------
|# dom1 is the main hostname.
|# dom2 is not here
|mydestination = dom1.example.com
|# You need aliases for noreply address
|alias_maps = hash:/etc/aliases
| hash:/usr/local/mailman/data/aliases
|# for persons in dom2 domain
|virtual_alias_maps = hash:/etc/postfix/virtual
|# everything else is in transport
|transport_maps = hash:/usr/local/mailman/data/transport
+-------------------------------------------------
/etc/postfix/virtual
+-------------------------------------------------
|# if you want to deliver to a real person in dom2
|user at dom2.example.com dom2user
+-------------------------------------------------
/usr/local/mailman/data/aliases
+-------------------------------------------------
|noreply: /usr/local/mailman/data/owner-bounces.mbox
+-------------------------------------------------
/usr/local/mailman/data/transport
+-------------------------------------------------
|# This file is automatically generated
|noreply at dom1.example.com local:noreply
|... etc.
|# dom2 is for mailman only (except in /etc/postfix/virtual)
|dom2.example.com lmtp:localhost:8025
|# list transports follow.
|list at dom1.example.com lmtp:localhost:8025
|... etc.
+-------------------------------------------------
etc/mailman.cfg (Defaults.py)
+-------------------------------------------------
|USE_LMTP = Yes
|add_runner('LMTPRunner')
|add_domain('dom2.example.com', 'www2.example.com')
|LMTP_ONLY_DOMAINS = ['dom2.example.com']
|# Use this domain only for mailman mailing list.
|# You should write postfix 'virtual' file for other persons
|# in this domain.
+-------------------------------------------------
--
Tokio Kikuchi, tkikuchi at is.kochi-u.ac.jp
http://weather.is.kochi-u.ac.jp/
More information about the Mailman-Developers
mailing list