[Dovecot] started with dovecot sieve

mailinglist mailinglist at august.de
Tue Jun 26 17:51:22 EEST 2012


Am 2012-06-25 23:59, schrieb Daniel Parthey:
> Hi Rolf,
>
> Rolf wrote:
>> Now I came to my limits with this failure messages in
>> /home/rolf/.dovecot.sieve.log:
>>
>> sieve: info: started log at Jun 25 20:22:54.
>> error: 
>> msgid=<1340648569.94073.YahooMailClassic at web190304.mail.sg3.yahoo.com>:
>> failed to store into mailbox 'INBOX': BUG: Unknown internal error.
>>
>> with this messages in mail.info:
>>
>> Jun 25 20:22:54 rolf14 postfix/smtpd[21674]: connect from 
>> localhost[127.0.0.1]
>> Jun 25 20:22:54 rolf14 postfix/smtpd[21674]: 90898E0190: 
>> client=localhost[127.0.0.1]
>> Jun 25 20:22:54 rolf14 postfix/cleanup[21669]: 90898E0190: 
>> message-id=<1340648569.94073.YahooMailClassic at web190304.mail.sg3.yahoo.com>
>> Jun 25 20:22:54 rolf14 postfix/qmgr[21172]: 90898E0190: 
>> from=<stephanie.otavy at live.com>, size=5291, nrcpt=1 (queue active)
>> Jun 25 20:22:54 rolf14 postfix/smtpd[21674]: disconnect from 
>> localhost[127.0.0.1]
>> Jun 25 20:22:54 rolf14 dovecot: lda(rolf): Error: 
>> setegid(privileged) failed: Operation not permitted
>> Jun 25 20:22:54 rolf14 dovecot: lda(rolf): Error: sieve: 
>> msgid=<1340648569.94073.YahooMailClassic at web190304.mail.sg3.yahoo.com>: 
>> failed to store into mailbox 'INBOX': BUG: Unknown internal error
>> Jun 25 20:22:54 rolf14 dovecot: lda(rolf): Error: sieve: script 
>> /home/rolf/.dovecot.sieve failed with unsuccessful implicit keep (user 
>> logfile /home/rolf/.dovecot.sieve.log may reveal additional details)
>>
>> I guess the mentioned mail is spam. However, does this tell about
>> some wrong configuration or access rights? Any indication what to
>> improve? I get such an error about every 6 minutes.
>
> lda ist the local delivery agent which seems to fail during delivery.
> "setegid(privileged) failed" looks like your lda running under a 
> specific
> user is not allowed to change to the specified group id, maybe the 
> user
> not a member of the configured group, but this is just a guess.
>
> For a deeper analysis we will need the full output of the following 
> command:
>
> doveconf -n
>
> Regards,
> Daniel

Thank you for your kind answer, Daniel.

I have installed dovecot and docecot-sieve by Debians aptitude (see 
dpkg -l blow). As far as I understand the "ps -f ax" output (see below) 
dovecot runs with root priviledges and postfix runs with its own user 
priviledges. The mbox files below /var/mail are owned by their 
respective users and have "mail" as their group, both can write, world 
can do nothing. I added every related system user to the mail group, 
also restarted postfix and dovecot.

root at rolf14:/var/mail# more /etc/group | grep mail:
mail:x:8:amavis,dovecot,clamav,postfix

As I understand it, postfix activates the lda "deliver" as user 
"postfix". Therefore it should be able to write to the mboxes at 
/var/mail. If needed dovecot can write there as well.

Hope you can find something by the following 3 outputs: 1. dovecot -n, 
2. ps -f ax, 3. dpkg -l

Kind Regards, Rolf

=========== 1 dovecot -n
root at rolf14:/var/mail# dovecot -n
# 2.1.7: /etc/dovecot/dovecot.conf
# OS: Linux 3.4-4.slh.1-aptosid-amd64 x86_64 Debian wheezy/sid
disable_plaintext_auth = no
hostname = august.de
mail_location = mbox:~/mail:INBOX=/var/mail/%u
mail_privileged_group = mail
passdb {
   args = failure_show_msg=yes
   driver = pam
}
passdb {
   args = scheme=CRYPT username_format=%u /etc/dovecot/users
   driver = passwd-file
}
plugin {
   sieve = ~/.dovecot.sieve
   sieve_default = /var/lib/dovecot/sieve/default.sieve
   sieve_dir = ~/sieve
}
postmaster_address = postmaster at august.de
protocols = " imap pop3"
sendmail_path = /usr/lib/sendmail
ssl_cert = </etc/ssl/certs/dovecot.pem
ssl_key = </etc/ssl/private/dovecot.pem
userdb {
   driver = passwd
}
userdb {
   args = username_format=%u /etc/dovecot/users
   driver = passwd-file
}
protocol lda {
   mail_plugins = sieve
}
root at rolf14:/var/mail#

