Exim4: различия между версиями
Материал из fidoman.ru
| Sergey (обсуждение | вклад)  (Новая страница: «== Conditional rewrite ==   https://exim-users.exim.narkive.com/cjDiulLN/rewrite-sender-based-on-recipient   * "${if def:acl_m_rp {$acl_m_rp} fail}" Ff») | Sergey (обсуждение | вклад)  | ||
| Строка 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  | + | 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 | ||
Текущая версия от 20: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
