[Dovecot] pop before smtp
I'm using the latest version of dovecot on my FreeBSD 4.x box with OpenPKG to keep other services up to date. Now...I'm able to get pbsmtp to allow relaying through postfix on this server using UW IMAP, but I would like to get dovecot working with relaying...but pbsmtp is not adding the ip when I uncomment the dovecot section after I authenticate. The log is below:
[root@cerebus:/opt/sbin] ./pop-before-smtp --version version: 1.36
Mar 4 05:14:09 cerebus last message repeated 5 times Mar 4 05:19:46 cerebus dovecot: Killed with signal 15 Mar 4 05:20:00 cerebus dovecot: Dovecot v1.0-test62 starting up Mar 4 05:20:34 cerebus dovecot: imap-login: Login: user [ip.ad.dr.ess] Mar 4 05:30:21 cerebus dovecot: imap-login: Login: user [ip.ad.dr.ess]
I had uncommented the stock pattern in the latest version to no avail:
# For Dovecot POP3/IMAP #$pat = '^(... .. ..:..:..) \S+ (?:dovecot: )? (?:imap|pop3)-login: ' . # 'Login: \S+ \[(\d+\.\d+\.\d+\.\d+)\]';
Thanks for any help anyone might be able to provide.
Frank
Problem solved:
http://sourceforge.net/mailarchive/forum.php?thread_id=6733354&forum_id=8461
From: Wayne Davison <wayned@us...> Re: pop before smtp 2005-03-04 09:24
On Fri, Mar 04, 2005 at 06:07:01AM -0600, F. Even wrote:
I had uncommented the stock pattern in the latest version to no avail:
# For Dovecot POP3/IMAP #$pat = "^(... .. ..:..:..) \S+ (?:dovecot: )? (?:imap|pop3)-login: " . # "Login: \S+ \[(\d+\.\d+\.\d+\.\d+)\]";
That pattern had a typo in 1.36 (it"s fixed in CVS). There"s an extra space after the optional "dovecot: " section that needs to be removed:
$pat = "^(... .. ..:..:..) \S+ (?:dovecot: )?(?:imap|pop3)-login: " . "Login: \S+ \[(\d+\.\d+\.\d+\.\d+)\]";
..wayne..
F. Even wrote:
I'm using the latest version of dovecot on my FreeBSD 4.x box with OpenPKG to keep other services up to date. Now...I'm able to get pbsmtp to allow relaying through postfix on this server using UW IMAP, but I would like to get dovecot working with relaying...but pbsmtp is not adding the ip when I uncomment the dovecot section after I authenticate. The log is below:
[root@cerebus:/opt/sbin] ./pop-before-smtp --version version: 1.36
Mar 4 05:14:09 cerebus last message repeated 5 times Mar 4 05:19:46 cerebus dovecot: Killed with signal 15 Mar 4 05:20:00 cerebus dovecot: Dovecot v1.0-test62 starting up Mar 4 05:20:34 cerebus dovecot: imap-login: Login: user [ip.ad.dr.ess] Mar 4 05:30:21 cerebus dovecot: imap-login: Login: user [ip.ad.dr.ess]
I had uncommented the stock pattern in the latest version to no avail:
# For Dovecot POP3/IMAP #$pat = '^(... .. ..:..:..) \S+ (?:dovecot: )? (?:imap|pop3)-login: ' . # 'Login: \S+ \[(\d+\.\d+\.\d+\.\d+)\]';
Thanks for any help anyone might be able to provide.
Frank
On Fr, 2005-03-04 at 05:51 -0600, F. Even wrote:
I'm using the latest version of dovecot on my FreeBSD 4.x box with OpenPKG to keep other services up to date. Now...I'm able to get pbsmtp to allow relaying through postfix on this server using UW IMAP, but I would like to get dovecot working with relaying...but pbsmtp is not adding the ip when I uncomment the dovecot section after I authenticate.
I don't know how postfix checks the pbsmtp thing, but IIRC dovecot has the ability to write into a database when people log in, so I think pop-before-smtp could be done without log parsing. You might want to review the mailing list archives (at gmane.org) and possibly you can get rid of pbsmtp.
johannes
Johannes Berg wrote:
I don't know how postfix checks the pbsmtp thing, but IIRC dovecot has the ability to write into a database when people log in, so I think pop-before-smtp could be done without log parsing. You might want to review the mailing list archives (at gmane.org) and possibly you can get rid of pbsmtp.
johannes
I use a different method for POP-before-SMTP which involves a hacked copy of Perdition sitting ahead of Dovecot and a program called authd (http://www.authd.org) which is far more reliable than log-parsing, and probably as reliable as writing a database.
Personally, POP-before-SMTP is too kludgy for my personal tastes, but I use it anyway for my users who can't do POP-before-SMTP. Not to mention, some broken mailers like Outlook prior to 2002 or so do not allow you to do POP before SMTP or even POP only at all. *stifles snide remarks about Microsoft software's overall brokenness*
IMO, it's SMTP-AUTH and RFC 2476 all the way.
--Ian.
On Sa, 2005-03-05 at 09:53 -0800, Ian R. Justman wrote:
I use a different method for POP-before-SMTP which involves a hacked copy of Perdition sitting ahead of Dovecot and a program called authd (http://www.authd.org) which is far more reliable than log-parsing, and probably as reliable as writing a database.
Yeah I guess. Anyway, this is what I was thinking of: http://thread.gmane.org/gmane.mail.imap.dovecot/5131 (see Timo's reply there)
johannes
Johannes Berg wrote:
On Sa, 2005-03-05 at 09:53 -0800, Ian R. Justman wrote:
I use a different method for POP-before-SMTP which involves a hacked copy of Perdition sitting ahead of Dovecot and a program called authd (http://www.authd.org) which is far more reliable than log-parsing, and probably as reliable as writing a database.
Yeah I guess. Anyway, this is what I was thinking of: http://thread.gmane.org/gmane.mail.imap.dovecot/5131 (see Timo's reply there)
Ah yes...that is very cool. Thanks. It is more than I want currently though...not running a db server on this box and am not interested into delving into one for this box. PBSMTP is working as needed now....so I'm not all that concerned. Thanks for your assistance though and the link. Appreciated.
Frank
Johannes Berg wrote:
On Fr, 2005-03-04 at 05:51 -0600, F. Even wrote:
I'm using the latest version of dovecot on my FreeBSD 4.x box with OpenPKG to keep other services up to date. Now...I'm able to get pbsmtp to allow relaying through postfix on this server using UW IMAP, but I would like to get dovecot working with relaying...but pbsmtp is not adding the ip when I uncomment the dovecot section after I authenticate.
I don't know how postfix checks the pbsmtp thing, but IIRC dovecot has the ability to write into a database when people log in, so I think pop-before-smtp could be done without log parsing. You might want to review the mailing list archives (at gmane.org) and possibly you can get rid of pbsmtp.
Thanks, but if it does, I haven't found the info. This is the closest I've come to finding what you suggest, and it requires a patch to postfix, which I don't particularly care to do. Right now I've got it running under OpenPKG, and don't really want to make the upgrade process more complicated than my current "openpkg build -Ua > update.sh" then "sh update.sh".
Frank
Johannes Berg wrote:
On Fr, 2005-03-04 at 05:51 -0600, F. Even wrote:
I'm using the latest version of dovecot on my FreeBSD 4.x box with OpenPKG to keep other services up to date. Now...I'm able to get pbsmtp to allow relaying through postfix on this server using UW IMAP, but I would like to get dovecot working with relaying...but pbsmtp is not adding the ip when I uncomment the dovecot section after I authenticate.
I don't know how postfix checks the pbsmtp thing, but IIRC dovecot has the ability to write into a database when people log in, so I think pop-before-smtp could be done without log parsing. You might want to review the mailing list archives (at gmane.org) and possibly you can get rid of pbsmtp.
I guess a link would've been helpful in my reply:
http://article.gmane.org/gmane.mail.imap.dovecot/4750/match=postfix+auth
participants (3)
-
F. Even
-
Ian R. Justman
-
Johannes Berg