[Dovecot] Pop-before-smtp and MySQL?

Lorens dovecot.fdop at tagged.lorens.org
Fri Dec 2 15:07:42 EET 2005

On Fri, Dec 02, 2005 at 12:20:58PM +0200, Timo Sirainen wrote:
> I don't know why that script had $3 there, Dovecot has never given any 
> parameters to imap/pop3 processes. But the IP address exists in IP 
> environment, so you can just remove the "IP=.." line from the script 
> and it should work. I updated the wiki already.

Never? Then I have some bizarre version compiled with an obscure
patch by someone else... my config is

% protocol pop3 {
%   pop3_uidl_format = %f
%   mail_executable = /usr/lib/dovecot/popbsmtp.log /usr/lib/dovecot/pop3
% }
% protocol imap {
%   mail_executable = /usr/lib/dovecot/popbsmtp.log /usr/lib/dovecot/imap
% }

% # head -3 /usr/lib/dovecot/popbsmtp.log 
% #!/bin/sh
% echo "Login parameters 1=$1, 2=$2, 3=$3, 4=$4, IP=$IP" >> /var/log/dovecot-t

I added on IP just now, never thought it could be there already.

% # tail -1 /var/log/dovecot-t
% Login parameters 1=/usr/lib/dovecot/imap, 2=[xxmyloginxx, 3=xxxmyIPxx], 4=, IP=xxxmyIPxx

So, yes, IP is already in the environment, cool, the IP= line in
my script was more or less useless (I add a pipe grep to avoid
inserting local-net IPs, but that's minor), but on the version
I have (1.0-stable, debian testing package 0.99.20050712-2), $2
and $3 do get there in *some* way . . .

Good to see the problem solved in any case, and since removing
IP= would work on my version too, wiki is OK without further


More information about the dovecot mailing list