On Mon, Jan 30, 2006 at 10:10:39AM +0100, Gerhard Hofmann wrote:
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?
Both look good. Both should match the mail.log line you've quoted. (You did quote all of the line, right? The ^ matches the beginning of the line). Check elsewhere (like file names, the modification times of .db files may help you diagnose chroot problems), insert debugging in the perl script . . .
HTH