===================== 2 ps -f ax
root at rolf14:/var/mail# ps -f ax | grep dovecot
root     14192 20998  0 16:08 ?        S      0:00 dovecot/auth -w
root     14258 10429  0 16:10 pts/0    R+     0:00 grep dovecot
root     20998     1  0 Jun25 ?        Ss     0:03 /usr/sbin/dovecot -c 
/etc/dovecot/dovecot.conf
dovecot  21003 20998  0 Jun25 ?        S      0:01 dovecot/anvil
root     21004 20998  0 Jun25 ?        S      0:00 dovecot/log
root     22082 20998  0 Jun25 ?        S      0:02 dovecot/config
dovecot  22083 20998  0 Jun25 ?        S      0:04 dovecot/auth

root at rolf14:/var/mail# ps -f ax | grep postfix
root      2114     1  0 Jun24 ?        Ss     0:00 /usr/sbin/saslauthd 
-a pam -c -m /var/spool/postfix/var/run/saslauthd -n 5
root      2115  2114  0 Jun24 ?        S      0:00 /usr/sbin/saslauthd 
-a pam -c -m /var/spool/postfix/var/run/saslauthd -n 5
root      2116  2114  0 Jun24 ?        S      0:00 /usr/sbin/saslauthd 
-a pam -c -m /var/spool/postfix/var/run/saslauthd -n 5
root      2117  2114  0 Jun24 ?        S      0:00 /usr/sbin/saslauthd 
-a pam -c -m /var/spool/postfix/var/run/saslauthd -n 5
root      2118  2114  0 Jun24 ?        S      0:00 /usr/sbin/saslauthd 
-a pam -c -m /var/spool/postfix/var/run/saslauthd -n 5
root     14561     1  0 16:28 ?        Ss     0:00 
/usr/lib/postfix/master
postfix  14568 14561  0 16:28 ?        S      0:00 pickup -l -t fifo -u 
-c
postfix  14569 14561  0 16:28 ?        S      0:00 qmgr -l -t fifo -u
postfix  14608 14561  0 16:32 ?        S      0:00 anvil -l -t unix -u 
-c
postfix  14645 14561  0 16:35 ?        S      0:00 smtpd -n smtp -t 
inet -u -c -o stress=
postfix  14646 14561  0 16:35 ?        S      0:00 proxymap -t unix -u
postfix  14647 14561  0 16:35 ?        S      0:00 trivial-rewrite -n 
rewrite -t unix -u -c
postfix  14648 14561  0 16:35 ?        S      0:00 cleanup -z -t unix 
-u -c
postfix  14649 14561  0 16:35 ?        S      0:00 lmtp -n smtp-amavis 
-t unix -u -c -o smtp_data_done_timeout=1200 -o disable_dns_lookups=yes
postfix  14653 14561  0 16:35 ?        S      0:00 smtpd -n 
127.0.0.1:10025 -t inet -u -c -o content_filter= -o 
local_recipient_maps= -o relay_recipient_maps= -o 
smtpd_restriction_classes= -o smtpd_client_restrictions= -o 
smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o 
smtpd_recipient_restrictions=permit_mynetworks,reject -o 
mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes
postfix  14654 14561  0 16:35 ?        S      0:00 local -t unix
root     14662 10429  0 16:35 pts/0    S+     0:00 grep postfix
root at rolf14:/var/mail#

================= 3 dpkg -l
root at rolf14:/var/mail# dpkg -l dove*
Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig 
Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
          Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: 
GROSS=schlecht)
||/ Name                          Version                       
Beschreibung
+++-=============================-=============================-==========================================================================
un  dovecot-common                <keine>                       (keine 
Beschreibung vorhanden)
ii  dovecot-core                  1:2.1.7-2                     secure 
mail server that supports mbox, maildir, dbox and mdbox mailboxes
un  dovecot-gssapi                <keine>                       (keine 
Beschreibung vorhanden)
ii  dovecot-imapd                 1:2.1.7-2                     secure 
IMAP server that supports mbox, maildir, dbox and mdbox mailboxes
un  dovecot-ldap                  <keine>                       (keine 
Beschreibung vorhanden)
un  dovecot-lmtpd                 <keine>                       (keine 
Beschreibung vorhanden)
un  dovecot-managesieved          <keine>                       (keine 
Beschreibung vorhanden)
un  dovecot-mysql                 <keine>                       (keine 
Beschreibung vorhanden)
un  dovecot-pgsql                 <keine>                       (keine 
Beschreibung vorhanden)
ii  dovecot-pop3d                 1:2.1.7-2                     secure 
POP3 server that supports mbox, maildir, dbox and mdbox mailboxes
ii  dovecot-sieve                 1:2.1.7-2                     sieve 
filters support for Dovecot
un  dovecot-solr                  <keine>                       (keine 
Beschreibung vorhanden)
un  dovecot-sqlite                <keine>                       (keine 
Beschreibung vorhanden)
root at rolf14:/var/mail#


Nachricht 1 von 12




More information about the dovecot mailing list