recovered mails with attachment
list Daniel Wolf
Hi all, yesterday I started migrating from xymon 4.0.2 to 4.3.7. Everything went easy, except of one thing. Notification mails for service failure / critical I receive as 'normal' mail. Notification mails for service recovered I receive a blank mail, with message in a file called 'Mail-Attachment'. Thx in advance for any hint Daniel
list Henrik Størner
▸
On 28-04-2012 11:25, Daniel Wolf wrote:
Hi all, yesterday I started migrating from xymon 4.0.2 to 4.3.7. Everything went easy, except of one thing. Notification mails for service failure / critical I receive as 'normal' mail. Notification mails for service recovered I receive a blank mail, with message in a file called 'Mail-Attachment'.
Xymon treats all mails the same - it generates the message as text, then invokes $MAIL (set in xymonserver.cfg) to send it. If they show up different, my first guess would be that your mail client is playing games. If possible, do a "View source" (Thunderbird) to see what the mail really looks like. Regards, Henrik
list Daniel Wolf
Hi Henrik, yes, the source of the mails is different. The 'good' or plain text mails have: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit and the 'bad' ones have: Content-Type: application/octet-stream Content-Transfer-Encoding: base64 but this happens on the xymon server. I see from /var/log/maillog Apr 30 13:07:40 xymon64 sSMTP[16315]: 354 Start mail input; end with <CRLF>.<CRLF> Apr 30 13:07:40 xymon64 sSMTP[16315]: Received: by xymon64.domain.com (sSMTP sendmail emulation); Mon, 30 Apr 2012 13:07:40 +0200 Apr 30 13:07:40 xymon64 sSMTP[16315]: From: "xymon Monitor" <user-8fbb006e94d3@xymon.invalid> Apr 30 13:07:40 xymon64 sSMTP[16315]: Date: Mon, 30 Apr 2012 13:07:40 +0200 Apr 30 13:07:40 xymon64 sSMTP[16315]: To: user-afe02cd6ed72@xymon.invalid Apr 30 13:07:40 xymon64 sSMTP[16315]: Subject: Xymon server.domain.com:http recovered Apr 30 13:07:40 xymon64 sSMTP[16315]: User-Agent: Heirloom mailx 12.4 7/29/08 Apr 30 13:07:40 xymon64 sSMTP[16315]: MIME-Version: 1.0 Apr 30 13:07:40 xymon64 sSMTP[16315]: Content-Type: application/octet-stream Apr 30 13:07:40 xymon64 sSMTP[16315]: Content-Transfer-Encoding: base64 KR Daniel
list Henrik Størner
A quick search of the mail archive turned up this message: http://lists.xymon.com/pipermail/xymon/2011-September/032499.html It's your mail agent ("Heirloom mailx 12.4", according to your log) that inserts the "Content-type: application/octet-stream" header, that causes your mail reading program to treat the message as an attachment. Fixing it is outside Xymon. Regards, Henrik On Mon, 30 Apr 2012 13:28:20 +0200, Daniel Wolf <user-43aedf3281f9@xymon.invalid>
▸
wrote:Hi Henrik, yes, the source of the mails is different. The 'good' or plain text mails have: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit and the 'bad' ones have: Content-Type: application/octet-stream Content-Transfer-Encoding: base64 but this happens on the xymon server. I see from /var/log/maillog Apr 30 13:07:40 xymon64 sSMTP[16315]: 354 Start mail input; end with <CRLF>.<CRLF> Apr 30 13:07:40 xymon64 sSMTP[16315]: Received: by xymon64.domain.com (sSMTP sendmail emulation); Mon, 30 Apr 2012 13:07:40 +0200 Apr 30 13:07:40 xymon64 sSMTP[16315]: From: "xymon Monitor" <user-8fbb006e94d3@xymon.invalid> Apr 30 13:07:40 xymon64 sSMTP[16315]: Date: Mon, 30 Apr 2012 13:07:40
+0200
Apr 30 13:07:40 xymon64 sSMTP[16315]: To: user-afe02cd6ed72@xymon.invalid Apr 30 13:07:40 xymon64 sSMTP[16315]: Subject: Xymon server.domain.com:http recovered Apr 30 13:07:40 xymon64 sSMTP[16315]: User-Agent: Heirloom mailx 12.4 7/29/08 Apr 30 13:07:40 xymon64 sSMTP[16315]: MIME-Version: 1.0 Apr 30 13:07:40 xymon64 sSMTP[16315]: Content-Type: application/octet-stream Apr 30 13:07:40 xymon64 sSMTP[16315]: Content-Transfer-Encoding: base64 KR Daniel