DAT attachments?
list Eric Jacobs
Recently noved our Xymon server from a vm running CentOS 5.8 to physical server running CentOS 6.3. Most things work correctly but I'm seeing some of the email alerts having .dat attachments. Anyone know why, and how to fix this? -- Eric Jacobs Thomas Publishing Company Infrastructure and operations Information Technology Group Phone: XXX-XXX-XXXX Email: user-2ad24e73f3d4@xymon.invalid
list Frederik Reenders
Hi,
I think this is the issue(from the man page of mailx on centos 6.3:
"Mailx expects input text to be in Unix format, with lines sepa-
rated by newline (^J, \n) characters only. Non-Unix text files
that use carriage return (^M, \r) characters in addition will be
treated as binary data; to send such files as text, strip these
characters e. g. by
tr -d '\015' <input | mailx . . .
or fix the tools that generate them."
There is a \r carriage return in the alert message. I noticed it before but got no reply on the list.
In previous mailx versions mailx did not convert it to binary data.
Regards,
Frederik Reenders
University of Twente
▸
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Eric Jacobs
Sent: woensdag 12 december 2012 21:52
To: xymon at xymon.com
Subject: [Xymon] DAT attachments?
Recently noved our Xymon server from a vm running CentOS 5.8 to physical server running CentOS 6.3. Most things work correctly but I'm seeing some of the email alerts having .dat attachments. Anyone know why, and how to fix this?
--
Eric Jacobs
Thomas Publishing Company
Infrastructure and operations
Information Technology Group
Phone: XXX-XXX-XXXX
Email: user-2ad24e73f3d4@xymon.invalid<mailto:user-2ad24e73f3d4@xymon.invalid>
list Frederik Reenders
I only noticed this .dat attachement in the smtp test alert by the way. Regards, Frederik
▸
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of user-cc7d361f1cad@xymon.invalid
Sent: donderdag 13 december 2012 9:50
To: user-2ad24e73f3d4@xymon.invalid; xymon at xymon.com
Subject: Re: [Xymon] DAT attachments?
Hi,
I think this is the issue(from the man page of mailx on centos 6.3:
"Mailx expects input text to be in Unix format, with lines sepa-
rated by newline (^J, \n) characters only. Non-Unix text files
that use carriage return (^M, \r) characters in addition will be
treated as binary data; to send such files as text, strip these
characters e. g. by
tr -d '\015' <input | mailx . . .
or fix the tools that generate them."
There is a \r carriage return in the alert message. I noticed it before but got no reply on the list.
In previous mailx versions mailx did not convert it to binary data.
Regards,
Frederik Reenders
University of Twente
From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [mailto:xymon-bounces at xymon.com] On Behalf Of Eric Jacobs
Sent: woensdag 12 december 2012 21:52
To: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: [Xymon] DAT attachments?
Recently noved our Xymon server from a vm running CentOS 5.8 to physical server running CentOS 6.3. Most things work correctly but I'm seeing some of the email alerts having .dat attachments. Anyone know why, and how to fix this?
--
Eric Jacobs
Thomas Publishing Company
Infrastructure and operations
Information Technology Group
Phone: XXX-XXX-XXXX
Email: user-2ad24e73f3d4@xymon.invalid<mailto:user-2ad24e73f3d4@xymon.invalid>
list Francois Herbert
All my HTTP recovered alerts have attachments which just contain the output of the http test, not sure why, I've just put up with it…. (xymon-4.3.10 running on rhel6.2 which uses mailx as mail)
▸
On 13/12/2012, at 11:08 PM, user-cc7d361f1cad@xymon.invalid<mailto:user-cc7d361f1cad@xymon.invalid> wrote:
I only noticed this .dat attachement in the smtp test alert by the way.
Regards,
Frederik
From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [mailto:xymon-bounces at xymon.com<mailto:user-2ce0a6b6a2e5@xymon.invalid>] On Behalf Of user-cc7d361f1cad@xymon.invalid<mailto:user-cc7d361f1cad@xymon.invalid>
Sent: donderdag 13 december 2012 9:50
To: user-2ad24e73f3d4@xymon.invalid<mailto:user-2ad24e73f3d4@xymon.invalid>; xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] DAT attachments?
Hi,
I think this is the issue(from the man page of mailx on centos 6.3:
“Mailx expects input text to be in Unix format, with lines sepa-
rated by newline (^J, \n) characters only. Non-Unix text files
that use carriage return (^M, \r) characters in addition will be
treated as binary data; to send such files as text, strip these
characters e. g. by
tr -d ’\015’ <input | mailx . . .
or fix the tools that generate them.”
There is a \r carriage return in the alert message. I noticed it before but got no reply on the list.
In previous mailx versions mailx did not convert it to binary data.
Regards,
Frederik Reenders
University of Twente
From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [mailto:xymon-bounces at xymon.com] On Behalf Of Eric Jacobs
Sent: woensdag 12 december 2012 21:52
To: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: [Xymon] DAT attachments?
Recently noved our Xymon server from a vm running CentOS 5.8 to physical server running CentOS 6.3. Most things work correctly but I'm seeing some of the email alerts having .dat attachments. Anyone know why, and how to fix this?
--
Eric Jacobs
Thomas Publishing Company
Infrastructure and operations
Information Technology Group
Phone: XXX-XXX-XXXX
Email: user-2ad24e73f3d4@xymon.invalid<mailto:user-2ad24e73f3d4@xymon.invalid>
list Scott Pfister
We had similar problem about a year ago. We moved our xymon server from fedora core 3 to SLES 11. Fedora used mail and SLES 11 mail is linked to mailx. The windows clients were sending carriage returns in the status ^M (carriage return). The problem occured on SuSe server but not on redhat server, because mailx expects input text to be in Unix format, with lines separated by *newline* (^J, \n) characters only. Non-Unix text files that use *carriage return* (^M, \r) characters in addition will be treated as binary data. Hence the reason we get notifications that showed up as attachments. Also explains why our AIX servers didn't have the problem and the windows servers did. We tried creating a filter by setting MAILC="tr -d '\015' but had problems. We didn't spend much time on it. We switched to mutt. MAILC="/usr/local/bin/mutt". Problem went away. On Thu, Dec 13, 2012 at 2:04 PM, Herbert, Francois
▸
<user-796032f63edb@xymon.invalid>wrote:
All my HTTP recovered alerts have attachments which just contain the
output of the http test, not sure why, I've just put up with it….
(xymon-4.3.10 running on rhel6.2 which uses mailx as mail)
On 13/12/2012, at 11:08 PM, user-cc7d361f1cad@xymon.invalid wrote:
I only noticed this .dat attachement in the smtp test alert by the way.*
***
Regards,****
Frederik****
*From:* xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] *On
Behalf Of *user-cc7d361f1cad@xymon.invalid
*Sent:* donderdag 13 december 2012 9:50
*To:* user-2ad24e73f3d4@xymon.invalid; xymon at xymon.com
*Subject:* Re: [Xymon] DAT attachments?****
** **
Hi,****
I think this is the issue(from the man page of mailx on centos 6.3:****
“Mailx expects input text to be in Unix format, with lines sepa-****
rated by newline (^J, \n) characters only. Non-Unix text files**
**
that use carriage return (^M, \r) characters in addition will be**
**
treated as binary data; to send such files as text, strip these**
**
characters e. g. by****
tr -d ’\015’ <input | mailx . . .****
or fix the tools that generate them.”****
There is a \r carriage return in the alert message. I noticed it before
but got no reply on the list.****
In previous mailx versions mailx did not convert it to binary data.****
Regards,****
Frederik Reenders****
University of Twente****
*From:* xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com<xymon-bounces at xymon.com>
▸
] *On Behalf Of *Eric Jacobs
*Sent:* woensdag 12 december 2012 21:52
*To:* xymon at xymon.com
*Subject:* [Xymon] DAT attachments?****
** **
Recently noved our Xymon server from a vm running CentOS 5.8 to physical
server running CentOS 6.3. Most things work correctly but I'm seeing some
of the email alerts having .dat attachments. Anyone know why, and how to
fix this?
****
** **
--
Eric Jacobs****
Thomas Publishing Company****
Infrastructure and operations****
Information Technology Group****
Phone: XXX-XXX-XXXX****
Email: user-2ad24e73f3d4@xymon.invalid****
** **
list Tom Moore
Same issue here. I configured this (plus nail allows you to change the FROM address so users replies go to someone instead of a black hole) MAILC="/usr/bin/tr -d '\\015' | /usr/bin/nail -r 'Xymon <user-06108c307abb@xymon.invalid>'" # Command used to send an e-mail with no subject MAIL="$MAILC -s" # Command used to send an e-mail with a subject
▸
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Scott Pfister
Sent: Friday, December 14, 2012 8:01 AM
To: xymon at xymon.com
Subject: Re: [Xymon] DAT attachments?
We had similar problem about a year ago. We moved our xymon server from fedora core 3 to SLES 11. Fedora used mail and SLES 11 mail is linked to mailx. The windows clients were sending carriage returns in the status ^M (carriage return). The problem occured on SuSe server but not on redhat server, because mailx expects input text to be in Unix format, with lines separated by newline (^J, \n) characters only. Non-Unix text files that use carriage return (^M, \r) characters in addition will be treated as binary data. Hence the reason we get notifications that showed up as attachments. Also explains why our AIX servers didn't have the problem and the windows servers did. We tried creating a filter by setting MAILC="tr -d '\015' but had problems. We didn't spend much time on it. We switched to mutt. MAILC="/usr/local/bin/mutt". Problem went away.
On Thu, Dec 13, 2012 at 2:04 PM, Herbert, Francois <user-796032f63edb@xymon.invalid<mailto:user-796032f63edb@xymon.invalid>> wrote:
All my HTTP recovered alerts have attachments which just contain the output of the http test, not sure why, I've just put up with it....
(xymon-4.3.10 running on rhel6.2 which uses mailx as mail)
On 13/12/2012, at 11:08 PM, user-cc7d361f1cad@xymon.invalid<mailto:user-cc7d361f1cad@xymon.invalid> wrote:
I only noticed this .dat attachement in the smtp test alert by the way.
Regards,
Frederik
From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [mailto:xymon-<mailto:xymon->user-2ce0a6b6a2e5@xymon.invalid<mailto:user-2ce0a6b6a2e5@xymon.invalid>] On Behalf Of user-cc7d361f1cad@xymon.invalid<mailto:user-cc7d361f1cad@xymon.invalid>
Sent: donderdag 13 december 2012 9:50
To: user-2ad24e73f3d4@xymon.invalid<mailto:user-2ad24e73f3d4@xymon.invalid>; xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] DAT attachments?
Hi,
I think this is the issue(from the man page of mailx on centos 6.3:
"Mailx expects input text to be in Unix format, with lines sepa-
rated by newline (^J, \n) characters only. Non-Unix text files
that use carriage return (^M, \r) characters in addition will be
treated as binary data; to send such files as text, strip these
characters e. g. by
tr -d '\015' <input | mailx . . .
or fix the tools that generate them."
There is a \r carriage return in the alert message. I noticed it before but got no reply on the list.
In previous mailx versions mailx did not convert it to binary data.
Regards,
Frederik Reenders
University of Twente
From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [mailto:xymon-bounces at xymon.com] On Behalf Of Eric Jacobs
Sent: woensdag 12 december 2012 21:52
To: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: [Xymon] DAT attachments?
Recently noved our Xymon server from a vm running CentOS 5.8 to physical server running CentOS 6.3. Most things work correctly but I'm seeing some of the email alerts having .dat attachments. Anyone know why, and how to fix this?
--
Eric Jacobs
Thomas Publishing Company
Infrastructure and operations
Information Technology Group
Phone: XXX-XXX-XXXX<tel:XXX-XXX-XXXX>
Email: user-2ad24e73f3d4@xymon.invalid<mailto:user-2ad24e73f3d4@xymon.invalid>
list Ryan Novosielski
At least on Solaris' mailx command, you can set the from address with -r if I'm not mistaken. Interesting info to file away though as I'm sure down the road our Solaris will be replaced by RHEL.
▸
From: Tom Moore [mailto:user-09591bca676f@xymon.invalid]
Sent: Friday, December 14, 2012 09:56 AM
To: xymon at xymon.com <xymon at xymon.com>
Subject: Re: [Xymon] DAT attachments?
Same issue here. I configured this (plus nail allows you to change the FROM address so users replies go to someone instead of a black hole)
MAILC="/usr/bin/tr -d '\\015' | /usr/bin/nail -r 'Xymon <user-06108c307abb@xymon.invalid>'" # Command used to send an e-mail with no subject
MAIL="$MAILC -s" # Command used to send an e-mail with a subject
From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Scott Pfister
Sent: Friday, December 14, 2012 8:01 AM
To: xymon at xymon.com
Subject: Re: [Xymon] DAT attachments?
We had similar problem about a year ago. We moved our xymon server from fedora core 3 to SLES 11. Fedora used mail and SLES 11 mail is linked to mailx. The windows clients were sending carriage returns in the status ^M (carriage return). The problem occured on SuSe server but not on redhat server, because mailx expects input text to be in Unix format, with lines separated by newline (^J, \n) characters only. Non-Unix text files that use carriage return (^M, \r) characters in addition will be treated as binary data. Hence the reason we get notifications that showed up as attachments. Also explains why our AIX servers didn't have the problem and the windows servers did. We tried creating a filter by setting MAILC="tr -d '\015' but had problems. We didn't spend much time on it. We switched to mutt. MAILC="/usr/local/bin/mutt". Problem went away.
On Thu, Dec 13, 2012 at 2:04 PM, Herbert, Francois <user-796032f63edb@xymon.invalid<mailto:user-796032f63edb@xymon.invalid>> wrote:
All my HTTP recovered alerts have attachments which just contain the output of the http test, not sure why, I've just put up with it….
(xymon-4.3.10 running on rhel6.2 which uses mailx as mail)
On 13/12/2012, at 11:08 PM, user-cc7d361f1cad@xymon.invalid<mailto:user-cc7d361f1cad@xymon.invalid> wrote:
I only noticed this .dat attachement in the smtp test alert by the way.
Regards,
Frederik
From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [mailto:xymon-<mailto:xymon->user-2ce0a6b6a2e5@xymon.invalid<mailto:user-2ce0a6b6a2e5@xymon.invalid>] On Behalf Of user-cc7d361f1cad@xymon.invalid<mailto:user-cc7d361f1cad@xymon.invalid>
Sent: donderdag 13 december 2012 9:50
To: user-2ad24e73f3d4@xymon.invalid<mailto:user-2ad24e73f3d4@xymon.invalid>; xymon at xymon.com<mailto:xymon at xymon.com>
Subject: Re: [Xymon] DAT attachments?
Hi,
I think this is the issue(from the man page of mailx on centos 6.3:
“Mailx expects input text to be in Unix format, with lines sepa-
rated by newline (^J, \n) characters only. Non-Unix text files
that use carriage return (^M, \r) characters in addition will be
treated as binary data; to send such files as text, strip these
characters e. g. by
tr -d ’\015’ <input | mailx . . .
or fix the tools that generate them.”
There is a \r carriage return in the alert message. I noticed it before but got no reply on the list.
In previous mailx versions mailx did not convert it to binary data.
Regards,
Frederik Reenders
University of Twente
From: xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com> [mailto:xymon-bounces at xymon.com] On Behalf Of Eric Jacobs
Sent: woensdag 12 december 2012 21:52
To: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: [Xymon] DAT attachments?
Recently noved our Xymon server from a vm running CentOS 5.8 to physical server running CentOS 6.3. Most things work correctly but I'm seeing some of the email alerts having .dat attachments. Anyone know why, and how to fix this?
--
Eric Jacobs
Thomas Publishing Company
Infrastructure and operations
Information Technology Group
Phone: XXX-XXX-XXXX<tel:XXX-XXX-XXXX>
Email: user-2ad24e73f3d4@xymon.invalid<mailto:user-2ad24e73f3d4@xymon.invalid>