Re: [Dovecot] deliver errors

2007-06-28 Thread azher
Hi Timo,

Following is the directory output, plz suggest.

webmail:~# ls -la /usr/local/libexec/dovecot/
total 9724
drwxr-sr-x 2 root staff4096 2007-06-26 18:23 .
drwxr-sr-x 3 root staff4096 2007-06-26 17:56 ..
-rwxr-xr-x 1 root staff  144247 2007-06-26 18:23 checkpassword-reply
-rwx-- 1 root staff 2161620 2007-06-26 18:23 deliver
-rwxr-xr-x 1 root staff  387889 2007-06-26 18:23 dict
-rwxr-xr-x 1 root staff  849196 2007-06-26 18:23 dovecot-auth
-rwxr-xr-x 1 root staff  145149 2007-06-26 18:23 gdbhelper
-rwxr-xr-x 1 root staff  160981 2007-06-26 18:23 idxview
-rwxr-xr-x 1 root staff 2394982 2007-06-26 18:23 imap
-rwxr-xr-x 1 root staff  479185 2007-06-26 18:23 imap-login
-rwxr-xr-x 1 root staff  150781 2007-06-26 18:23 logview
-rwxr-xr-x 1 root staff 2137787 2007-06-26 18:23 pop3
-rwxr-xr-x 1 root staff  458718 2007-06-26 18:23 pop3-login
-rwxr-xr-x 1 root staff  248419 2007-06-26 18:23 rawlog
-rwxr-xr-x 1 root staff  156528 2007-06-26 18:23 ssl-build-param





On Thu, June 28, 2007 6:17 pm, Timo Sirainen wrote:
> On 28.6.2007, at 8.22, Azher Amin wrote:
>
>
>> Jun 28 10:19:47 webmail sm-mta[19653]: l5S5Jl1Z019649: Warning:
>> program /usr/local/libexec/dovecot/deliver unsafe: Group writable
>> directory
>
> This error comes from sendmail. If dovecot directory isn't group
> writable, then I don't really have any idea why it's complaining about
> that. Is deliver binary group writable? Or other directories above that?
>
>




Re: [Dovecot] deliver errors

2007-06-28 Thread Timo Sirainen

On 28.6.2007, at 8.22, Azher Amin wrote:

Jun 28 10:19:47 webmail sm-mta[19653]: l5S5Jl1Z019649: Warning:  
program /usr/local/libexec/dovecot/deliver unsafe: Group writable  
directory


This error comes from sendmail. If dovecot directory isn't group  
writable, then I don't really have any idea why it's complaining  
about that. Is deliver binary group writable? Or other directories  
above that?




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


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-28 Thread Charles Marcus

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...

--

Best regards,

Charles


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] deliver errors

2007-06-27 Thread Timo Sirainen
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".



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] deliver errors

2007-06-27 Thread Timo Sirainen
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 and retrieve emails no
> problem, while sending email is also ok.
> 
> Jun 27 23:59:21 webmail sm-mta[1889]: l5RIvhQE001865: Warning: program
> /usr/local/libexec/dovecot/deliver unsafe: Group writable directory

chmod g-w /usr/local/libexec/dovecot

> 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

http://wiki.dovecot.org/WhyDoesItNotWork



signature.asc
Description: This is a digitally signed message part