[Exim] Denying senders with special DNS names via regexps...…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Michael Jakscht
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [Exim] Denying senders with special DNS names via regexps... need a bit help...

Hi,

I have many users from one german ISP who are always sending spam and
viruses under our own mailaddresses (lets say from mailer-daemon).
I want to set up a rule on exim 3.36 which checks for the DNS name in every
smtp session.

Here is a header, note the From: and To: fields, both are "faked" in that
manner, that they aren't true... we don't send ourselves spam and viruses,
especially not from our mailer-daemon... ;-) *g*

---
Received: from dialin-leer-80-228-1-076.ewetel.net ([80.228.1.76]
helo=mail.vit.de)
     by mail.vit.de with smtp (Exim 3.36 #2)
     id 18azrI-0006NV-00
     for dkerwat@???; Tue, 21 Jan 2003 15:58:37 +0100
From: Mail Delivery System<MAILER-DAEMON@???>
To: dkerwat@???
Subject: Undelivered Mail Returned to Sender -Dokument
Date: Tue,21 Jan 2003 16:01:20 PM
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
MIME-Version: 1.0
Content-Type: multipart/mixed;
     boundary=giktdvm
Message-Id: <E18azrI-0006NV-00@???>
---


If via a regexp I think exim finds the part "dialin-***********.ewetel.net"
it should reject those mails.
Is this possible?
And if, how? I have no idea at the moment.
Is it done via conditions or something else?
Do I need regexps? I think so, yes?
If yes, I have no clue on regexps and I hope someone can help me out here
too ;-)

So long, thanx,
Michael