Dropping BCC

This is a discussion on Dropping BCC within the alt.comp.mail.exim forums, part of the Mail Servers and Related category; Hi, Is it possible to configure exim to either drop emails using BCC or, strip out the BCC header and ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.exim

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-12-2007
Andrew Taylor
 
Posts: n/a
Default Dropping BCC

Hi,

Is it possible to configure exim to either drop emails using BCC or,
strip out the BCC header and replace with an empty BCC: header.

We've just had an issue where someone circumvented our input filtering
on a script and generated a lot of spam emails (all addresses were
added to BCC). We caught it relatively quickly, but, it was just by
chance I was on the server at the time. We've now patched this hole,
but, it's like plugging a leaking boat.

We only ever send automated emails out from this box, it's not handling
any incomming emails, we know that any emails which are addressed with
a BCC, or, even multiple recipients are bogus and should be dropped.

I know strictly speaking this isn't down to the MTA, but, when we're
dealing with spam, any port in a storm.

Thanks

Andrew

Reply With Quote
  #2 (permalink)  
Old 03-12-2007
Benson Hedges
 
Posts: n/a
Default Re: Dropping BCC

On 2007-03-12, Andrew Taylor <Andrew> wrote:
> Hi,
>
> Is it possible to configure exim to either drop emails using BCC or,
> strip out the BCC header and replace with an empty BCC: header.


[snip]

This is probably not precisely what you want, but I've just implemented it
so I'm throwing it out there anyway. :)

I use one single Exim config file on my Debian server, and I wanted to
remove some clutter from the headers of some mails I receive. This works for
outgoing mails too AFAIK.

In /etc/exim4/exim4.conf.template (I put this at the top) :

system_filter = /etc/mail/exim.filter


In /etc/mail/exim.filter :

# Exim filter

headers remove "Disposition-Notification-To"
headers remove "Return-Receipt-To"
headers remove "X-MSMail-Priority"
headers remove "X-Priority"
....
....


Then :

/etc/init.d/exim4 restart



The filter file *must* start with the hash and 'Exim filter' as shown AFAIK.

Maybe you could use this to remove BCC: headers ?

Regards,

BH.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:37 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0