I want to validate so the sender is valid (ergo, have a valid format, so its 
not like: From: [email protected] without angle brackets or have forbidden 
characters in the domain part, like From: <user@inv$lid.com>)  but I don't want 
to check for DNS validity.

And also check so From: exist at all, and is not empty.

Looking into returning a null MX (MX 0 ".") with unbound locally if the 
upstream server is responding NXDOMAIN on a MX query.

What I have understand, header_syntax just validates the syntax of all headers 
are valid MIME, without actually checking if each header follows 
header-specific rules.

-----Ursprungligt meddelande-----
Från: Jasen Betts via Exim-users <[email protected]> 
Skickat: den 5 januari 2025 16:12
Till: [email protected]
Ämne: [exim] Re: Why does this mail fail sender verification?

On 2025-01-04, Sebastian Nielsen via Exim-users <[email protected]> 
wrote:
> Ooh it actually does the DNS lookups too.
> It’s a no-reply address so its not supposed to have any MX.
>
> Any way to disable the DNS lookups and only verify the literal format of the 
> header (I use verify = header_sender to ensure that future checks in the DATA 
> stage works).

Maybe use "verify = header_syntax" instead if you don't want to actually check 
for a valid sender address in the headers.

> Have an idea to do 2 checks, one with header_sender if the "username" 
> contains something other than different forms of "no-reply". "noreply" etc, 
> and then a header_sender check WITHOUT calling for DNS if the user portion 
> contains any form of "no-reply", "noreply" and such.

> -----Ursprungligt meddelande-----
> Från: Slavko via Exim-users <[email protected]> 
> Skickat: den 4 januari 2025 01:14
> Till: [email protected]
> Ämne: [exim] Re: Why does this mail fail sender verification?
>
> On 3. januára 2025 23:44:48 UTC, Sebastian Nielsen via Exim-users 
> <[email protected]> wrote:
>
>>Whats the problem? Is it the linebreak in the From: that should have been
>>soaked up by the MIME parser?
>
> Exim is right, as usual, NULL MX:
>
>     lab.teledynevisionsolutions.com mail is handled by 0 .
>
> regards
>
>
> -- 
> Slavko
> https://www.slavino.sk/
>
> -- 
> ## subscription configuration (requires account):
> ##   
> https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
> ## unsubscribe (doesn't require an account):
> ##   [email protected]
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/
>
>


-- 
 Jasen.
 🇺🇦 Слава Україні

-- 
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/


-- 
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
##   [email protected]
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to