[Dovecot] Subfolders

2007-08-05 Thread Azher Amin

Hi,

Does dovecot supports sub folders ?? I tried creating a subfolder for a 
folder under the main tree  Thunderbird allows you creating but 
doesn't show up ...


Plz suggest how it can be enabled.

Regards
-Azher

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: [Dovecot] Subfolders

2007-08-05 Thread Azher Amin

Hi,

Thnx for the replies. I am using 1.0.2 and mbox, but from which option 
you choose that this folder will have subfolders or will it contain only 
files ?? I used the New SubFolder Option.


-Azher

Don Russell wrote:

Scott Silva wrote:

Azher Amin spake the following on 8/5/2007 3:59 AM:
 

Hi,

Does dovecot supports sub folders ?? I tried creating a subfolder for a
folder under the main tree  Thunderbird allows you creating but
doesn't show up ...

Plz suggest how it can be enabled.

Regards
-Azher


Dovecot with thunderbird only seems to support sub folders if you are 
using

maildir type mailstores. I don't think it will work if using mbox.
  


Not true. I use Thunderbird as my mail client, and create 
subfolders... I use mbox. (Though I intend to convert to maildir 
eventually)
When you create a folder, you have to decide whether the folder will 
contain messages only, or other folders. Folders and mesages can not 
be contained in the same folder.





--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: [Dovecot] deliver errors

2007-06-28 Thread Azher Amin

Charles Marcus wrote:


Azher Amin, on 6/28/2007 1:22 AM, said the following:


Hi Timo,

Thnx one of the error is gone due to duplicate passdbs, thnx. However 
following error is persistant. I restarted my sendmail, dovecot etc. 
changed the group permission as you mentioned.



You never provided requested information...

dovecot -n output please, so we don't have to guess...


Here is the output:

# 1.0.1: /etc/dovecot.conf
log_path: /var/log/dovecot.log
protocols: imap imaps pop3 pop3s
ssl_ca_file: /etc/mail/certs/ca-bundle.crt
ssl_cert_file: /etc/mail/certs/webmail.niit.edu.pk.cert
ssl_key_file: /etc/mail/certs/webmail.niit.edu.pk.key2
verbose_ssl: yes
login_dir: /var/run/dovecot/login
login_executable(default): /usr/local/libexec/dovecot/imap-login
login_executable(imap): /usr/local/libexec/dovecot/imap-login
login_executable(pop3): /usr/local/libexec/dovecot/pop3-login
mail_location: mbox:~/mail:INBOX=%h/mail/INBOX:INDEX=/var/mail/indexes/%u
mail_executable(default): /usr/local/libexec/dovecot/imap
mail_executable(imap): /usr/local/libexec/dovecot/imap
mail_executable(pop3): /usr/local/libexec/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/local/lib/dovecot/imap
mail_plugin_dir(imap): /usr/local/lib/dovecot/imap
mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xv%08Xu
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
 mechanisms: plain login cram-md5 digest-md5
 verbose: yes
 debug: yes
 passdb:
   driver: sql
   args: /etc/dovecot-sql.conf
 userdb:
   driver: sql
   args: /etc/dovecot-sql.conf
 userdb:
   driver: prefetch
 socket:
   type: listen
   master:
 path: /var/run/dovecot/auth-master
 mode: 384
plugin:
 quota: fs




Re: [Dovecot] deliver errors

2007-06-27 Thread Azher Amin

Hi Timo,

Thnx one of the error is gone due to duplicate passdbs, thnx. However 
following error is persistant. I restarted my sendmail, dovecot etc. 
changed the group permission as you mentioned.


Jun 28 10:19:47 webmail sm-mta[19653]: l5S5Jl1Z019649: Warning: program 
/usr/local/libexec/dovecot/deliver unsafe: Group writable directory
Jun 28 10:19:47 webmail sm-mta[19651]: l5S5Jl1Z019649: 
to=[EMAIL PROTECTED], ctladdr=[EMAIL PROTECTED] 
(2848/1258), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=102492, 
dsn=2.0.0, stat=Sent
Jun 28 10:20:18 webmail sm-mta[19710]: l5S5KHRa019710: 
from=[EMAIL PROTECTED], size=2521, class=0, nrcpts=1, 
msgid=[EMAIL PROTECTED], 
proto=ESMTP, daemon=MTA-v4, [EMAIL PROTECTED] [127.0.0.1]
Jun 28 10:20:19 webmail sm-mta[19718]: l5S5KJhX019718: 
from=[EMAIL PROTECTED], size=882, class=0, nrcpts=1, 
msgid=[EMAIL PROTECTED], proto=SMTP, 
daemon=MTA-v4, relay=rwp44.pie.net.pk [202.125.157.194] (may be forged)
Jun 28 10:20:19 webmail sm-mta[19720]: l5S5KJhX019718: Warning: program 
/usr/local/libexec/dovecot/deliver unsafe: Group writable directory
Jun 28 10:20:19 webmail sm-mta[19719]: l5S5KJhX019718: to=azher, 
ctladdr=[EMAIL PROTECTED] (0/0), delay=00:00:00, xdelay=00:00:00, 
mailer=local, pri=31120, dsn=2.0.0, stat=Sent



