Re: [exim] Blocking names from name@ip-address

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: De Ranter, Nico
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] Blocking names from name@ip-address
> Ah. Since the smarthost won't route that, you probably don't want to
> send it anyway.


Indeed. And the smarthost(postfix) is actually responding by sending me bounce mail for every incoming mail, sigh.

I am permanently connected so I should be able to use your solution.

If I understand correctly the special_ipv4_bad part is just there so I can make some exceptions right?

A very big thanks for your help!!

with kind regards,
 
Nico De Ranter
Senior System Administrator
Technology and Software Centre Europe


Sony Belgium, bijkantoor van Sony Europe Limited.
Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium
 
Phone:
+32 (0)2 700 8641
Fax:
+32 (0)2 700 8622
E-mail:
nico.deranter@???
 
Sony Europe Limited. A company registered in England and Wales.
Registered office: The Heights, Brooklands, Weybridge, Surrey. KT13 0XW. United Kingdom



> -----Original Message-----
> From: Phil Pennock [mailto:exim-users@spodhuis.org]
> Sent: 25 August 2011 06:26
> To: De Ranter, Nico
> Cc: exim-users@???
> Subject: Re: [exim] Blocking names from name@ip-address
>
> On 2011-08-24 at 10:37 +0100, De Ranter, Nico wrote:
> > Hi Phil,
> >
> > when I try
> >
> >      exim -bt test@110.1.1.1

> >
> > I get
> >
> >     R: smarthost for test@110.1.1.1
> >     test@110.1.1.1
> >       router = smarthost, transport = remote_smtp_smarthost
> >       host x.x.x.x [x.x.x.x]

> >
> > (the server is intended as a filter in front of our main mail server)
>
> Ah. Since the smarthost won't route that, you probably don't want to
> send it anyway.
>
> Your available solutions depend upon whether or not you're permanently
> online.
>
> If you're not, then your best bet is to use an ACL rejection, based on
> $sender_address_domain, as Frank suggests.
>
> If you are permanently online, then what I've used in a smarthost setup
> is this (slightly simplified):
>
> ----------------------------8< cut here >8------------------------------
> remote_dns_verify:
> driver = dnslookup
> domains = ! +local_domains
> transport = remote_smtp
> ignore_target_hosts = +special_ipv4_bad
> same_domain_copy_routing
> verify_only
>
> smarthost:
> driver = manualroute
> domains = ! +local_domains
> transport = remote_smtp
> ignore_target_hosts = +special_ipv4_bad
> route_data = SMARTHOST_NAME
> same_domain_copy_routing
> no_verify
> ----------------------------8< cut here >8------------------------------
>
> This uses one hostlist, "special_ipv4_bad", feel free to replace as you
> see fit, that's not the important bit.
>
> The main thing is that when _verifying_, you use dnslookup to verify
> that DNS exists and the domain can be routed to. When _delivering_, you
> just send it to the smarthost.
>
> Regards,
> -Phil



************************************************************************
The information contained in this message or any of its attachments may be confidential and is intended for the exclusive use of the addressee(s). Any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited without the express permission of the sender. The views expressed in this email are those of the individual and not necessarily those of Sony or Sony affiliated companies. Sony email is for business use only.

This email and any response may be monitored by Sony to be in compliance with Sony's global policies and standards