2012/9/4 Thomas Sibley <[email protected]>

> 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=<
4d44666f4f0b2248a2c57dd0af573f930ecd1...@pla122vs151.fr.myfirm.org>
Sep  5 19:11:10 dgilx202 postfix/qmgr[1793]: 0F18F25E10: from=<
[email protected]>, 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: [email protected](48):
No recipient addresses found in message header
Sep  5 19:11:10 dgilx202 postfix/local[7417]: 0F18F25E10: to=<
[email protected]>, 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

Reply via email to