Re: [exim] mail routing depending on from- or even reply-to …

Etusivu
Poista viesti
Vastaa
Lähettäjä: Todd Lyons
Päiväys:  
Vastaanottaja: Thomas Stein
Kopio: exim-users
Aihe: Re: [exim] mail routing depending on from- or even reply-to header possible?
You can drill down your requirements even further. You can require
that it comes from a specific IP address before you'll consider the
header. You can require smtp auth AND from a specific IP address
before you'll consider the header. You can require smtp auth AND from
a specific IP address and REJECT any emails that come without the
header.

You need to effectively communicate to the customer that if they
manage to send out spam that harms your outbound IP reputation that
they will be charged a fee per message. Get a deposit up front. Sign
a contract that says they forfeit the deposit if they send out spam.

You're only limited by how uncomfortable you are willing to make them
due to the pressure they are putting on you to change your
infrastructure.

...Todd


On Fri, Dec 20, 2013 at 4:27 AM, Thomas Stein <himbeere@???> wrote:
> Am 20.12.13 12:56, schrieb Heiko Schlittermann:
>> Hi,
>>
>> Thomas Stein <himbeere@???> (Do 19 Dez 2013 15:11:04 CET):
>>> Am 19.12.13 14:07, schrieb Thomas Stein:
>>> > Hello.
>>> >
>>> > I have a strange customer request. The cusomer wishes to use differnet
>>> > smart hosts depending on from adress. Is this possible? My first try is
>>> > not sooo successfull. Maybe someone did this in the past or has an idea?
>>> > Thank you very much.
>>>
>>> Found a way:
>>>
>>> even_smarter_route:
>>>         driver = manualroute
>>>         #debug_print = "R: smarter_route for $domain"
>>>         route_data =
>>> ${lookup{$header_From:}lsearch{/etc/exim/smarter_route}}
>>>         transport = remote_smtp

>>>
>>> This works. However changing $header_From: to $header_X-Envelope-To:
>>> does not. Still trying.
>>
>> I'd not rely on header_from, it may contain arbitrary data, even
>> multiple addresses. Iff you really need this header, you should use
>>
>>     ${address:$h_from:}

>>
>> or
>>     ${extract{1}{:}{${addresses:$h_from:}}}

>>
>> But this is not safe anyway.
>>
>> I'd rely on $sender_address.
>
> Well i think this is a good idea but you know, if the customer.....
>
> thank you
> t.
>
>
> --
> ## List details at https://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/




--
The total budget at all receivers for solving senders' problems is $0.
If you want them to accept your mail and manage it the way you want,
send it the way the spec says to. --John Levine