> 山森 > My Blogs > X級工程師經驗談 > Sendmail SMTP Authentication Over LDAP
Google AdSense
我的標籤
我的書籤

沒有資料

廣告看板

Windows - 新增工作排程 » « Sendmail 8.13 antispam 攻防

2007/05/04 Sendmail SMTP Authentication Over LDAP
必要 Package
(1) sendmail / sendmail-cf
(2) cyrus-sasl / cyrus-sasl-lib

1. Sendmail configuration

1.1 編輯 sendmail.mc , 開啟 smtp auth 功能

TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl

1.2 sendmail.mc -> sendmail.cf

# m4 sendmail.mc > sendmail.cf

1.3 重啟 sendmail

# chkconfig --level 345 sendmail on
# service sendmail start
 
2. Cyrus-sasl configuration

2.1 針對 sendmail 的 SASL 認證方法, 預設在 /usr/lib/sasl2/Sendmail.conf 

編輯 /usr/lib/sasl2/Sendmail.conf , 設定認證方式透過 saslauthd

pwcheck_method:saslauthd
mech_list:LOGIN PLAIN

2.2 設定 saslauthd 利用 ldap 認證

編輯 /etc/sysconfig/saslauthd

MECH=ldap

2.3 設定 /etc/saslauthd.conf

ldap_servers: ldap://whateverserver.net:389/
ldap_search_base: ou=people,dc=xxx,dc=xxx
ldap_timeout: 10
ldap_filter: cn=%u
ldap_bind_dn: cn=root,dc=xxx,dc=xxx
ldap_password: secret
ldap_deref: never
ldap_restart: yes
ldap_scope: sub
ldap_version: 3
ldap_auth_method: bind

2.4 啟動 cyrus-sasl

# chkconfig --level 345 saslauthd on
# service saslauthd start

以上即 完成 Sendmail SMTP AUTH 設定


17:12 [ X級工程師經驗談 / 本日人氣 (0) / 累積人氣 (463) / 文章引用 (0) / 發表意見 ]  
文章引用
站內引用 / 引用網址: http://api.mw.net.tw/trackback.php?aid=56005&c=8ed350 複製