Re: [Dovecot] Connecting to dovecot/imap without a password

2007-07-11 Thread Don Russell

Timo Sirainen wrote:

On 11.7.2007, at 0.07, Don Russell wrote:

I have written a script that connects (localhost) to the dovecot/imap 
server and performs various maintenance on my mail, by folder. 
deleting old stuff, keeping the n most recent, that sort of crap, er 
good stuff. :-)


My script is written in php (I use the various imap_* functions), and 
it connects to the imap server running on the same machine... is 
there a way to connect to the server without having to specify my 
user name and password?


I was thinking there may be some form of implied logon if a request 
from user don requests to log on to user don, then there's no 
need for a password check, when the connection is via localhost.


How about using master users? 
http://wiki.dovecot.org/Authentication/MasterUsers


The master user password can be empty of course also.. You can limit 
the allowed IPs with 
http://wiki.dovecot.org/PasswordDatabase/ExtraFields/AllowNets


Thank you. I think this will work well for me.


[Dovecot] Connecting to dovecot/imap without a password

2007-07-10 Thread Don Russell
I have written a script that connects (localhost) to the dovecot/imap 
server and performs various maintenance on my mail, by folder. 
deleting old stuff, keeping the n most recent, that sort of crap, er 
good stuff. :-)


My script is written in php (I use the various imap_* functions), and it 
connects to the imap server running on the same machine... is there a 
way to connect to the server without having to specify my user name and 
password?


I was thinking there may be some form of implied logon if a request 
from user don requests to log on to user don, then there's no need 
for a password check, when the connection is via localhost.


That way I don't have to deal with userid/password related issues. :-)

Thanks


Re: [Dovecot] Connecting to dovecot/imap without a password

2007-07-10 Thread Timo Sirainen

On 11.7.2007, at 0.07, Don Russell wrote:

I have written a script that connects (localhost) to the dovecot/ 
imap server and performs various maintenance on my mail, by  
folder. deleting old stuff, keeping the n most recent, that  
sort of crap, er good stuff. :-)


My script is written in php (I use the various imap_* functions),  
and it connects to the imap server running on the same machine...  
is there a way to connect to the server without having to specify  
my user name and password?


I was thinking there may be some form of implied logon if a  
request from user don requests to log on to user don, then  
there's no need for a password check, when the connection is via  
localhost.


How about using master users? http://wiki.dovecot.org/Authentication/ 
MasterUsers


The master user password can be empty of course also.. You can limit  
the allowed IPs with http://wiki.dovecot.org/PasswordDatabase/ 
ExtraFields/AllowNets




PGP.sig
Description: This is a digitally signed message part