intergrate cyrus and postfix
Kern, Tom
tkern at CHARMER.COM
Fri Feb 4 15:44:04 EST 2005
Kern, Tom wrote:
> Carl P. Corliss wrote:
>> You already know this to be untrue - as posted by Magnus Bäck on
>> the postfix-users mailing list (to your exact same question there),
>> you only need deliver if that's the method in which you want to have
>> messages passed off to cyrus.
>>
>> The people over on postfix-users mailing list have also already
>> explained that you should be using LMTP (not cyrus' deliver). Perhaps
>> it might be a good idea to read the README.postfix.gz that Hans Van
>> Kranenburg was kind enough to send you. Might also be a good idea to
>> follow his suggestions in his most recent posting on the
>> postfix-users mailing list - or those of Magnus Bäck and Matt, etc.
>>
>> Also, I still haven't seen you post a link to any logs with
>> errors that you recv (both here or on the postfix-users mailing
>> list).......
>
> When i run a search of an email sent to an imap mailbox
> address(tkern at sales.charmer.com), this is what I get-
>
>
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: <
> mta1.charmer.com[127.0.0.1]: rcpt to: tkern at sales.charmer.com
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: extract_addr: input:
> tkern at sales.charmer.com
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: smtpd_check_addr:
> addr=tkern at sales.charmer.com
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: send attr address =
> tkern at sales.charmer.com
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: input attribute value:
> tkern at sales.charmer.com
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: rewrite_clnt:
> canonicalize: tkern at sales.charmer.com -> tkern at sales.charmer.com
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: send attr address =
> tkern at sales.charmer.com
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: input attribute value:
> tkern at sales.charmer.com
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: resolve_clnt:
> `tkern at sales.charmer.com' -> transp=`local' host=`sales.charmer.com'
> rcpt=`tkern at sales.charmer.com' flags= class=local
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: ctable_locate: install
> entry key tkern at sales.charmer.com
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: extract_addr: result:
> tkern at sales.charmer.com
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: reject_unauth_destination:
> tkern at sales.charmer.com
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: permit_auth_destination:
> tkern at sales.charmer.com
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: ctable_locate: leave
> existing entry key tkern at sales.charmer.com
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: ctable_locate: leave
> existing entry key tkern at sales.charmer.com
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: maps_find:
> recipient_canonical_maps: tkern at sales.charmer.com: not found
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: mail_addr_find:
> tkern at sales.charmer.com -> (not found)
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: maps_find: canonical_maps:
> tkern at sales.charmer.com: not found
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: mail_addr_find:
> tkern at sales.charmer.com -> (not found)
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: maps_find:
> virtual_alias_maps: tkern at sales.charmer.com: not found
> Feb 4 10:55:21 mta1 postfix/smtpd[24927]: mail_addr_find:
> tkern at sales.charmer.com -> (not found)
> Feb 4 15:55:31 mta1 amavis[25877]: (25877-10) ESMTP::10024
> /var/amavis/amavis-20050204T155213-25877: <tkern at charmer.com> ->
> <tkern at sales.charmer.com> Received: SIZE=367 from mta1.charmer.com
> ([127.0.0.1]) by localhost (mta1.charmer.com [127.0.0.1])
> (amavisd-new, port 10024) with ESMTP id 25877-10 for
> <tkern at sales.charmer.com>; Fri, 4 Feb 2005 15:55:31 +0000 (UTC) Feb
> 4 15:55:31 mta1 amavis[25877]: (25877-10) Checking:
> <tkern at charmer.com> -> <tkern at sales.charmer.com>
> Feb 4 15:55:35 mta1 amavis[25877]: (25877-10) FWD via SMTP:
> [127.0.0.1]:10025 <tkern at charmer.com> -> <tkern at sales.charmer.com>
> Feb 4 15:55:35 mta1 amavis[25877]: (25877-10) Passed,
> <tkern at charmer.com> -> <tkern at sales.charmer.com>, Message-ID:
> <20050204155509.26CC928497A at mta1.charmer.com>, Hits: 1.676
> Feb 4 10:55:35 mta1 postfix/smtp[24612]: 26CC928497A:
> to=<tkern at sales.charmer.com>, relay=localhost[127.0.0.1], delay=26,
> status=sent (250 2.6.0 Ok, id=25877-10, from MTA: 250 Ok: queued as
> 68A1028498F)
> Feb 4 11:07:40 mta1 postfix/smtpd[24927]: ctable_locate: purge entry
> key tkern at sales.charmer.com
>
>
> what else should i be looking for?
>
> thanks
I also keep getting this in my log-
Feb 1 14:24:45 mta1 master[19838]: about to exec /usr/lib/cyrus-imapd/lmtpd
Feb 2 16:45:39 mta1 master[31396]: about to exec /usr/lib/cyrus-imapd/lmtpd
According to cyrus.conf, lmtp is in /var/lib/imap/socket/ and my "mailbox_transport" entry in main.cf reflects this.
So, where is postfix getting the above path from?
i checked master.cf and my trnasport file and there is no entry like that.
this is the contents of my cyrus.conf file-
# standard standalone server implementation
START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"
# this is only necessary if using idled for IMAP IDLE
idled cmd="idled"
}
# UNIX sockets start with a slash and are put into /var/lib/imap/sockets
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=5
imaps cmd="imapd -s" listen="imaps" prefork=1
pop3 cmd="pop3d" listen="pop3" prefork=3
pop3s cmd="pop3d -s" listen="pop3s" prefork=1
sieve cmd="timsieved" listen="sieve" prefork=0
# these are only necessary if receiving/exporting usenet via NNTP
# nntp cmd="nntpd" listen="nntp" prefork=3
# nntps cmd="nntpd -s" listen="nntps" prefork=1
# at least one LMTP is required for delivery
# lmtp cmd="lmtpd" listen="lmtp" prefork=0
lmtpunix cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=1
# this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/lib/imap/socket/notify" proto="udp" prefork=1
}
EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30
# this is only necessary if using duplicate delivery suppression,
# Sieve or NNTP
delprune cmd="cyr_expire -E 3" at=0400
# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" at=0400
>
>
>
>
>
>
>
>
>>
>>
>> Kern, Tom wrote:
>>> I already have that in main.cf
>>> its my understanding that i need the path to the deliver program in
>>> master.cf for cyrus to work with postfix.
>>>
>>> thanks
>>>
>>> -----Original Message-----
>>> From: Carl P. Corliss [mailto:rabbitt at xaraya.com]
>>> Sent: Thursday, February 03, 2005 2:06 PM
>>> To: Kern, Tom
>>> Subject: Re: intergrate cyrus and postfix
>>>
>>>
>>> try using lmtp as it incurs less overhead than using deliver. In
>>> your main.cf use something like:
>>>
>>> mailbox_transport = lmtp:unix:/var/imap/socket/lmtp
>>> or
>>> virtual_transport = lmtp:unix:/var/imap/socket/lmtp
>>>
>>> you'll need to read up on the postfix site to determine exactly
>>> which one should should use (a good start would be:
>>> http://www.postfix.org/VIRTUAL_README.html).
>>>
>>> Cheers,
>>>
>>> --
>>> Carl
>>>
>>
>> ---
>> Cyrus Home Page: http://asg.web.cmu.edu/cyrus
>> Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
>> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
More information about the Info-cyrus
mailing list