My problems started when I ran yum to update dovecot from .99 to 1.0. My install of poprelay stopped working. Found this on dovecots wiki:
http://wiki.dovecot.org/PopRelay
But it was still wrong, my log looked like this and the example splits the line by ": ". Returning "dovecot" for "$service" not "pop3-login" like it's suppose to.
Jun 7 09:54:53 mail dovecot: pop3-login: Login: user=<user>, method=PLAIN, rip=[IP Address], lip=[IP Address]
To fix this I did this:
($crap, $info, $string)=split(/\: /,$line);
Next problem my remote users IP is "rip=[IP Address]" in the logs. To fix this I did the following:
($ip) = $line=~/\, rip\=(\d+\.\d+\.\d+\.\d+)/;
That's all, and it works now!!