Exim 停用實體帳戶

由於exim 本身configure 並沒辦法定義某些實體帳戶暫時停用後, 也不收到信 這邊依exim-user 提供的方法並測試已成功,備忘紀錄一下
vi /usr/exim/configure

於begin routers 加入

block_expired_accounts:
driver = redirect
domains = +local_domains
local_parts = /usr/exim/blocked/accounts
data = :fail: account closed
allow_fail

echo id > /usr/exim/blocked/accounts

chown exim /usr/exim/blocked/accounts

/etc/init.d/exim restart

Posted in 標籤: |

0 意見: