Re: [exim] route authenticated mail via a smarthosts and non authenticated out another.

2021-07-14 Thread Brent Clark via Exim-users

You guys are awesome 
Thanks so much.

Regards
Brent Clark

On 2021/07/13 13:50, Heiko Schlittermann via Exim-users wrote:

Brent Clark via Exim-users  (Di 13 Jul 2021 11:35:39 CEST):

Good day Guys

Where I work, we have a story where we need to route authenticated mail via
a smarthosts and non authenticated out another smarthost.

Would anyone perhaps have a suggestion of how I can achieve this.
My Googling is not of much use today.

And then use this as a router condition

 begin routers

 smarthost:
 driver = manualroute
 route_data = ${if def:authenticated_id {SMART_AUTH} 
{SMART_NOAUTH}}
 …

But, this is untested, just meant as a sketch.

 Best regards from Dresden/Germany
 Viele Grüße aus Dresden
 Heiko Schlittermann
--
  SCHLITTERMANN.de  internet & unix support -
  Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
  gnupg encrypted messages are welcome --- key ID: F69376CE -


--
## 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/


Re: [exim] route authenticated mail via a smarthosts and non authenticated out another.

2021-07-13 Thread Heiko Schlittermann via Exim-users
Brent Clark via Exim-users  (Di 13 Jul 2021 11:35:39 CEST):
> Good day Guys
> 
> Where I work, we have a story where we need to route authenticated mail via
> a smarthosts and non authenticated out another smarthost.
> 
> Would anyone perhaps have a suggestion of how I can achieve this.
> My Googling is not of much use today.

And then use this as a router condition

begin routers

smarthost:
driver = manualroute
route_data = ${if def:authenticated_id {SMART_AUTH} 
{SMART_NOAUTH}}
…

But, this is untested, just meant as a sketch.

Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
--
 SCHLITTERMANN.de  internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --- key ID: F69376CE -


signature.asc
Description: PGP signature
-- 
## 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/


Re: [exim] route authenticated mail via a smarthosts and non authenticated out another.

2021-07-13 Thread Dominic Benson via Exim-users
I would set an acl_m_ var when you accept authenticated mail, and then check 
that in the condition of your (authenticated smarthost) router, immediately 
before the default smarthost for unauth senders.

Heavily abbreviated illustration:

(acl section)
  accept
authenticated = *
set acl_m_authenticated = 1


(router section)
smarthost_authusers:
  condition = $acl_m_authenticated
  driver = manualroute
  route_list = * auth.smarthost.address

smarthost_other:
  driver = manualroute
  route_list = * default.smarthost.address


> On 13 Jul 2021, at 10:35, Brent Clark via Exim-users  
> wrote:
> 
> Good day Guys
> 
> Where I work, we have a story where we need to route authenticated mail via a 
> smarthosts and non authenticated out another smarthost.
> 
> Would anyone perhaps have a suggestion of how I can achieve this.
> My Googling is not of much use today.
> 
> Many thanks in advance.
> 
> Regards
> Brent Clark
> 
> 
> -- 
> ## 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/

-- 
## 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/


[exim] route authenticated mail via a smarthosts and non authenticated out another.

2021-07-13 Thread Brent Clark via Exim-users

Good day Guys

Where I work, we have a story where we need to route authenticated mail 
via a smarthosts and non authenticated out another smarthost.


Would anyone perhaps have a suggestion of how I can achieve this.
My Googling is not of much use today.

Many thanks in advance.

Regards
Brent Clark


--
## 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/