Re: [Dovecot] Courier-dovecot migration script

2008-11-12 Thread Paul Gamble - MWEB
Hi Timo

I aplogise if this is documented somewhere (couldn't find it), but could
you tell me what the Wint field represents in a v3 dovecot-uidlist
file? That is, when Dovecot v1.1.2 converts a v1 dovecot-uidlist file, I
see the following (taking the first few lines):

V1 (generated by the courier-dovecot-migrate.pl script):
1 1208331473 30
2 1208332540.H167727P3133.mesg-dev2.mweb.co.za,S=343
3 1208332756.H543324P3161.mesg-dev2.mweb.co.za,S=340
4 1208332857.H236884P3191.mesg-dev2.mweb.co.za,S=339
5 1224664518.H150402P10074.mesg-dev2.mweb.co.za,S=342
6 1224664556.H128444P10080.mesg-dev2.mweb.co.za,S=339
7 1224666352.H992318P10361.mesg-dev2.mweb.co.za,S=339

V3 conversion:
3 V1208331473 N31
2 W353 :1208332540.H167727P3133.mesg-dev2.mweb.co.za,S=343:2,S
3 W350 :1208332756.H543324P3161.mesg-dev2.mweb.co.za,S=340:2,
4 W349 :1208332857.H236884P3191.mesg-dev2.mweb.co.za,S=339:2,S
5 W352 :1224664518.H150402P10074.mesg-dev2.mweb.co.za,S=342:2,S
6 W349 :1224664556.H128444P10080.mesg-dev2.mweb.co.za,S=339:2,S
7 W349 :1224666352.H992318P10361.mesg-dev2.mweb.co.za,S=339:2,

I notice that the Wint's are not unique (e.g. W349).

Thanking-you...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Timo
Sirainen
Sent: 12 November 2008 02:43 PM
To: Warren Baker
Cc: dovecot@dovecot.org
Subject: Re: [Dovecot] Courier-dovecot migration script

On Wed, 2008-11-12 at 13:12 +0200, Warren Baker wrote:
 HI All,
 
 We have the latest Dovecot 1.1.6 running and I need to migrate some
 POP3 users over from Courier to Dovecot and would need to convert the 
 courierpop3dsizelist to maintain the UIDs.
 I just need to confirm that the script
 (http://www.dovecot.org/tools/courier-dovecot-migrate.pl) only works 
 for Dovecot v1.0 and not for v1.1?
 As the dovecout-uidlist file that is created (by the script) is not in

 the same format as dovecot-uidlist file that is created by the 1.1.6 
 server.

Dovecot v1.1 can read v1.0 uidlists just fine, so the script still
works. But it's possible that the script doesn't convert all POP3 UIDLs
because it wasn't possible with v1.0 (it'll report how many it couldn't
convert). Dovecot v1.1 supports storing any kind of POP3 UIDLs in the
uidlist file, which would make it possible to create a migration script
that preserved all the UIDLs correctly. If you or anyone else wants to
try, the v1.1 format uidlist with POP3 UIDLs would look like:

3 Vuid-validity Nnext-uid
uid Ppop3 uidl :filename

Where the first line is a header. So for example with 3 different kinds
of Courier UIDLs:

3 V1196932607 N125574
1234 P1234 :1225386267.M230815P21206.host
1235 P1196932607-1235 :1225386268.M230815P21206.host
1236 P1225386269.M230815P21206.host :1225386269.M230815P21206.host

New from MWEB: Cellphone and Internet bundles! Bundle your Internet access with 
your cellular contract from R75 per month. 
Call 08600 32000 or click 
here(http://www.mweb.co.za/productsservices/MTALKMobile/tabid/1223/Default.aspx)
 for more info on the great deals available.

MWEB :-)  JUST LIKE THAT

This electronic communication and the attached file(s) are subject to a 
disclaimer which can be accessed on the following link: Disclaimer - or copy 
the 
following URL into your browser - http://www.mweb.co.za/disclaimer. 
If you are unable to view the disclaimer, please contact [EMAIL PROTECTED] for 
a copy.


Re: [Dovecot] Proxy logging destuser

2008-08-25 Thread Paul Gamble - MWEB
Hi Timo

The patch you provided to allow Dovecot-as-proxy's login processes to
log the destuser only does so for successful authentications/logins.
What is the possibility that this information could additionally be
logged for successful lookups, but failed authentication, e.g. valid
user-name/invalid password? 

The patch mentioned is:
http://hg.dovecot.org/dovecot-1.1/raw-rev/5d0406541434

Regards

-Original Message-
From: Timo Sirainen [mailto:[EMAIL PROTECTED] 
Sent: 14 August 2008 10:22 PM
To: Paul Gamble - MWEB
Cc: Dovecot Mailing List
Subject: Re: [Dovecot] Proxy logging destuser
New from MWEB: Cellphone and Internet bundles! Bundle your Internet access with 
your cellular contract from R75 per month. 
Call 08600 32000 or click 
here(http://www.mweb.co.za/productsservices/MTALKMobile/tabid/1223/Default.aspx)
 for more info on the great deals available.

MWEB :-)  JUST LIKE THAT


[Dovecot] Proxy logging destuser

2008-08-14 Thread Paul Gamble - MWEB
Hi All
 
My first post to the list, so hello world!
 
Having searched the list archives and the wiki for an answer to this, I
don't think it is possible. However, let me ask nonetheless...
 
Is it possible for a Dovecot proxy's login process (IMAP and POP3) to
include the destuser, i.e. the uid used to authenticate to the backend
IMAP/POP3 server, in its logging? %u gives me the uid provided by the
client of course, but it would useful for my purposes to catch the
destuser in the same log line. 
 
The only way to get the proxy to log destuser at all, as far as I can
figure out, is to enable auth debug - not something I want to do in a
production environment.
 
Thanking-you,
Paul

New from MWEB: Cellphone and Internet bundles! Bundle your Internet access with 
your cellular contract from R75 per month. 
Call 08600 32000 or click 
here(http://www.mweb.co.za/productsservices/MTALKMobile/tabid/1223/Default.aspx)
 for more info on the great deals available.

MWEB :-)  JUST LIKE THAT


Re: [Dovecot] Proxy logging destuser

2008-08-14 Thread Paul Gamble - MWEB
Hi Timo

Thanks very much, hadn't finished my morning coffee and already a patch
:)

The patch does the trick:

- My dovecot.conf for the proxy:
  ...
  login_log_format_elements = pid=%p user=%u method=%m rsock=%r:%b
lsock=%l:%a proto=%s %c
  login_log_format = MYPROXY %s %$:
  ...
- gives me, via syslog:
Aug 14 10:14:03 withnail dovecot: imap-login: MYPROXY pid=6516,
[EMAIL PROTECTED], method=PLAIN, rsock=127.0.0.1:48157,
lsock=127.0.0.1:1143, proto=IMAP, secured proxy([EMAIL PROTECTED]):
started proxying to 127.0.0.1:143/pgamble*master:
Aug 14 10:26:02 withnail dovecot: pop3-login: MYPROXY pid=6514,
[EMAIL PROTECTED], method=PLAIN, rsock=127.0.0.1:55991,
lsock=127.0.0.1:1110, proto=POP3, secured proxy([EMAIL PROTECTED]):
started proxying to 127.0.0.1:110/pgamble*master:

This is just on a dev box, hence the odd IP's, log format, etc.

I'm using master authentication for the backend auth and so the the
master user and separator character are imbedded in the backend user,
i.e. client-proxy_user, (pgamble*master above) and it would be
convenient to have them available separately, but I can live with it
as-is.

So...great stuff, thanks very much! What is your approach with regards
to incorporating these kinds of patches (in response to ad-hoc user
requests) into your main development tree? It would obviously be nice to
know that this will be incorporated at some point... Would it be
feasible to add a config variable for this (along the lines of %u, %p,
%s, etc, etc)?

Regards,
Paul Gamble


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Timo
Sirainen
Sent: 14 August 2008 09:12 AM
To: Paul Gamble - MWEB
Cc: dovecot@dovecot.org
Subject: Re: [Dovecot] Proxy logging destuser

On Aug 14, 2008, at 2:36 AM, Paul Gamble - MWEB wrote:

 Is it possible for a Dovecot proxy's login process (IMAP and POP3) to 
 include the destuser, i.e. the uid used to authenticate to the 
 backend
 IMAP/POP3 server, in its logging? %u gives me the uid provided by 
 the client of course, but it would useful for my purposes to catch the

 destuser in the same log line.

Could you try if this patch works:
http://hg.dovecot.org/dovecot-1.1/raw-rev/5d0406541434

New from MWEB: Cellphone and Internet bundles! Bundle your Internet access with 
your cellular contract from R75 per month. 
Call 08600 32000 or click 
here(http://www.mweb.co.za/productsservices/MTALKMobile/tabid/1223/Default.aspx)
 for more info on the great deals available.

MWEB :-)  JUST LIKE THAT