Re: [exim] Block mails sent to a spacific address

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Vaidya nathan
Dátum:  
Címzett: awd
CC: exim-users
Tárgy: Re: [exim] Block mails sent to a spacific address


I have the following entry in my exim.conf at the start of router configuration.

reject_user:

driver = redirect

domains = example.com

allow_freeze

data = ${lookup{$local_part}lsearch{/etc/blockmail.txt}}



In blockmail.txt, i've the following entry - i need to block abc.def@???.

abc.def: :freeze:

I tried the following too, but the same error in the log.

abc.def: :freeze :





On Mon, 23 Nov 2009 18:10:18 +0530 wrote

>Heya,




Vaidya nathan wrote:

> Thanks Andrew. This seems to work for me. But i get the following error


> in the Exim log, not sure why.


> 2009-11-23 17:01:05 KTERX8-00020S-A8 == abc@??? R=reject_user


> defer (-17): error in redirect data: missing or malformed local part


> (expected word or "From prvs=1571edd48e=David.Chait@??? Mon Nov 23 23:50:36 2009

Envelope-to: exim-users@???
Received: from sophos-eg.demandtec.com ([72.5.122.99]:53065)
    by tahini.csx.cam.ac.uk with esmtp (Exim 4.71)
    (envelope-from <prvs=1571edd48e=David.Chait@???>)
    id 1NCifw-0006xw-Es
    for exim-users@???; Mon, 23 Nov 2009 23:50:36 +0000
Received: from sophos-eg.demandtec.com (localhost.localdomain [127.0.0.1])
    by localhost (Email Security Appliance) with SMTP id
    99A83193B7D1_B0B2084B
    for <exim-users@???>; Mon, 23 Nov 2009 23:53:40 +0000 (GMT)
Received: from dthqcashub01.demandtec.com (mail.demandtec.com [172.16.5.157])
    by sophos-eg.demandtec.com (Sophos Email Appliance) with ESMTP id
    B8351193B7D4_B0B207DF
    for <exim-users@???>; Mon, 23 Nov 2009 23:53:33 +0000 (GMT)
Received: from dthqexch01.demandtec.com ([172.16.27.168]) by
    dthqcashub01.demandtec.com ([172.16.5.157]) with mapi; Mon, 23 Nov 2009
    15:50:23 -0800
From: David Chait <David.Chait@???>
To: "exim-users@???" <exim-users@???>
Date: Mon, 23 Nov 2009 15:50:22 -0800
Thread-Topic: Single user redirection
Thread-Index: AcpsiK8K65Jibm30R4G+MeTDJt0eFQADrqXg
Message-ID: <5F0573F98287BD40AA9D2EFE25159EC01699B9E4D1@???>
References: <edc0e50f0911231033k5bb86f7u38808c938cba0cc8@???>
    <20091123190722.GC17481@???>
    <eea6a8ab0911231355w3e775307s21743e1b656957e6@???>
In-Reply-To: <eea6a8ab0911231355w3e775307s21743e1b656957e6@???>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Spam-Score: 0.3 (/) 
X-Spam-Status: No, score=0.3 required=5.0 tests=AWL=0.405,
    BAYES_40=-0.1 autolearn=no version=3.1.8
X-Mailman-Approved-At: Tue, 24 Nov 2009 08:03:01 +0000
Subject: [exim] Single user redirection
X-BeenThere: exim-users@???
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: A user list for the exim MTA <exim-users.exim.org>
List-Unsubscribe: <http://lists.exim.org/mailman/listinfo/exim-users>,
    <mailto:exim-users-request@exim.org?subject=unsubscribe>
List-Archive: <http://lists.exim.org/lurker/list/exim-users.html>
List-Post: <mailto:exim-users@exim.org>
List-Help: <mailto:exim-users-request@exim.org?subject=help>
List-Subscribe: <http://lists.exim.org/mailman/listinfo/exim-users>,
    <mailto:exim-users-request@exim.org?subject=subscribe>
X-List-Received-Date: Mon, 23 Nov 2009 23:50:37 -0000


All,
        I have an exim server currently set to smarthost all mail in a doma=
in to a remote relay, for a short period, I would like to forward mail (for=
 a non-local user) to an external mail account. I do not want to apply this=
 policy to the entire domain, just this one account. How would I go about d=
oing this?


Thanks,
David

******************************************************************
DemandTec Email Notice

This email and any attachments may contain confidential and/or proprietary
information and is intended solely for the use of the addressee. If you are=
not
the intended recipient we request that you notify us via email or telephone=
and
delete all copies of the message from your systems. Additionally, although
DemandTec has taken reasonable precautions to ensure the security of this
email and any attachments, we encourage you to take similar precautions and
accept no liability for any loss or damage resulting from its use.

DemandTec, 1 Circle Star Way, Suite 200, San Carlos, CA 94070, 650-226-460=
0