Re: [exim] send mail based on origin domain

Página Inicial
Delete this message
Reply to this message
Autor: Nicolas Leonel
Data:  
Para: Nicolas Leonel, exim-users
Assunto: Re: [exim] send mail based on origin domain
I apologizes but my exim knowledge is extremely limited, can you share an
example on how to setup two different users with that example.

Thanks so much and sorry for the hassle.


On Fri, Feb 2, 2018 at 7:30 PM, Phil Pennock <pdp@???> wrote:

> On 2018-02-01 at 13:32 -0300, Nicolas Leonel via Exim-users wrote:
> > Im using Sendgrid to send out email through my exim server, it uses a
> > remote SMTP host, port, username and password for sending email. The
> > problem is that now I would like to segment my delivery through multiple
> > SMTP users, aka SendGrid Sub-users.
> >
> > It appears I can do this by either using their API or through the MTA
> which
> > I believe would be easier to implement, my question is does anyone know
> how
> > to specify a certain SMTP user and password depending on the domain used
> to
> > send the email from?
>
> Yes. This post might help:
>
> https://lists.exim.org/lurker/message/20171015.030553.5600347d.en.html
>
> The two censored-for-web email addresses in the sample config extract
> were `xyz@???` and `zyx@???`.
>
> In essence: in the Router, use a lookup of `$sender_address` in some
> data-source to get space-separated key=value pairs and stash that with
> the `address_data` option, then refer to `$address_data` in the
> Transport via `${extract{keyname}{$address_data}{true-val}{false-val}}`
> to get the values of various options.
>
> -Phil
>




--


<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>