Exim Multidomain 測試二
Posted On 2008年5月7日 星期三 at 於 上午11:02 by LaniThe rewrite flag ``S'' specifies a rewrite of incoming envelope addresses at SMTP time, as soon as an address is received in a MAIL or RCPT command, and before any other processing
參考資料:
31.8. Flags specifying which headers and envelope addresses to rewrite
31.9. The SMTP-time rewriting flag
######################################################################
# REWRITE CONFIGURATION #
######################################################################
參數如下:
begin rewrite
\N^(.*)@(.*)$\N "${lookup mysql {SELECT pridomain FROM multidomaindb WHERE secdomain='$2'}{$1@$value}fail}" SE
S The SMTP-time rewriting flag
E rewrite all envelope fields