Broken pipes and single quotes



Hi all,

I (or at least someone) have got a strange problem:
Once in a while my ever smooth running mail relay (sending to and from our
internal Exchange server) starts creating a queue and refuses more or less to
relay the email to the Exchange server. The emails are deferred, and the log
files show broken pipes.

Someone suggested the Exchange server might be the perp, but I found a
specific email (from a specific person) to be the bad guy (gal).

That email shows a large number of recipients on the To: header (approx. 30),
and the thingy that refuses this message to be relayed are the single quotes
in thos email addresses:

To: someone@xxxxxxxxxxxxx <'someone@xxxxxxxxxxxxx'>,
someonediff@xxxxxxxxxxxxx <'someonediff@... (you get the picture).

Whenever I change all the quotes to nothing in the qf-file, the messages
relays, and so do all other messages in the queue.

I could ask the sender to do something about this, however according to our
secretary she's a b*tch, so this is not an option.

Is there some way I can sanitize these kind of headers?

My mail setup:
Sendmail 8.14.3
Mimedefang (with spamassassin and clamav)
milter-greylist
all on FreeBSD 6.4

TIA

Peter

--
http://www.boosten.org

Mail: peter at boosten dot org
#include <std_disclaimer.h>
.



Relevant Pages

  • Re: PHP Mail() and Exchange Server
    ... The exchange server is apparantly set to DENY email relays. ... In other words it does not accept mails from others that its own domains, to prevent people using it for mass spam relay. ...
    (php.general)
  • Re: Unable to relay to a.asn.au
    ... Okay, I found three policies, so I've added the domains to another policy, ... mail gets refusal to relay. ... it should accept mail for several internet domains? ... Our exchange server answers as exchange.c.net, ...
    (microsoft.public.exchange.admin)
  • RE: SPAM via SMTP? RPC?
    ... anyone who can connect to either a WiFi access point or plug ... in to a network jack can relay (DHCP will assign them an IP address that will ... >> Have you considered the possibility of an open WiFi access point? ... >>> somebody has sent out a ton of spam using our Exchange server. ...
    (microsoft.public.exchange.admin)
  • Re: Can not sent mail using blat (to Exchange)
    ... Relay restrictions and added the ip's of the Exchange server and the DC. ... When I try blat it says that the mail server does not like to TO field. ... However in the new setup I can not get blat to work. ...
    (microsoft.public.exchange.admin)
  • exim4 config - what EXACTLY is "final destination"
    ... running debian etch w/ exim 4. ... to a recipient listed in a text file, on to my exchange server. ... that this sys will relay for. ... My WHOLE initial setup is a freaking guess!!!! ...
    (Debian-User)