[Dovecot] Re: Question about $pat in pop-before-smtp.conf

Gerhard Hofmann gerhard.hofmann at planat.de
Mon Jan 30 11:10:39 EET 2006


Gerhard Hofmann wrote:
> I want to use pop-before-smtp to process the log file and write a .db 
> file where sendmail can look up ip addresses that are allowd to relay.
> 
> mail.log entries look like this:
> dovecot: 2006-01-26 17:22:28 Info: pop3-login: Login: user=<planat25>, 
> method=PLAIN, rip=213.83.32.125, lip=192.168.1.98
> 
> So the question is: how should $pat variable look in 
> pop-before-smtp.conf? 

In the meantime I have tried out this
$pat = '^dovecot: (....-..-.. ..:..:..) Info: ' .
     '(?:imap|pop3)-login: Login: .* rip=[:f]*(\d+\.\d+\.\d+\.\d+),';

and this
$pat = '^dovecot: (....-..-.. ..:..:..) Info: ' .
     '(?:imap|pop3)-login: Login: \S+, \S+, rip=(\d+\.\d+\.\d+\.\d+),';

Both do not work. Any ideas?

TIA
Gerhard



More information about the dovecot mailing list