[exim] Re: Destination address in a transport

2023-10-26 Thread Thomas Andrews via Exim-users
On 10/25/23 23:09, Jeremy Harris via Exim-users wrote: On 25/10/2023 17:48, Ian Z via Exim-users wrote: On Tue, Oct 24, 2023 at 08:48:30PM +0200, Thomas Andrews via Exim-users wrote: I need to find out how to put the destination email address into the my transport. How do I do that?  Is that

[exim] Re: Destination address in a transport

2023-10-26 Thread Andreas Metzler via Exim-users
On 2023-10-26 Thomas Andrews via Exim-users wrote: > On 10/25/23 23:09, Jeremy Harris via Exim-users wrote: [...] > > For use in a command line for a pipe transport, you'll need de-tainted > > versions of those.  Which means full verification of both components > > against a local source of trust

[exim] Re: Destination address in a transport

2023-10-26 Thread Jeremy Harris via Exim-users
On 26/10/2023 05:38, Thomas Andrews via Exim-users wrote: What are my other options? What is this external program doing? Could you be using the transport-filter facilities? -- Cheers, Jeremy -- ## subscription configuration (requires account): ## https://lists.exim.org/mailman3/postoriu

[exim] Re: Destination address in a transport

2023-10-26 Thread Thomas Andrews via Exim-users
On 10/26/23 10:57, Jeremy Harris via Exim-users wrote: On 26/10/2023 05:38, Thomas Andrews via Exim-users wrote: What are my other options? What is this external program doing?  Could you be using the transport-filter facilities? The external program is delivering the email to another server

[exim] Routing based on *recipient* IP address

2023-10-26 Thread Gandalf Corvotempesta via Exim-users
Hi guys TL;DR: how can i route, to a specific smarthost, all email based on the *recipient* mx IP address ? Long version: I have a mail server hosted on Google Cloud that can't reach some "restricted" countries, like Cuba, Iran, Syria and so on. A customer of us, has a department located in Ira

[exim] Re: Routing based on *recipient* IP address

2023-10-26 Thread Jeremy Harris via Exim-users
On 26/10/2023 10:08, Gandalf Corvotempesta via Exim-users wrote: TL;DR: how can i route, to a specific smarthost, all email based on the *recipient* mx IP address ? - a manualroute router, pointing to the required smarthost - placed in the routing chain early, to strip out from the general "d

[exim] Re: Destination address in a transport

2023-10-26 Thread Jeremy Harris via Exim-users
On 26/10/2023 10:11, Thomas Andrews via Exim-users wrote: The external program is delivering the email to another server for further  processing. If that's all it is doing, and the delivery is done using SMTP, Exim can do that itself. What are you not telling us? -- Cheers, Jeremy -- ## su

[exim] Re: Destination address in a transport

2023-10-26 Thread Thomas Andrews via Exim-users
On 10/26/23 11:51, Jeremy Harris via Exim-users wrote: On 26/10/2023 10:11, Thomas Andrews via Exim-users wrote: The external program is delivering the email to another server for further processing. If that's all it is doing, and the delivery is done using SMTP, Exim can do that itself.  What

[exim] Re: Routing based on *recipient* IP address

2023-10-26 Thread Gandalf Corvotempesta via Exim-users
Il giorno gio 26 ott 2023 alle ore 11:48 Jeremy Harris via Exim-users ha scritto: > - a manualroute router, pointing to the required smarthost Ok > - placed in the routing chain early, to strip out from the >general "deliver to the MX" externals Ok. > - with a complicated "condition" to dec

[exim] Re: Routing based on *recipient* IP address

2023-10-26 Thread Jeremy Harris via Exim-users
On 26/10/2023 11:30, Gandalf Corvotempesta via Exim-users wrote: Il giorno gio 26 ott 2023 alle ore 11:48 Jeremy Harris via Exim-users - condition does a dnsdb lookup, for mx and matches the required IP address Oki'm here. But dnsdb lookup returns a list of MXs , not a list (or just on

[exim] Re: Destination address in a transport

2023-10-26 Thread Julian Bradfield via Exim-users
On 2023-10-26, Thomas Andrews via Exim-users wrote: > On 10/26/23 11:51, Jeremy Harris via Exim-users wrote: >> On 26/10/2023 10:11, Thomas Andrews via Exim-users wrote: >>> The external program is delivering the email to another server for >>> further processing. >> >> If that's all it is doing,

[exim] Re: Destination address in a transport

