Can you please detail the whole solution in black and white for the archives? * On 07/12/05 09:15 +0100, Matteo Garofano wrote:
Thanks very much, It works ! Now I can manage the swich from qpopper to dovecot and offer also the imap service. I hope it helps somebody else. Bye Te0x
----- Original Message ----- From: "Lorens"
To: Sent: Friday, December 02, 2005 2:07 PM Subject: Re: [Dovecot] Pop-before-smtp and MySQL? 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 modifications.
HAND
-Wash
http://www.netmeister.org/news/learn2quote.html
--
+======================================================================+
|\ _,,,---,,_ | Odhiambo Washington