[rt-users] sendmail error (exited with code 75) - RHEL6

Raphaël Berlamont raphael.berlamont at raphux.com
Wed Sep 5 13:21:26 EDT 2012


2012/9/4 Thomas Sibley <trs at bestpractical.com>

> Unrelated notes about your template below.
>
> Hmm.  Can you wrap /usr/sbin/sendmail with a tiny shell script that
> tee's the input somewhere else and then passes it through to the real
> sendmail?
>
> mv -v /usr/sbin/sendmail{,.real}
> cat /usr/sbin/sendmail
> #!/bin/bash
> exec tee -a /tmp/sendmail-stdin | /usr/sbin/sendmail.real "$@"
> ^D
> chmod a+rx /usr/sbin/sendmail
>

Well! Very, very strange behaviour that I can't explain : the
/tmp/sendmail-stdin filled by tee is fulfilled all the time, but when I
encounter the bug, nothing appear in the file!

For example, at the very same moment, in /var/log/maillog, I have the
following :
============
Sep  5 19:11:10 dgilx202 postfix/smtpd[7412]: connect from
unknown[10.223.2.22]
Sep  5 19:11:10 dgilx202 postfix/smtpd[7412]: 0F18F25E10:
client=unknown[10.223.2.22]
Sep  5 19:11:10 dgilx202 postfix/cleanup[7416]: 0F18F25E10: message-id=<
4D44666F4F0B2248A2C57DD0AF573F930ECD1D21 at PLA122VS151.fr.myfirm.org>
Sep  5 19:11:10 dgilx202 postfix/qmgr[1793]: 0F18F25E10: from=<
raphael.berlamont at myfirm.fr>, size=1803, nrcpt=1 (queue active)
Sep  5 19:11:10 dgilx202 postfix/smtpd[7412]: disconnect from
unknown[10.223.2.22]
Sep  5 19:11:10 dgilx202 postfix/sendmail[7441]: fatal: rt-test at myfirm.fr(48):
No recipient addresses found in message header
Sep  5 19:11:10 dgilx202 postfix/local[7417]: 0F18F25E10: to=<
RT-Test at rt.myfirm.com>, relay=local, delay=0.6, delays=0.02/0/0/0.58,
dsn=2.0.0, status=sent (delivered to command: /opt/rt4/bin/rt-mailgate
--queue 'Test Queue' --action correspond --url https://rt.myfirm.com)
Sep  5 19:11:10 dgilx202 postfix/qmgr[1793]: 0F18F25E10: removed
============

But nothing appeared in "/tmp/sendmail-stdin"...

I've done the test 3 times, same result : logs appears in
"/var/log/maillog", and nothing in "/tmp/sendmail-stdin". I don't even
understand how can this be possible...



>  On 09/04/2012 09:30 AM, Raphaël Berlamont wrote:
> > New template i've set up, very basic though (sorry, French here ;)) :
> > =================
> > Subject: {$Ticket->Subject} : pris en charge par {
> $Ticket->OwnerObj->Name }
> > Bonjour,
>
> The lack of a blank line between your header block (containing Subject:
> ...) and the body of your message "Bonjour," is going to cause problems.
>  "Bonjour," is going to be parsed as a header.  You should put a blank
> line between the two lines above.
>

Thank you, I corrected this.

-- 
Raphaël Berlamont
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20120905/c1bbc78b/attachment.htm>


More information about the rt-users mailing list