Re: Drop UCE instead of forwarding off-site?
- From: dont.spam.usenet@xxxxxxxxxxxxxx (Hauke Fath)
- Date: Mon, 18 May 2009 14:40:12 +0200
D. Stussy <spam@xxxxxxxxxxxxxxxx> wrote:
"Hauke Fath" <dont.spam.usenet@xxxxxxxxxxxxxx> wrote in message
news:1izrt3t.miykeusfo4c3N%dont.spam.usenet@xxxxxxxxxxxxxxxxx
I have two mail servers here in the institute. The University blocks
port 25 both ways; they run incoming mail through an address whitelist
for existing recipients and spam-tag it, then forward to local servers.
On-campus machines have to send via the outgoing mail relay, where they
recently started to filter and reject UCE, to avoid getting blacklisted.
Now, we have quite a few aliases entries which forward mail off-site:
Alumni, external staff which is associated with the local groups but
works elsewhere, students. Some of these aliases get a lot of spam -
it's properly tagged, but since it gets forwarded, the local mailfilter
doesn't see it. My machines try to forward it, the outgoing mail relay
rejects it, and it ends up in my postmaster box: We are talking about
~1000 mails/d.
"The local mail filter doesn't see it": Then your spam checking is in the
wrong place.
I don't literally check for spam. The perimeter mailin gateway filters
viruses and tags mails for their spam value; my server's LDA
(mailfilter) files positively tagged mail away to separate mailboxes for
all users to treat them as they please. Since mail forwarded off-site
via aliases entry does not see the LDA it slips through the cracks.
My question: How can I detect that a mail is to be forwarded to another
MTA, and only then, if spam headers are set, quietly discard it?
Check it with a milter at the recipient hook for a mailer other than
local - macro ${rcpt_mailer}.
From milter MIMEDefang: "For example, for local recipients, $rcpt_mailer
is likely to be 'local', while for remote recipients, it is likely to be
'esmtp'."
Thanks; that'll help me.
[...]
Also note that there is a potential race condition regarding spam
classification that uses external databases (DNSBLs, checksums, etc.). No
matter how good your front end MTA is, there's always a chance that a given
message's spam status changes after the front end has accepted it and
before the back end forwarded target MTA receives it.
Good point, but since I am running neither of the perimeter servers,
that's somebody else's tough nut to crack. ;)
hauke
--
Now without signature.
.
- References:
- Drop UCE instead of forwarding off-site?
- From: Hauke Fath
- Re: Drop UCE instead of forwarding off-site?
- From: D. Stussy
- Drop UCE instead of forwarding off-site?
- Prev by Date: Re: Drop UCE instead of forwarding off-site?
- Next by Date: Re: Emails bypassing Barracuda, going straight to Sendmail
- Previous by thread: Re: Extended 5xx code (was Re: Drop UCE instead of forwarding off-site?)
- Next by thread: Re: Drop UCE instead of forwarding off-site?
- Index(es):
Relevant Pages
|