[exim] match local_domain with $sender_adresse_domain and or…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: mailto
Datum:  
To: exim-users
Betreff: [exim] match local_domain with $sender_adresse_domain and or ${domain:$h_From:}
Hi,

Im a noob in exim but I would know if it is possible to compare the domain
in the $sender_adresse_domain and or ${domain:$h_From:} value with the owned
in local_domain and reject email if it doesn't match



I tried something like


condition = ${if
!match{${domain:$h_From}}{${domain:+local_domains}}{yes}{no}}

or

condition = ${if
!match{${domain:$sender_address_domain}}{${domain:+local_domains}}{yes}{no}}






but I need this to work also for localhost 127.0.0.1 outgoing email

Thanks in advance for help