Re: [exim] discard email forwarded to aol.com?

Góra strony
Delete this message
Reply to this message
Autor: Erin Spiceland
Data:  
Dla: Exim-users
Temat: Re: [exim] discard email forwarded to aol.com?
I'm guessing the "250 OK" means the condition allowed the email through?

2008-04-10 20:04:08 [21731] 1Jk7gW-0005eV-BZ <= erin@???
H=smtp.knology.net [1.1.1.1]:52655 I=[2.2.2.2]:25 P=esmtps
X=TLSv1:AES256-SHA:256 CV=no S=788 id=47FEB906.4020202@??? T="test"
from <erin@???> for aol@???
2008-04-10 20:04:08 [21731] SMTP connection from smtp.knology.net
[1.1.1.1]:52655 I=[2.2.2.2]:25 closed by QUIT
2008-04-10 20:04:08 [21743] cwd=/var/spool/exim 3 args: /usr/sbin/exim
-Mc 1Jk7gW-0005eV-BZ
2008-04-10 20:04:09 [21757] 1Jk7gW-0005eV-BZ Remote host
mailin-01.mx.aol.com [3.3.3.3] closed connection in response to initial
connection
2008-04-10 20:04:12 [21743] 1Jk7gW-0005eV-BZ => xxxxx@???
(aol@???) <aol@???> F=<erin@???> P=<erin@???>
R=lookuphost T=remote_smtp S=1171 H=mailin-01.mx.aol.com [4.4.4.4]:25
C="250 OK" QT=4s DT=3s


Odhiambo Washington wrote:
> On Thu, Apr 10, 2008 at 6:01 AM, Erin Spiceland <erin@???> wrote:
>> Can anyone help me with adding this condition to my userforward router,
>> or point me to a resource online that will provide enough instruction
>> for me to construct it myself? I just want to make sure that the email
>> address in .forward that the email address is being forwarded to does
>> not contain "aol.com." This is my current router:
>
>
> Try this as a replacement for your userforward router, and please do
> some dry runs I have not tested this!!
>
> userforward:
>    driver = redirect
>    allow_filter
>    allow_fail
>    condition  = ${if match {$h_to:}{(aol.com}{0}{1}}
>    check_ancestor
>    check_local_user
>    domains = ! +user_domains
>    no_expn
>    file = $home/.forward
>    file_transport = address_file
>    pipe_transport = address_pipe
>    reply_transport = address_reply
>    no_verify

>
> To test, you simply put a forwarding address like any other user and
> then send e-mail to the user and watch the logs. I am NOT responsible
> if your system catches fire!
>