1

Topic: Dovecot error

==== Provide required information to help troubleshoot and get quick answer ====
- Linux/BSD distribution name and version: UBUNTU Server 11.10 64 bits
- iRedMail version and backend (LDAP/MySQL): iRedMail 0.7.4 MySQL
- Any related log? Log is helpful for troubleshooting.
====

Hi,

Some users tell me that there are a lot of emails that do not reach the destination recipient.
I checked the message queue with the command 'postqueue -p', and I'm getting this error continuously:

"9BCD46801E3     4344 Sun Feb  5 16:00:52  MAILER-DAEMON
(temporary failure. Command output: doveconf: Warning: NOTE: You can get a new clean config file with: doveconf -n > dovecot-new.conf doveconf: Warning: Obsolete setting in /etc/dovecot/dovecot.conf:170: protocol managesieve {} has been replaced by protocol sieve { })"

What's happening with dovecot?, Can this be the problem do not leave messages?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Dovecot error

Seems you're using Dovecot-1.x config file syntax in Dovecot-2.x.
Please fix it as log says.

3

Re: Dovecot error

ZhangHuangbin wrote:

Seems you're using Dovecot-1.x config file syntax in Dovecot-2.x.
Please fix it as log says.

Thx for your answer.
I've changed 'protocol managesieve {}' for 'protocol sieve {}', and now I get this error in my queue:

"1742368021D     3846 Sun Feb  5 20:25:10  MAILER-DAEMON
                                                           (temporary failure)
                                         www-data@smtp.domain.com"

Is there any tool to analyze the mail logs easily?, through the web interface, for example.

4

Re: Dovecot error

Are you using the correct syntax? Please take this file as example:
https://bitbucket.org/zhb/iredmail/src/ … ecot2.conf

Please check Dovecot log file to see whether you have other incorrect syntax.

5 (edited by manunauta 2012-02-08 02:38:02)

Re: Dovecot error

ZhangHuangbin wrote:

Are you using the correct syntax? Please take this file as example:
https://bitbucket.org/zhb/iredmail/src/ … ecot2.conf

Please check Dovecot log file to see whether you have other incorrect syntax.

I've compared my dovecot.conf with your reference file, and I only see these lines added at the end of file:

protocol sieve {
  # Specify an alternative address:port the daemon must listen on
  # (default: *:2000)
  # listen = localhost:2000
  managesieve_logout_format = bytes ( in=%i : out=%o )
}

My dovecot.log file only shows lines like these:

Feb 07 17:37:53 pop3-login: Info: Login: user=<user@domain.com>, method=PLAIN, rip=xx.xx.xx.xx, lip=xx.xx.xx.xx, mpid=11455
Feb 07 17:37:53 pop3(user@domain.com): Info: Disconnected: Logged out top=0/0, retr=0/0, del=0/32, size=11900214

I also see this error continuously in my sieve.log file:

Feb 07 17:28:44 lda(www-data): Fatal: setgid(5000(vmail) from mail_gid setting) failed with euid=33(www-data), gid=4(adm), egid=4(adm): Operation not permitted (This binary should probably be called with process group set to 5000(vmail) instead of 4(adm))

Any solution?

6

Re: Dovecot error

manunauta wrote:

I also see this error continuously in my sieve.log file:

Feb 07 17:28:44 lda(www-data): Fatal: setgid(5000(vmail) from mail_gid setting) failed with euid=33(www-data), gid=4(adm), egid=4(adm): Operation not permitted (This binary should probably be called with process group set to 5000(vmail) instead of 4(adm))

Dovecot is trying to deliver email to local user 'www-data'. www-data is daemon user of Apache, please find out why there're so many emails sent to this user first.

Is this server upgraded from iRedMail-0.7.3? if so, did you apply this fix:
http://iredmail.org/wiki/index.php?titl … _.22adm.22