Re: [exim] Return Matched Condition

2021-11-17 Thread Jeremy Harris via Exim-users

On 17/11/2021 17:13, Patrick Porteous via Exim-users wrote:

If I'm running a filter file that looks for a string in the headers, is there a 
variable that stores the condition when it's matched?


Not directly.  If you write that "contains" as a regex for "matches"
then the $ variable are set with the results.
--
Cheers,
  Jeremy

--
## 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] Return Matched Condition

2021-11-17 Thread Patrick Porteous via Exim-users

Hello,

If I'm running a filter file that looks for a string in the headers, is 
there a variable that stores the condition when it's matched? Below is 
an example of the script in question:


if $message_headers contains "Condition 1"
or $message_headers contains "Condition 2"
or $message_headers contains "Condition 3"
then
headers add (*The condition that was met*)
endif

Many Thanks!

--
## 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] Exim always expands sender_rcvhost to unverified IP

2021-11-17 Thread Heiko Schlittermann via Exim-users
Heiko Schlittermann via Exim-users  (Mi 17 Nov 2021 
13:17:33 CET):
> Typo? What do you mean with "sender_rcvhost"?
Mea culpa. You're talking about the variable to be expanded inside the
Received header.

But given this, I still can't see any issue with the logs you provided.

-- 
Heiko


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] Exim always expands sender_rcvhost to unverified IP

2021-11-17 Thread Heiko Schlittermann via Exim-users
Matt Corallo via Exim-users  (Di 16 Nov 2021 17:47:22 CET):
> Like the title says, for some reason exim 4.94.2-7 (Debian stable) is
> refusing to ever expand sender_rcvhost to a verified hostname. The below

Typo? What do you mean with "sender_rcvhost"?

> shows a simple email inbound from github, as well as the relevant DNS
> traffic from exim to the DNS server (with spamd stopped to ensure we're not
> confusing spamd queries with exim queries).
> 
> Possibly-relevant config entries are:
> 
> dkim_verify_signers = :
> host_lookup = *
> dns_dnssec_ok = 1
> slow_lookup_log = 250
> 
> "options trust-ad" is set in resolv.conf.
> 
> Exim log:
> 
> Nov 16 16:36:55 mail exim[789201]: 2021-11-16 16:36:55 1mn1S3-003JJ3-Bt
> H=out-25.smtp.github.com (smtp.github.com) [192.30.252.208] Warning: ACL
> "warn" statement skipped: condition test deferred
> Nov 16 16:36:55 mail exim[789201]: 2021-11-16 16:36:55 1mn1S3-003JJ3-Bt <=
> nore...@github.com H=out-25.smtp.github.com (smtp.github.com)
> [192.30.252.208] P=esmtps

Here Exim was able to resolve the client IP to a hostname, as indicated
by H=.

> X=TLS1.2:ECDHE_X25519__ECDSA_SHA512__AES_256_GCM:256 CV=no S=6196
> DKIM=github.com id=bitcoin/bitcoin/pull/23496/review/807558...@github.com
> Nov 16 16:36:55 mail exim[789202]: 2021-11-16 16:36:55 1mn1S3-003JJ3-Bt =>
> btccore  F=
> R=maildrop_router T=maildrop_pipe
> Nov 16 16:36:55 mail exim[789202]: 2021-11-16 16:36:55 1mn1S3-003JJ3-Bt 
> Completed

All that looks totally fine, so probably I'm missing your point.
If it is the "warn" you're complaining about, then please provide that
part of the ACL.

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/