Re: [Dovecot] dovecot LDA error

2012-04-27 Thread Hadi Salem

Hi  Timo Sirainen,



It’s working with me fine. With no problem.

After I configured my MTA (sendmail) to run dovecot-lda as
root with chmod 4750 /local/user/libexce/dovecot/dovecot-lda. And create group
called secmail.

I had to change dovecot-lda group to secmail.  And then added mail to secmail 
group.

It works with me.

Before when I changed dovecot-lda group direct to mail doesn’t
work. But it should to work.!!!

 I think that was the
error. Later after creating separate group and adding mail to it, it’s working
fine.. Any idea here… why doesn’t work if I changed dovecot-lda direct to mail
group instead of creating new group and adding mail to it???.

Hadi-

 

 




 From: t...@iki.fi
 Date: Thu, 26 Apr 2012 00:29:51 +0300
 To: almarzuki2...@hotmail.com
 CC: dovecot@dovecot.org
 Subject: Re: [Dovecot] dovecot LDA error
 
 On 24.4.2012, at 20.41, Hadi Salem wrote:
 
  Apr 24 20:25:46 lda(ja...@example.com): Fatal:
  setgid(5000(vmail) from userdb lo   
 
  okup) failed with
  euid=8(mail), gid=12(mail), egid=12(mail): Operation not permi  
   
  tted (This binary should probably be called with process group set to 
  5000(vmail  
   
  ) instead of 12(mail))
 
 Configure your MTA to run dovecot-lda as vmail instead of as mail.
 
  

[Dovecot] dovecot-lda error

2012-04-25 Thread Hadi Salem


Hi,

im getting the fallowing error. from dovecot-lda log

Apr 25 17:30:41 lda(ja...@example.com): Fatal: setgid(5003(vmail) from 
userdb lookup) failed with euid=8(mail), gid=12(mail), egid=12(mail): 
Operation not permitted (This binary should probably be called with 
process group set to 5003(vmail) instead of 12(mail))


this error occur if im using different uid and gid part from mail uid..
ja...@example.com:{PLAIN}123:5003:5003::/var/vmail/example.com/jamal/::userdb_mail=maildir:~/Maildir

but if i use mail uid it work fine..  
ja...@example.com:{PLAIN}123:8:12::/var/vmail/example.com/jamal/::userdb_mail=maildir:~/Maildir

i tried using multiple uids as mention in wiki2.dovecot.org/LDA bye setting up 
setuid-root for dovecot-lda but im getting on-there error from sendmail :- 

Apr 25 17:30:41 host1 sendmail[31024]: q3PEUen2031022: to=ja...@example.com, 
delay=00:00:00, xdelay=00:00:00, mailer=dovecot, pri=120359, relay=dovecot, 
dsn=4.0.0, stat=Deferred: dovecot mailer 
(/usr/local/libexec/dovecot/dovecot-lda) exited with EX_TEMPFAIL

im using sendmail.
[root@host1 conf.d]# doveconf -n
# 2.0.20: /usr/local/etc/dovecot/dovecot.conf
# OS: Linux 2.6.18-164.el5 x86_64 CentOS release 5.4 (Final)
auth_debug = yes
auth_debug_passwords = yes
auth_verbose = yes
auth_verbose_passwords = plain
debug_log_path = /var/log/dovecot.log
disable_plaintext_auth = no
first_valid_gid = 12
first_valid_uid = 8
hostname = host1.bigmama.com
info_log_path = /var/log/dovecot.log
last_valid_gid = 5
last_valid_uid = 5
log_path = /var/log/dovecot.log
mail_debug = yes
mail_gid = mail
mail_location = maildir:~/Maildir
mail_uid = mail
passdb {
  args = scheme=PLAIN username_format=%u /etc/dovecot/users
  driver = passwd-file
}
postmaster_address = r...@host1.bigmama.com
service auth {
  unix_listener auth-userdb {
group = mail
mode = 0666
user = mail
  }
}
ssl = no
userdb {
  args = username_format=%u /etc/dovecot/users
  driver = passwd-file
}
protocol lda {
  info_log_path = /var/log/dovecot-lda.log
  log_path = /var/log/dovecot-lda-errors.log
}

  

Re: [Dovecot] dovecot LDA error

2012-04-25 Thread Timo Sirainen
On 24.4.2012, at 20.41, Hadi Salem wrote:

 Apr 24 20:25:46 lda(ja...@example.com): Fatal:
 setgid(5000(vmail) from userdb lo 
  
 okup) failed with
 euid=8(mail), gid=12(mail), egid=12(mail): Operation not permi

 tted (This binary should probably be called with process group set to 
 5000(vmail

 ) instead of 12(mail))

Configure your MTA to run dovecot-lda as vmail instead of as mail.



Re: [Dovecot] dovecot-lda error

2012-04-25 Thread Timo Sirainen
On 25.4.2012, at 17.52, Hadi Salem wrote:

 i tried using multiple uids as mention in wiki2.dovecot.org/LDA bye setting 
 up setuid-root for dovecot-lda but im getting on-there error from sendmail :- 
 
 Apr 25 17:30:41 host1 sendmail[31024]: q3PEUen2031022: 
 to=ja...@example.com, delay=00:00:00, xdelay=00:00:00, mailer=dovecot, 
 pri=120359, relay=dovecot, dsn=4.0.0, stat=Deferred: dovecot mailer 
 (/usr/local/libexec/dovecot/dovecot-lda) exited with EX_TEMPFAIL

