Re: Can't disable mx lookup with square brackets in transport map

2021-05-20 Thread Viktor Dukhovni
On Thu, May 20, 2021 at 09:18:56PM +0300, basini...@gmail.com wrote: > Thanks Viktor. > > So to add this "custom smtp transport" do I need to add a section in > main.cf just like "smtp unix", but with a custom "service type" column > and the additional option `-o smtp_host_lookup=native`? That'd

Re: Can't disable mx lookup with square brackets in transport map

2021-05-20 Thread Matus UHLAR - fantomas
On 20.05.21 21:18, basini...@gmail.com wrote: So to add this "custom smtp transport" do I need to add a section in main.cf just like "smtp unix", but with a custom "service type" column and the additional option `-o smtp_host_lookup=native`? you can as well put IP address into the brackets. --

Re: Can't disable mx lookup with square brackets in transport map

2021-05-20 Thread basinilya
Thanks Viktor. So to add this "custom smtp transport" do I need to add a section in main.cf just like "smtp unix", but with a custom "service type" column and the additional option `-o smtp_host_lookup=native`? On 20.05.2021 21:01, Viktor Dukhovni wrote: > On Thu, May 20, 2021 at 12:52:38PM -05

Re: Can't disable mx lookup with square brackets in transport map

2021-05-20 Thread Viktor Dukhovni
On Thu, May 20, 2021 at 12:52:38PM -0500, Noel Jones wrote: > As the docs say, the brackets disable MX lookups, not DNS lookups. > > Sounds like you should read > http://www.postfix.org/postconf.5.html#smtp_host_lookup > and probably use "dns, native" Thanks Noel, that's the right answer. I ju

Re: Can't disable mx lookup with square brackets in transport map

2021-05-20 Thread Wietse Venema
basini...@gmail.com: > `/etc/postfix/transport` > .lan smtp:[somehost] This disables MX lookups before A lookups. This DOES NOT disable DNS lookups. > May 20 20:27:25 dexp.lan postfix/smtp[226399]: 4E537CEFD1: > to=, relay=none, delay=0.4, delays=0.14/0.02/0.23/0, > dsn=5.4.4, status=bo

Re: Can't disable mx lookup with square brackets in transport map

2021-05-20 Thread Noel Jones
On 5/20/2021 12:38 PM, basini...@gmail.com wrote: Hi List! I want to use native SMTP host lookup instead of DNS, but only for *some* domains. From `man 5 transport`: and disable MX (mail ex‐changer) DNS lookups with [host] or [host]:port. I tried it, but according to postfix logs, it's s

Can't disable mx lookup with square brackets in transport map

2021-05-20 Thread basinilya
Hi List! I want to use native SMTP host lookup instead of DNS, but only for *some* domains. >From `man 5 transport`: > and disable MX (mail ex‐changer) DNS lookups with [host] or [host]:port. I tried it, but according to postfix logs, it's still resolving it using DNS. If I replace the name wi