I need to disable non IMAP webmail access, then allow access to IMAP only from 
localhost/webmail, and in the future enable full IMAP access only for some 
users.
        
In a previous message I was advised to switch from courier-imap to dovecot and 
so I did, but the problem persists.
        
My installation is based on shupp.org toaster but with some modifications:

vpopmail version is: 5.4.26
MySQL backend
dovect version is: 1.0.13
webmail is horde and connects to the IMAP server through 127.0.0.1 or 
localhost

Example:

mail:~# /home/vpopmail/bin/vmoduser -i [EMAIL PROTECTED] 

NOTE: (-i : disable non-webmail IMAP access )

mail:~# /home/vpopmail/bin/vuserinfo [EMAIL PROTECTED]
name:   cbs
passwd: XXXXXXXXXXXXX
clear passwd: XXXXXXXXX
uid:    0
gid:    8
flags:  2152
gecos: cbs
limits:
        imap access closed
        smtp access is closed (*)
        user not allowed to relay mail (*)
        no dialup flag has been set (*)
        * = set by domain-wide limits
dir:       /home/vpopmail/domains/mail.it/cbs
quota:     52428800S
usage:     26%
last auth: Thu Apr 10 10:31:02 2008
last auth ip: imap

>From my PC IMAP is disable now:

mail:~# tail -f /var/log/dovecot/dovecot.log | grep cbs

dovecot: Apr 10 11:06:36 Info: auth(default): 
vpopmail([EMAIL PROTECTED],80.149.171.97): lookup user=cbs domain=mail.it
dovecot: Apr 10 11:06:36 Info: auth(default): 
vpopmail([EMAIL PROTECTED],80.149.171.97): IMAP disabled
dovecot: Apr 10 11:06:37 Info: auth(default): client out: FAIL  752     
[EMAIL PROTECTED]
dovecot: Apr 10 11:06:37 Info: imap-login: Disconnected: user=<[EMAIL 
PROTECTED]>, 
method=PLAIN, rip=80.149.171.97, lip=152.19.154.67

But also from Webmail (localhost) is disable

dovecot: Apr 10 11:07:57 Info: auth(default): vpopmail([EMAIL 
PROTECTED],127.0.0.1): 
lookup user=cbs domain=mail.it
dovecot: Apr 10 11:07:57 Info: auth(default): vpopmail([EMAIL 
PROTECTED],127.0.0.1): 
IMAP disabled
dovecot: Apr 10 11:07:59 Info: auth(default): client out: FAIL  1990    
[EMAIL PROTECTED]

If i set:

mail:~# /home/vpopmail/bin/vmoduser -w [EMAIL PROTECTED]

limits:
        webmail access closed
        smtp access is closed (*)
        user not allowed to relay mail (*)
        no dialup flag has been set (*)
        * = set by domain-wide limits

I do not get any effect, IMAP always work from any IP.

My vchkpw.c is set properly, I think:

char *webmailips[] = { "127.0.0.1" };

Some questions:

Where writes the settings on limits vmoduser (MySQL, Maildir)?

How can investigate to find out where is the problem?

Thanks
-- 
Alessio Cecchi is:
@ ILS -> http://www.linux.it/~alessice/
Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz/
@ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it
@ LOLUG -> neo-Socio http://www.lolug.net

!DSPAM:47fde164120509006914130!

Reply via email to