OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: postfix, cyrus, mailman, virtual domains

From: Dwight Tovey (dwightdtovey.net)
Date: Sun Apr 02 2006 - 18:27:11 CDT


mouss said:
> Matt Fretwell wrote:
>> On Sun, 02 Apr 2006 11:25:45 -0600
>> Dwight Tovey wrote:
>>
>>> Note that Postfix is trying to use lmtp to hand the message off to
>>> cyrus, which doesn't have a mailbox for 'mailman' (the test list I'm
>>> trying to send to). I need the message to not go to lmtp/cyrus at
>>> all, but just use the alias map to pass it through the pipe to the
>>> 'mailman post' command.
>>
>>
>> Use a transport entry with something along the lines of:
>>
>> mailmanexample.com local:
>>
>
> or virtual aliases:
> #replace example.com by dtovey.net
> mailmanexample.com mailmanlocalhost.example.com
> ...
>
> since he has localhost.example.com in mydestination.
>

Bingo. I knew it had to be something simple that I was missing.

I made one change to main.cf:
Old:
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
New:
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf,
  hash:/usr/local/mailman/data/virtual-mailman

I then created /usr/local/mailman/data/virtual-mailman with the following:
mailman mailmanlocalhost.dtovey.net
mailman-admin mailman-adminlocalhost.dtovey.net
mailman-bounces mailman-bounceslocalhost.dtovey.net
mailman-confirm mailman-confirmlocalhost.dtovey.net
mailman-join mailman-joinlocalhost.dtovey.net
mailman-leave mailman-leavelocalhost.dtovey.net
mailman-owner mailman-ownerlocalhost.dtovey.net
mailman-request mailman-requeslocalhost.dtovey.net
mailman-subscribe mailman-subscribelocalhost.dtovey.net
mailman-unsubscribe mailman-unsubscribelocalhost.dtovey.net

I ran postmap on that, reloaded postfix, and everything works again. I'll
have to update virtual-mailman whenever I add a new list, but that
shouldn't be a problem.

Thanks for pointing me in the right direction.
    /dwight

--
Dwight N. Tovey
email: dwightdtovey.net
web: http://www.dtovey.net/~dwight
-----------
Cthulu For President-Why Choose The Lesser Evil?