Plz suggest.

Regards
-Azher



Timo Sirainen wrote:


On Wed, 2007-06-27 at 23:25 +0300, Timo Sirainen wrote:
 


On Thu, 2007-06-28 at 00:03 +0500, [EMAIL PROTECTED] wrote:
   


Hi,

I am using ver 1.0.1 and getting the following errors in mail.log and
auth.log respectively. However I can login to imap 
 



Oh, didn't notice this.

 


Jun 27 23:27:30 webmail dovecot-auth: (pam_unix) authentication failure;
logname= uid=0 euid=0 tty=dovecot ruser= rhost=127.0.0.1  user=azher
 



Then it means you're using two passdbs. PAM and something else. Remove
PAM. You can easily check what passdbs you have with dovecot -n.

 






Re: [Dovecot] Auth MD5 problem

2007-04-23 Thread Azher Amin

Hi,

Following is the output with details:

dovecot: Apr 23 11:45:14 Info: auth(default): client in: AUTH   1   
DIGEST-MD5  service=IMAPsecured lip=127.0.0.1   rip=127.0.0.1
dovecot: Apr 23 11:45:14 Info: auth(default): client out: CONT  1   
cmVhbG09IiIsbm9uY2U9Imkrelp5QStkSTBKd1B1ZnZPMktRYmc9PSIscW9wPSJhdXRoIixjaGFyc2V0PSJ1dGYtOCIsYWxnb3JpdGhtPSJtZDUtc2VzcyI=

dovecot: Apr 23 11:45:14 Info: auth(default): client in: CONThidden
dovecot: Apr 23 11:45:14 Info: auth-worker(default): 
sql(azher,127.0.0.1): query: SELECT userid as user, password, home as 
userdb_home, uid as userdb_uid, gid as userdb_gid FROM users WHERE 
userid = 'azher'
dovecot: Apr 23 11:45:14 Info: auth-worker(default): 
password(azher,127.0.0.1): Requested DIGEST-MD5 scheme, but we have only 
PLAIN-MD5
dovecot: Apr 23 11:45:16 Info: auth(default): client out: FAIL  1   
user=azher
dovecot: Apr 23 11:45:16 Info: imap-login: Aborted login: user=azher, 
method=DIGEST-MD5, rip=127.0.0.1, lip=127.0.0.1, secured



Andrey Panin wrote:


On 113, 04 23, 2007 at 09:33:26AM +0500, Azher Amin wrote:
 


Hi,

I am using dovecot 1.0 with squirrelmail. But when i use $imap_auth_mech 
= 'digest-md5' instead of plain,  dovecot throws this line:


dovecot: Apr 23 09:16:07 Info: imap-login: Aborted login: user=azher, 
method=DIGEST-MD5, rip=127.0.0.1, lip=127.0.0.1, secured


and user can't login. Plz suggest.
   



Not enough data. Please enable auth_verbose and auth_debug in your dovecot.conf
and let us see results.

 


Settings:
==

disable_plaintext_auth = yes

