Exim4: различия между версиями

Материал из fidoman.ru
(Новая страница: «== Conditional rewrite == https://exim-users.exim.narkive.com/cjDiulLN/rewrite-sender-based-on-recipient * "${if def:acl_m_rp {$acl_m_rp} fail}" Ff»)
 
 
Строка 3: Строка 3:
 
https://exim-users.exim.narkive.com/cjDiulLN/rewrite-sender-based-on-recipient
 
https://exim-users.exim.narkive.com/cjDiulLN/rewrite-sender-based-on-recipient
  
  * "${if def:acl_m_rp {$acl_m_rp} fail}" Ff
+
Example:
 +
1. set acl_c1 to some address if session is from some stupid host that cannot specify valid sender address
 +
2. add this to rewrite section:
 +
  * "${if !eq{$acl_c1}{} {$acl_c1} fail}" Ff

Текущая версия на 23:54, 30 мая 2023

Conditional rewrite

https://exim-users.exim.narkive.com/cjDiulLN/rewrite-sender-based-on-recipient

Example: 1. set acl_c1 to some address if session is from some stupid host that cannot specify valid sender address 2. add this to rewrite section:

* "${if !eq{$acl_c1}{} {$acl_c1} fail}" Ff