I'm having a hard time getting IMAP before SMTP to work. It seems like the remote ip address is not visible to get_remote_ip() in vpopmail. I'm using qmail, vpopmail with a mysql backend and Courier-IMAP (v3.0.8).
Problem: The remote ip is not inserted into the relay table. If I check the lastauth table i only get "imap" in the remote_ip field. Any ideas? Thanks, Nicklas B