auth default {
# Space separated list of wanted authentication mechanisms:
#   plain login digest-md5 cram-md5 ntlm rpa apop anonymous gssapi
mechanisms = plain login cram-md5 digest-md5

Mysql Tables: Passwords are stored with the help of MD5 function
   



This sounds too fuzzy... How exactly your passwords look like ?

 


dovecot-sql.conf :

user_query = SELECT home, uid, gid FROM users WHERE userid = '%u'
password_query = SELECT userid as user, password, home as userdb_home, 
uid as userdb_uid, gid as userdb_gid FROM users WHERE userid = '%u'
   



 




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: [Dovecot] Auth MD5 problem

2007-04-23 Thread Azher Amin

Hi,

Thnx for reply. But still confused. Dovecot says: 'Requested DIGEST-MD5 scheme, 
but we have only PLAIN-MD5'

However in my configs, i have enabled the digest-md5 already: mechanisms = 
plain login cram-md5 digest-md5

So why it says that we have only PLAIN-MD5 ??? 


Plz seuggest ...

Regards
-Azher



Andrey Panin wrote:

On 113, 04 23, 2007 at 11:50:53AM +0500, Azher Amin wrote:
  

Hi,

Following is the output with details:

dovecot: Apr 23 11:45:14 Info: auth(default): client in: AUTH   1   
DIGEST-MD5  service=IMAPsecured lip=127.0.0.1   rip=127.0.0.1
dovecot: Apr 23 11:45:14 Info: auth(default): client out: CONT  1   
cmVhbG09IiIsbm9uY2U9Imkrelp5QStkSTBKd1B1ZnZPMktRYmc9PSIscW9wPSJhdXRoIixjaGFyc2V0PSJ1dGYtOCIsYWxnb3JpdGhtPSJtZDUtc2VzcyI=

dovecot: Apr 23 11:45:14 Info: auth(default): client in: CONThidden
dovecot: Apr 23 11:45:14 Info: auth-worker(default): 
sql(azher,127.0.0.1): query: SELECT userid as user, password, home as 
userdb_home, uid as userdb_uid, gid as userdb_gid FROM users WHERE 
userid = 'azher'
dovecot: Apr 23 11:45:14 Info: auth-worker(default): 
password(azher,127.0.0.1): Requested DIGEST-MD5 scheme, but we have only 
PLAIN-MD5



Only DIGEST-MD5 or PLAIN password scheme could be used with DIGEST-MD5 
authentication mechanism.


  
dovecot: Apr 23 11:45:16 Info: auth(default): client out: FAIL  1   
user=azher
dovecot: Apr 23 11:45:16 Info: imap-login: Aborted login: user=azher, 
method=DIGEST-MD5, rip=127.0.0.1, lip=127.0.0.1, secured



Andrey Panin wrote:



On 113, 04 23, 2007 at 09:33:26AM +0500, Azher Amin wrote:


  

Hi,

I am using dovecot 1.0 with squirrelmail. But when i use $imap_auth_mech 
= 'digest-md5' instead of plain,  dovecot throws this line:


dovecot: Apr 23 09:16:07 Info: imap-login: Aborted login: user=azher, 
method=DIGEST-MD5, rip=127.0.0.1, lip=127.0.0.1, secured


and user can't login. Plz suggest.
  


Not enough data. Please enable auth_verbose and auth_debug in your 
dovecot.conf

and let us see results.



  

Settings:
==

disable_plaintext_auth = yes

auth default {
# Space separated list of wanted authentication mechanisms:
#   plain login digest-md5 cram-md5 ntlm rpa apop anonymous gssapi
mechanisms = plain login cram-md5 digest-md5

Mysql Tables: Passwords are stored with the help of MD5 function
  



This sounds too fuzzy... How exactly your passwords look like ?



  

dovecot-sql.conf :

user_query = SELECT home, uid, gid FROM users WHERE userid = '%u'
password_query = SELECT userid as user, password, home as userdb_home, 
uid as userdb_uid, gid as userdb_gid FROM users WHERE userid = '%u'
  




  

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





  



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



[Dovecot] Auth MD5 problem

2007-04-22 Thread Azher Amin

Hi,

I am using dovecot 1.0 with squirrelmail. But when i use $imap_auth_mech 
= 'digest-md5' instead of plain,  dovecot throws this line:


dovecot: Apr 23 09:16:07 Info: imap-login: Aborted login: user=azher, 
method=DIGEST-MD5, rip=127.0.0.1, lip=127.0.0.1, secured


and user can't login. Plz suggest.

Regards
-Azher


Settings:
==

disable_plaintext_auth = yes

auth default {
 # Space separated list of wanted authentication mechanisms:
 #   plain login digest-md5 cram-md5 ntlm rpa apop anonymous gssapi
 mechanisms = plain login cram-md5 digest-md5

Mysql Tables: Passwords are stored with the help of MD5 function

dovecot-sql.conf :

user_query = SELECT home, uid, gid FROM users WHERE userid = '%u'
password_query = SELECT userid as user, password, home as userdb_home, 
uid as userdb_uid, gid as userdb_gid FROM users WHERE userid = '%u'




--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: [Dovecot] LDA problem

2007-04-15 Thread Azher Amin

Hi Timo,

Thnx for your time replying me. I did the steps as suggested on the link 
and here are the details now. IMAP, SSL , POP3 SASL, IMAP-QUOTA etc .. 
everything works perfect but the LDA is still giving the same error, 
details are below:


wm:/etc/mail# netstat -lpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address   Foreign Address 
State   PID/Program name
tcp0  0 0.0.0.0:993 0.0.0.0:*   
LISTEN 10853/dovecot
tcp0  0 0.0.0.0:995 0.0.0.0:*   
LISTEN 10853/dovecot
tcp0  0 127.0.0.1:3306  0.0.0.0:*   
LISTEN 3108/mysqld
tcp0  0 127.0.0.1:587   0.0.0.0:*   
LISTEN 11281/sendmail: MTA
tcp0  0 0.0.0.0:110 0.0.0.0:*   
LISTEN 10853/dovecot
tcp0  0 0.0.0.0:143 0.0.0.0:*   
LISTEN 10853/dovecot
tcp0  0 0.0.0.0:465 0.0.0.0:*   
LISTEN 11281/sendmail: MTA
tcp0  0 0.0.0.0:113 0.0.0.0:*   
LISTEN 3240/inetd
tcp0  0 0.0.0.0:21  0.0.0.0:*   
LISTEN 3240/inetd
tcp0  0 10.10.4.20:25   0.0.0.0:*   
LISTEN 11281/sendmail: MTA
tcp0  0 127.0.0.1:250.0.0.0:*   
LISTEN 11281/sendmail: MTA
tcp6   0  0 :::80   :::*
LISTEN 7878/apache2
tcp6   0  0 :::22   :::*
LISTEN 3281/sshd

Active UNIX domain sockets (only servers)
Proto RefCnt Flags   Type   State I-Node PID/Program 
namePath
unix  2  [ ACC ] STREAM LISTENING 6934 
3108/mysqld /var/run/mysqld/mysqld.sock
unix  2  [ ACC ] STREAM LISTENING 7136 
3229/acpid  /var/run/acpid.socket
unix  2  [ ACC ] STREAM LISTENING 7303 
3271/saslauthd  /var/run/saslauthd/mux
unix  2  [ ACC ] STREAM LISTENING 32330
11281/sendmail: MTA /var/run/sendmail/mta/smcontrol
unix  2  [ ACC ] STREAM LISTENING 31460
10853/dovecot   /var/run/dovecot/dict-server
unix  2  [ ACC ] STREAM LISTENING 31462
10853/dovecot   /var/run/dovecot/login/default
unix  2  [ ACC ] STREAM LISTENING 31467
10853/dovecot   /var/run/dovecot/auth-worker.10854
unix  2  [ ACC ] STREAM LISTENING 31469
10854/dovecot-auth  /var/run/dovecot/auth-master

wm:/etc/mail#

--- dovecot.conf ---

protocol lda {
 postmaster_address = [EMAIL PROTECTED]
 auth_socket_path = /var/run/dovecot/auth-master
 mail_plugin_dir = /usr/local/lib/dovecot/lda/
 mail_plugins = quota
}

 # requires roots. Note that this user is NOT used to access mails.
 # That user is specified by userdb above.
 user = root

 socket listen {
   master {
 # Master socket provides access to userdb information. It's typically
 # used to give Dovecot's local delivery agent access to userdb so it
 # can find mailbox locations.
 path = /var/run/dovecot/auth-master
 mode = 0600
 # Default user/group is the one who started dovecot-auth (root)
 #user =
 #group =
   }
   #client {
 # The client socket is generally safe to export to everyone. 
Typical use

 # is to export it to your SMTP server so it can do SMTP AUTH lookups
 # using it.
 #path = /var/run/dovecot/auth-client
 #mode = 0660
   #}
 }

 sendmail.mc ---

LOCAL_CONFIG

FEATURE(`use_cw_file')dnl
FEATURE(`use_ct_file')dnl
FEATURE(`nouucp', `reject')dnl
FEATURE(`bestmx_is_local')dnl
FEATURE(`mailertable')dnl
FEATURE(`smrsh')dnl

FEATURE(`local_procmail', `/usr/local/libexec/dovecot/deliver',`deliver 
-d $u')


MAILER_DEFINITIONS
MAILER(local)dnl
MAILER(smtp)dnl
MODIFY_MAILER_FLAGS(`LOCAL', `-f')

LOCAL_CONFIG

--- mail.log -
Apr 15 14:42:22 wm sm-mta[11875]: STARTTLS=server, 
[EMAIL PROTECTED] [10.10.4.66] (may be forged), 
version=TLSv1/SSLv3, verify=NOT, cipher=DHE-RSA-AES256-SHA, bits=256/256
Apr 15 14:42:42 wm sm-mta[11875]: l3F9gLLc011875: 
from=[EMAIL PROTECTED], size=972, class=0, nrcpts=1, 
msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=MTA-v4, 
[EMAIL PROTECTED] [10.10.4.66] (may be forged)
Apr 15 14:42:42 wm sm-mta[11877]: l3F9gLLc011875: Warning: program 
/usr/local/libexec/dovecot/deliver unsafe: Group writable directory
Apr 15 14:42:42 wm sm-mta[11876]: l3F9gLLc011875: 
to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, 
mailer=local, pri=31258, dsn=4.0.0, stat=Deferred: local mailer 
(/usr/local/libexec/dovecot/deliver) exited with EX_TEMPFAIL





Timo Sirainen wrote:

On 14.4.2007, at 22.55, Azher Amin wrote:

deliver(azher): Apr 15 00:52:49 Error: 
net_connect(/var/run/dovecot/auth-master

Re: [Dovecot] LDA problem

2007-04-15 Thread Azher Amin

Hi Timo,

Finally I got it working. Thnx for excellent software.

Thnx
-Azher Amin


Timo Sirainen wrote:

On Sat, 2007-04-14 at 20:44 +0500, Azher Amin wrote:
  

Hi,

I am using dovecot deliver as lda for sendmail. My problem is that when 
a user account is over quota, deliver program sends message in the logs, 
but the message is not bounced back to sender informing that their is 
disk quota problem at the recipient side. Further message remains in the 
mail queue. Details are below. Plz suggest how to figure out the problems:


..
  
Apr 14 11:31:41 wm sm-mta[22712]: l3EFVKQY022711: 
to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, 
mailer=local, pri=130864, dsn=4.0.0, stat=Deferred: local mailer 
(/usr/dovecot/libexec/dovecot/deliver) exited with EX_TEMPFAIL



It failed with EX_TEMPFAIL, so Dovecot didn't properly handle the
out-of-quota condition. You're using filesystem quota I guess? If you're
also using maildir, that won't work if your control files are in quota
partition. See http://wiki.dovecot.org/Quota/FS

  



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: [Dovecot] LDA problem

2007-04-14 Thread Azher Amin

Hi Timo,

Thnx for quick suggestions, however i am still in trouble. I am using FS 
Quota and mbox. After looking at the Quota/FS, I changed the 
mail_location to below.

Few of my dovecot.conf settings are:

mail_location = 
mbox:~/mail:INBOX=/home/%u/mail/INBOX:INDEX=/var/mail/indexes/%u


protocol lda {
 # Address to use when sending rejection mails.
 postmaster_address = [EMAIL PROTECTED]
 mail_plugins = quota
}

Plz suggest what to do next ..

Regards
-Azher



Timo Sirainen wrote:

On Sat, 2007-04-14 at 20:44 +0500, Azher Amin wrote:
  

Hi,

I am using dovecot deliver as lda for sendmail. My problem is that when 
a user account is over quota, deliver program sends message in the logs, 
but the message is not bounced back to sender informing that their is 
disk quota problem at the recipient side. Further message remains in the 
mail queue. Details are below. Plz suggest how to figure out the problems:


..
  
Apr 14 11:31:41 wm sm-mta[22712]: l3EFVKQY022711: 
to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, 
mailer=local, pri=130864, dsn=4.0.0, stat=Deferred: local mailer 
(/usr/dovecot/libexec/dovecot/deliver) exited with EX_TEMPFAIL



It failed with EX_TEMPFAIL, so Dovecot didn't properly handle the
out-of-quota condition. You're using filesystem quota I guess? If you're
also using maildir, that won't work if your control files are in quota
partition. See http://wiki.dovecot.org/Quota/FS

  



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



Re: [Dovecot] WebmAdmin for DoveCot

2007-04-11 Thread Azher Amin

Hi Ken,

You are right, these tools once integrated gives the solution. But i 
thought that if someone has already done the spade work then it would be 
helpful.


Regards
-Azher


Ken Anderson wrote:


Azher Amin wrote:


Hi,

I am using Dovecot with Sendmail in my environment. So far I am doing 
manual operations like adding new users, aliases, setting quota etc.


Is there any WebAdmin interface that works with 'Dovecot and 
Sendmail' and can help in above tasks, plz suggest.



You might get most of the way with Webmin, but most systems differ so 
that you'd probably be happier if you 'rolled your own' out of the 
available peices: pam, saslauthd, pam-mysql, mysql, postgres, ldap, 
and your favorite programming/scripting languages.

Ken Anderson
Pacific.Net




Regards
-Azher







--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



[Dovecot] WebmAdmin for DoveCot

2007-04-10 Thread Azher Amin

Hi,

I am using Dovecot with Sendmail in my environment. So far I am doing 
manual operations like adding new users, aliases, setting quota etc.


Is there any WebAdmin interface that works with 'Dovecot and Sendmail' 
and can help in above tasks, plz suggest.


Regards
-Azher

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.