2023-10-26 Thread Jeremy Harris via Exim-users
On 26/10/2023 11:19, Thomas Andrews via Exim-users wrote: he emails are not getting delivered to the next machine via SMTP - that option is not available/possible/suitable in this case. So, it's a bespoke program that is used to do the transfer. The optimal solution would be to rewrite this b

[exim] Re: Destination address in a transport

2023-10-26 Thread Markus Reschke via Exim-users
Hi! On Thu, 26 Oct 2023, Thomas Andrews via Exim-users wrote: The destination address could be g...@wimzail.org or anything - ie I have no way to de-taint it as it is not a local address. Therefore using $local_part and $domain is not an option. What are my other options? (By the way, it does

[exim] Re: Routing based on *recipient* IP address

2023-10-26 Thread Gandalf Corvotempesta via Exim-users
Il giorno gio 26 ott 2023 alle ore 13:11 Jeremy Harris via Exim-users ha scritto: > If MX-sorting not needed: >${lookup dnsdb{a+=${lookup dnsdb{>: mxh=example.com Actually, i'm here, with a custom router. relay_to_aws: debug_print = "R: relay_to_aws for $local_part@$domain . Remote IP:

[exim] Re: Routing based on *recipient* IP address

2023-10-26 Thread Jeremy Harris via Exim-users
On 26/10/2023 14:28, Gandalf Corvotempesta via Exim-users wrote: But how can I use a single lookup (and not 2 like in the code above), merging route_data and condition ? From the condition can I set a variable to use with route_data ? I didn't find anything in this regard. Look at the "set" gen

[exim] Re: Destination address in a transport

2023-10-26 Thread Julian Bradfield via Exim-users
On 2023-10-26, Jeremy Harris via Exim-users wrote: > On 26/10/2023 11:19, Thomas Andrews via Exim-users wrote: >> he emails are not getting delivered to the next machine via SMTP - that >> option is not available/possible/suitable in this case. So, it's a bespoke >> program that is used to do th

[exim] Re: Routing based on *recipient* IP address

2023-10-26 Thread Gandalf Corvotempesta via Exim-users
ok so i can still call the same lookup multiple times. i've fixed almost everything except that with IPv6 the lookup doesn't works and return nothing. (i'm using ";" as delimiter) Il gio 26 ott 2023, 16:02 Jeremy Harris via Exim-users < exim-users@lists.exim.org> ha scritto: > On 26/10/2023 14:2

[exim] Re: Routing based on *recipient* IP address

2023-10-26 Thread Jeremy Harris via Exim-users
On 26/10/2023 17:13, Gandalf Corvotempesta via Exim-users wrote: i've fixed almost everything except that with IPv6 the lookup doesn't works and return nothing. (i'm using ";" as delimiter) Run it seperately using "-be" expansion-test mode -- Cheers, Jeremy -- ## subscription configuration

[exim] Re: Routing based on *recipient* IP address

2023-10-26 Thread Kirill Miazine via Exim-users
• Gandalf Corvotempesta via Exim-users [2023-10-26 11:08]: Hi guys TL;DR: how can i route, to a specific smarthost, all email based on the *recipient* mx IP address ? Maybe you could solve the task at a lower level, e.g. use operating system's networking facilities e.g. to redirect connection

[exim] Re: SEGV_MAPERR

2023-10-26 Thread Julian Waters via Exim-users
Thanks for the replies. I don’t fully understand everything you asked but as much as i’ve been able to figure out is pasted below. Also the config incase there’s an obvious issue there. I haven’t raised a debian bug, I’m assuming it’s just my incompetence. Any assistance deeply appreciated.

[exim] Looking for generic tutorial for implementing SMTP AUTH against LDAP

2023-10-26 Thread Mihamina RKTMB via Exim-users
Hi all, I want to setup an Exim SMTP AUTH server, where my users are in a POSIX compliant LDAP. I am running ArchLinux, so a generic tutorial would be fine (Debian specific ones need some transformations to remove the Debians packagers macros) Would you know any existing tutorial for that,

[exim] Re: Routing based on *recipient* IP address

2023-10-26 Thread Gandalf Corvotempesta via Exim-users
Il gio 26 ott 2023, 21:22 Kirill Miazine via Exim-users < exim-users@lists.exim.org> ha scritto: > Maybe you could solve the task at a lower level, e.g. use operating > system's networking facilities e.g. to redirect connections to port 25 > on those specific IP addresses to the smarthost, or bett