[TriLUG] Problem integrating Postfix + Cyrus + Mailman

Tanner Lovelace clubjuggler at gmail.com
Sun Feb 4 21:44:28 EST 2007


On 2/4/07, Phillip Rhodes <mindcrime at cpphacker.co.uk> wrote:

> # If using the cyrus-imapd IMAP server deliver local mail to the IMAP
> # server using LMTP (Local Mail Transport Protocol), this is prefered
> # over the older cyrus deliver program by setting the
> # mailbox_transport as below:
> #
> mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
>
>
> virtual_transport       = lmtp:unix:/var/lib/imap/socket/lmtp
> #virtual_transport      = cyrus
> virtual_mailbox_domains = zenninja.com, lists.trianglestartupgroup.com
> virtual_mailbox_base = /var/mail/vhosts
> virtual_mailbox_maps = hash:/etc/postfix/vmailbox
> virtual_minimum_uid = 89
> virtual_uid_maps = static:89
> virtual_gid_maps = static:89
> virtual_alias_maps = hash:/etc/postfix/virtual,
> hash:/etc/mailman/virtual-mailman

I think this section is your problem.   I think your main problem
is the "virtual_mailbox_transport" ends up taking precedence
your other part of the setup. My server has this exact same
setup and what I have for virtual addresses is just this:

virtual_maps = hash:/etc/postfix/virtual, hash:/etc/postfix/lists,
regexp:/etc/postfix/delimiter

Then, in /etc/postfix/lists, here's the mailman host:

lists.wayfarer.org      VIRTUALDOMAIN

mailman at lists.wayfarer.org                     mailman at bebop.wayfarer.org
mailman-admin at lists.wayfarer.org               mailman-admin at bebop.wayfarer.org
mailman-bounces at lists.wayfarer.org
mailman-bounces at bebop.wayfarer.org
mailman-confirm at lists.wayfarer.org
mailman-confirm at bebop.wayfarer.org
mailman-join at lists.wayfarer.org                mailman-join at bebop.wayfarer.org
mailman-leave at lists.wayfarer.org               mailman-leave at bebop.wayfarer.org
mailman-owner at lists.wayfarer.org               mailman-owner at bebop.wayfarer.org
mailman-request at lists.wayfarer.org
mailman-request at bebop.wayfarer.org
mailman-subscribe at lists.wayfarer.org
mailman-subscribe at bebop.wayfarer.org
mailman-unsubscribe at lists.wayfarer.org
mailman-unsubscribe at bebop.wayfarer.org

Then, in /etc/mailman/aliases (which is probably just /etc/aliases for you, or
you can designate something else) I have this:

## mailman mailing list
mailman:              "|/var/lib/mailman/mail/mailman post mailman"
mailman-admin:        "|/var/lib/mailman/mail/mailman admin mailman"
mailman-bounces:      "|/var/lib/mailman/mail/mailman bounces mailman"
mailman-confirm:      "|/var/lib/mailman/mail/mailman confirm mailman"
mailman-join:         "|/var/lib/mailman/mail/mailman join mailman"
mailman-leave:        "|/var/lib/mailman/mail/mailman leave mailman"
mailman-owner:        "|/var/lib/mailman/mail/mailman owner mailman"
mailman-request:      "|/var/lib/mailman/mail/mailman request mailman"
mailman-subscribe:    "|/var/lib/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe:  "|/var/lib/mailman/mail/mailman unsubscribe mailman"

To get the mail to cyrus, I have this in main.cf:

mailbox_transport = cyrus

Then, in master.cf I have these lines:

cyrus     unix  -       n       n       -       -       pipe
  flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension} ${user}

Your lines using lmtp, though, should be just fine for that.

Good luck!

Cheers,
Tanner


-- 
Tanner Lovelace
clubjuggler at gmail dot com
http://wtl.wayfarer.org/
(fieldless) In fess two roundels in pale, a billet fesswise and an
increscent, all sable.



More information about the TriLUG mailing list