Sieve, Postfix and exec() sendmail

Simon Matter simon.matter at invoca.ch
Fri Sep 28 18:17:04 EDT 2007


> Based on what I've been reading around, I'm not sure why I'd be
> throwing an exit code of 75.
> http://www.unix.org.ua/orelly/networking/sendmail/ch36_05.htm

I just hope the postfix sendmail binary uses the same exit codes than the
sendmail's sendmail. So it means you cyrus couldn't send mail using it's
sendmail call (which is using postfix's sendmail in your case).

What happens if you change the sieve script so that the mail is sent to an
external account which is not on your server. Does it work then?

Simon

>
> Output
>
> [root at kane ~]# rpm -Vf $(readlink -f /usr/sbin/sendmail)
> S.5....T c /etc/postfix/main.cf
> [root at kane ~]# rpm -V cyrus-imapd
> S.5....T c /etc/cyrus.conf
> S.5....T c /etc/imapd.conf
> [root at kane ~]#
>
> On 9/27/07, Simon Matter <simon.matter at invoca.ch> wrote:
>> > Hi Alain,
>> >
>> > I am running RHEL5; I used prebuilt rpms from RedHat. I did not change
>> > anything recently. Postfix is not running in chroot.
>> >
>> > [root at kane ~]# ls -ld /var/spool/imap/stage./
>> > drwx------ 2 cyrus mail 4096 Sep 27 10:04 /var/spool/imap/stage./
>> > [root at kane ~]#
>> >
>> > Chris
>> >
>> > On 9/27/07, Alain Spineux <aspineux at gmail.com> wrote:
>> >> 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
>>
>> Your sendmail call has terminated with exit code 75, try to find out
>> what
>> 75 means.
>>
>> Can you show us the output of the following commands:
>>
>> rpm -Vf $(readlink -f /usr/sbin/sendmail)
>>
>> rpm -V cyrus-imapd
>>
>> Simon
>>
>> >> >
>> >> > 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
>> >>
>> > ----
>> > 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
>> >
>>
>


More information about the Info-cyrus mailing list