What do the Dovecot logs say about this?

 protocol lda {
  info_log_path = /var/log/dovecot-lda.log
  log_path = /var/log/dovecot-lda-errors.log
 }

If there is nothing in dovecot-lda-errors.log, make sure dovecot-lda has 
permissions to write there (e.g. temporarily make it world-writable).



[Dovecot] dovecot LDA error

2012-04-24 Thread Hadi Salem



Hi,

My dovecot version is ,

# 2.0.20: /usr/local/etc/dovecot/dovecot.conf

# OS: Linux 2.6.18-164.el5 x86_64 CentOS release 5.4 (Final)

auth_debug = yes

auth_debug_passwords = yes

auth_verbose = yes

auth_verbose_passwords = plain

debug_log_path = /var/log/dovecot.log

disable_plaintext_auth = no

hostname = host1.bigmama.com

info_log_path = /var/log/dovecot.log

log_path = /var/log/dovecot.log

mail_debug = yes

mail_location = maildir:~/Maildir

passdb {

  args = scheme=PLAIN
username_format=%u /etc/dovecot/users

  driver = passwd-file

}

postmaster_address = r...@host1.bigmama.com

service auth {

  unix_listener
auth-userdb {

group = mail

mode = 0660

user = mail

  }

}

ssl = no

userdb {

  args =
username_format=%u /etc/dovecot/users

  driver = passwd-file

}

protocol lda {

  info_log_path =
/var/log/dovecot-lda.log

  log_path =
/var/log/dovecot-lda-errors.log

}

 

Im getting error from dovecot LDA logs log_path =
/var/log/dovecot-lda-errors.log

Apr 24 20:25:46 lda(ja...@example.com): Fatal:
setgid(5000(vmail) from userdb lo   
   
 okup) failed with
euid=8(mail), gid=12(mail), egid=12(mail): Operation not permi  
 
tted (This binary should probably be called with process group set to 
5000(vmail  
 
) instead of 12(mail))

 

 

My usersdb config

ja...@example.com:{PLAIN}123:5000:5000::/var/vmail/example.com/jamal/

user 5000 system user as vmail

Permissions for the /var/vmail directory as follow 

drwxr-xr-x 3 vmail vmail 4096 Apr 24 20:18 /var/vmail/

drwx-- 3 vmail vmail 4096 Apr 24 20:18
/var/vmail/example.com/

drwx-- 3 vmail vmail 4096 Apr 24 20:18
/var/vmail/example.com/jamal/

drwx-- 5 vmail vmail 4096 Apr 24 20:20
/var/vmail/example.com/jamal/Maildir/

 

  

Re: [Dovecot] dovecot-lda error

2012-01-05 Thread e-frog

On 05.01.2012 08:45, wrote Wesley M.:



Hi,


Hi,



I use Dovecot 2.0.13 on OpenBSD 5.0
When i try to send emails i
have the following error in /var/log/maillog

Jan 5 11:23:49 mail50
postfix/pipe[29423]: D951842244C: to=, relay=dovecot, delay=0.02,
delays=0.01/0/0/0.01, dsn=5.3.0, status=bounced (command line usage error.
Command output: deliver: unknown option -- n Usage: dovecot-lda [-c ] [-a ]


Look at the bottom of this page:

http://wiki2.dovecot.org/Upgrading/2.0


[-d ] [-p ] [-f ] [-m ] [-e] [-k] )
Jan 5 11:23:49 mail50
postfix/qmgr[13787]: D951842244C: removed

In my /etc/postfix/master.cf
:
# Dovecot LDA
dovecot unix - n n - - pipe
  flags=ODR
user=_dovecot:_dovecot argv=/usr/local/libexec/dovecot/deliver -f
${
sender} -d ${user}@${nexthop} -n -m ${extension}

How can i resolve that
?
Thank you very much for your replies.

Cheers,

Wesley.






[Dovecot] dovecot-lda error

2012-01-04 Thread Wesley M.


Hi, 

I use Dovecot 2.0.13 on OpenBSD 5.0
When i try to send emails i
have the following error in /var/log/maillog 

Jan 5 11:23:49 mail50
postfix/pipe[29423]: D951842244C: to=, relay=dovecot, delay=0.02,
delays=0.01/0/0/0.01, dsn=5.3.0, status=bounced (command line usage error.
Command output: deliver: unknown option -- n Usage: dovecot-lda [-c ] [-a ]
[-d ] [-p ] [-f ] [-m ] [-e] [-k] )
Jan 5 11:23:49 mail50
postfix/qmgr[13787]: D951842244C: removed 

In my /etc/postfix/master.cf
:
# Dovecot LDA
dovecot unix - n n - - pipe
 flags=ODR
user=_dovecot:_dovecot argv=/usr/local/libexec/dovecot/deliver -f
${
sender} -d ${user}@${nexthop} -n -m ${extension}

How can i resolve that
?
Thank you very much for your replies.

Cheers, 

Wesley.