Sieve, Postfix and exec() sendmail

Alain Spineux aspineux at gmail.com
Thu Sep 27 18:48:46 EDT 2007


Did you change something recently ?
Is postfix running chrooted ?

what about
# ls -ld /var/spool/imap/stage./
?

Regards

Alain

On 9/27/07, Chris U <chris.uyehara at gmail.com> wrote:
> Hi,
>
> I've done some searching on the list about issues with Sieve
> performing rejects, redirects, and vacations using the binary
> sendmail. Below are some links from cyrus mailing lists.
>
> Link: http://tinyurl.com/2mkp5n
> Link: http://tinyurl.com/2rylzs
> Link: http://tinyurl.com/2k2stg
>
> Any help would be greatly appreciated!
>
> Scenario: User1 has a sieve script that keeps a copy of the received
> message and forwards mail to User2.
>
> Problem: FATAL: couldn't exec() sendmail
>
> Outcome: User2 mail not delivered. 100% CPU usage. Any further
> received mail is stalled in postfix queue and not delivered to
> mailbox.
>
> Imapd.conf
> configdirectory: /var/lib/imap
> partition-default: /var/spool/imap
> admins: cyrus
> sievedir: /var/lib/imap/sieve
> sendmail: /usr/sbin/sendmail
> hashimapspool: true
> sasl_pwcheck_method: saslauthd
> sasl_mech_list: PLAIN
> tls_cert_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
> tls_key_file: /etc/pki/cyrus-imapd/cyrus-imapd.pem
> tls_ca_file: /etc/pki/tls/certs/ca-bundle.crt
> lmtp_downcase_rcpt: yes
> sieve_maxscriptsize: 32
>
> [root at kane]# ls -al sendmail
> -rwxr-xr-x 1 root root 201784 Sep  1  2006 /usr/sbin/sendmail
>
> Logs
>
> Sep 27 09:52:22 kane postfix/smtpd[8597]: connect from unknown[10.100.10.160]
> Sep 27 09:52:31 kane postfix/smtpd[8597]: 147C030E81BB:
> client=unknown[10.100.10.160]
> Sep 27 09:52:35 kane postfix/smtpd[8597]: C8DB930E81BB:
> client=unknown[10.100.10.160]
> Sep 27 09:52:35 kane postfix/cleanup[8600]: C8DB930E81BB:
> message-id=<20070927195235.C8DB930E81BB at tipg.net>
> Sep 27 09:52:35 kane postfix/qmgr[6988]: C8DB930E81BB:
> from=<chrisu at tipg.net>, size=346, nrcpt=1 (queue active)
> Sep 27 09:52:35 kane lmtpunix[8603]: accepted connection
> Sep 27 09:52:35 kane lmtpunix[8603]: lmtp connection preauth'd as postman
> Sep 27 09:52:35 kane master[8629]: about to exec /usr/lib/cyrus-imapd/lmtpd
> Sep 27 09:52:35 kane lmtpunix[8629]: executed
> Sep 27 09:52:35 kane lmtpunix[8603]: duplicate_check:
> <20070927195235.C8DB930E81BB at tipg.net> user.user1           0
> Sep 27 09:52:35 kane lmtpunix[8603]: duplicate_check:
> <20070927195235.C8DB930E81BB at tipg.net> user.user1           0
> Sep 27 09:52:35 kane lmtpunix[8603]: mystore: starting txn 2147483663
> Sep 27 09:52:35 kane lmtpunix[8603]: mystore: committing txn 2147483663
> Sep 27 09:52:35 kane lmtpunix[8603]: duplicate_mark:
> <20070927195235.C8DB930E81BB at tipg.net> user.user1           1190922755
> 0
> Sep 27 09:52:35 kane lmtpunix[8603]: Delivered:
> <20070927195235.C8DB930E81BB at tipg.net> to mailbox: user.user1
> Sep 27 09:52:35 kane lmtpunix[8603]: duplicate_check:
> <20070927195235.C8DB930E81BB at tipg.net>-user2 at tipg.net .user1.sieve.
>     0
> Sep 27 09:52:35 kane lmtpunix[8630]: FATAL: couldn't exec() sendmail
> Sep 27 09:52:35 kane lmtpunix[8603]: sieve runtime error for user1 id
> <20070927195235.C8DB930E81BB at tipg.net>: Redirect: Sendmail process
> terminated normally, exit status 75
> Sep 27 09:52:35 kane lmtpunix[8603]: DBERROR db4: Locker does not exist
> Sep 27 09:52:35 kane lmtpunix[8603]: DBERROR: error fetching
> <20070927195235.C8DB930E81BB at tipg.net>: Invalid argument
> Sep 27 09:52:35 kane lmtpunix[8603]: duplicate_check: error looking up
> <20070927195235.C8DB930E81BB at tipg.net>/user.user1: cyrusdb error
> Sep 27 09:52:35 kane lmtpunix[8603]: duplicate_check:
> <20070927195235.C8DB930E81BB at tipg.net> user.user1           0
> Sep 27 09:52:35 kane lmtpunix[8603]: IOERROR: opening
> /var/spool/imap/stage./8603-1190922755-0: No such file or directory
> Sep 27 09:52:35 kane postfix/lmtp[8602]: C8DB930E81BB:
> to=<user1 at tipg.net>, relay=tipg.net[/var/lib/imap/socket/lmtp],
> delay=0.07, delays=0.05/0/0.01/0.01, dsn=4.3.0, status=deferred (host
> tipg.net[/var/lib/imap/socket/lmtp] said: 421 4.3.0 lmtpd: couldn't
> exec() sendmail (in reply to end of DATA command))
> Sep 27 09:52:35 kane lmtpunix[8603]: IOERROR: error unlinking file
> /var/spool/imap/stage./8603-1190922755-0: No such file or directory
> Sep 27 09:52:36 kane postfix/smtpd[8597]: disconnect from unknown[10.100.10.160]
> ----
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>


-- 
Alain Spineux
aspineux gmail com
May the sources be with you


More information about the Info-cyrus mailing list