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 - 12:25:45 CDT


On Sun, 2006-04-02 at 18:23 +0200, mouss wrote:
> Dwight Tovey wrote:
> > Hello all -
> >
> > I think I've managed to get myself twisted up by reading different
> > howtos, and I need some help in getting straightened out again.
> >
> > I currently have an (underpowered) system that runs qmail, courier imap,
> > openldap (for virtual user definitions) and mailman. This system hosts
> > 4 domains with each domain having user mailboxes in addition to mailman
> > list servers.
> >
> > I am now attempting to move off of that system to a new install using
> > Postfix, Cyrus imap (with web-cyradm), MySQL (to hold the virtual user
> > tables) and mailman.
> >
> > Going through the VIRTUAL_README I've managed to get Postfix to accept
> > mail for all of my domains and deliver it to the Cyrus mailboxes for the
> > virtual users. The problem that I'm having now is in getting Postfix to
> > deliver listserv email through the mailman software. It seems that no
> > matter what I do, Postfix wants to hand the message off to lmtp to
> > deliver to Cyrus, which doesn't know about the listservs.
> >
> > I'm sure that I've just missed something simple, but I'm not sure what.
> > Should I maybe not be using the lmtp transport directly but instead use
> > something else to split delivery between Cyrus mailboxes and mailman?
> >
> > Thanks for any help.
> >
> > /dwight
> >
> > ==============================8<-----------------------------
> > # postconf -n
>
> any logs?

Whoops. Forgot that. At least I managed to remember the postconf
output.

Here is an extraction from mail.log:

Apr 2 11:14:37 medea postfix/smtpd[17550]: 4C7B4E8280:
client=cerberus.dtovey.net[192.168.68.5]
Apr 2 11:14:37 medea postfix/pickup[17541]: 50502E8281: uid=110
from=<logcheck>
Apr 2 11:14:37 medea postfix/cleanup[17560]: 50502E8281: message-
id=<20060402160223.50502E8281mail.dtovey.net>
Apr 2 11:14:37 medea postfix/qmgr[15920]: 50502E8281:
from=<logcheckdtovey.net>, size=2627, nrcpt=1 (queue active)
Apr 2 11:14:37 medea postfix/cleanup[17561]: 4C7B4E8280: message-
id=<20060402171418.4C7B4E8280mail.dtovey.net>
Apr 2 11:14:37 medea postfix/smtpd[17550]: disconnect from
cerberus.dtovey.net[192.168.68.5]
Apr 2 11:14:37 medea postfix/pickup[17541]: 62A65E827E: uid=110
from=<logcheck>
Apr 2 11:14:37 medea postfix/cleanup[17556]: 62A65E827E: message-
id=<20060402170224.62A65E827Email.dtovey.net>
Apr 2 11:14:37 medea postfix/qmgr[15920]: 4C7B4E8280:
from=<dwightdtovey.net>, size=398, nrcpt=1 (queue active)
Apr 2 11:14:37 medea postfix/qmgr[15920]: 62A65E827E:
from=<logcheckdtovey.net>, size=22769, nrcpt=1 (queue active)
Apr 2 11:14:38 medea postfix/smtpd[17572]: connect from
localhost.localdomain[127.0.0.1]
Apr 2 11:14:38 medea postfix/smtpd[17572]: 38CAEE827F:
client=localhost.localdomain[127.0.0.1]
Apr 2 11:14:38 medea postfix/cleanup[17557]: 38CAEE827F: message-
id=<20060402171418.4C7B4E8280mail.dtovey.net>
Apr 2 11:14:38 medea postfix/smtpd[17572]: disconnect from
localhost.localdomain[127.0.0.1]
Apr 2 11:14:38 medea postfix/qmgr[15920]: 38CAEE827F:
from=<dwightdtovey.net>, size=848, nrcpt=1 (queue active)
Apr 2 11:14:38 medea amavis[21394]: (21394-07) Passed,
<dwightdtovey.net> -> <mailmandtovey.net>, Message-ID:
<20060402171418.4C7B4E8280mail.dtovey.net>, Hits: -2.276
Apr 2 11:14:38 medea postfix/smtp[17569]: 4C7B4E8280:
to=<mailmandtovey.net>, relay=127.0.0.1[127.0.0.1], delay=20,
status=sent (250 2.6.0 Ok, id=21394-07, from MTA: 250 Ok: queued as
38CAEE827F)
Apr 2 11:14:38 medea postfix/qmgr[15920]: 4C7B4E8280: removed
Apr 2 11:14:38 medea cyrus/master[17577]: about to
exec /usr/lib/cyrus/bin/lmtpd
Apr 2 11:14:38 medea cyrus/lmtpunix[17577]: executed
Apr 2 11:14:39 medea postfix/smtpd[17572]: connect from
localhost.localdomain[127.0.0.1]
Apr 2 11:14:39 medea postfix/smtpd[17572]: D12D0E8280:
client=localhost.localdomain[127.0.0.1]
Apr 2 11:14:39 medea postfix/cleanup[17556]: D12D0E8280: message-
id=<20060402160223.50502E8281mail.dtovey.net>
Apr 2 11:14:39 medea postfix/smtpd[17572]: disconnect from
localhost.localdomain[127.0.0.1]
Apr 2 11:14:40 medea amavis[22108]: (22108-06) Passed,
<logcheckdtovey.net> -> <dwight.dtovey.netdtovey.net>, Message-ID:
<20060402160223.50502E8281mail.dtovey.net>, Hits: -2.276
Apr 2 11:14:40 medea postfix/smtp[17566]: 50502E8281:
to=<dwight.dtovey.netdtovey.net>, orig_to=<root>, relay=127.0.0.1
[127.0.0.1], delay=4337, status=sent (250 2.6.0 Ok, id=22108-06, from
MTA: 250 Ok: queued as D12D0E8280)
Apr 2 11:14:40 medea postfix/qmgr[15920]: D12D0E8280:
from=<logcheckdtovey.net>, size=3097, nrcpt=1 (queue active)
Apr 2 11:14:40 medea postfix/qmgr[15920]: 50502E8281: removed
Apr 2 11:14:40 medea cyrus/master[17581]: about to
exec /usr/lib/cyrus/bin/lmtpd
Apr 2 11:14:40 medea cyrus/lmtpd[17577]: accepted connection
Apr 2 11:14:40 medea cyrus/lmtpd[17577]: lmtp connection preauth'd as
postman
Apr 2 11:14:40 medea postfix/lmtp[17576]: 38CAEE827F:
to=<mailmandtovey.net>, relay=/var/run/cyrus/socket/lmtp
[/var/run/cyrus/socket/lmtp], delay=2, status=bounced
(host /var/run/cyrus/socket/lmtp[/var/run/cyrus/socket/lmtp] said: 550-
Mailbox unknown. Either there is no mailbox associated with this 550-
name or you do not have authorization to see it. 550 5.1.1 User unknown
(in reply to RCPT TO command))
Apr 2 11:14:40 medea postfix/cleanup[17559]: 27DD3E8282: message-
id=<20060402171440.27DD3E8282mail.dtovey.net>
Apr 2 11:14:40 medea postfix/qmgr[15920]: 27DD3E8282: from=<>,
size=2941, nrcpt=1 (queue active)
Apr 2 11:14:40 medea postfix/qmgr[15920]: 38CAEE827F: removed
Apr 2 11:14:40 medea cyrus/lmtpunix[17581]: executed

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.

Thanks
        /dwight
--
Dwight N. Tovey
Email: dwightdtovey.net
http://www.dtovey.net/~dwight/
---
Why do they sterilize the needle for lethal injections?