设置postfix支持smtp认证
2010-12-16 13:34
405 查看
1. 安装组件
yum install -y postfix dovecot saslauthd*
#如果已经安装则不必执行这一步
2. 运行
saslauthd -v
#如果显示类似authentication mechanisms:getpwent pam shadow则可显示saslauthd支持的认证机制
3. 编辑/etc/sysconfig/saslauthd文件,确认其为
MECH=pam
4. 启动saslauthd
service saslauthd start
运行:
/usr/sbin/testsaslauthd –u user –p ‘password’
#测试saslauthd认证功能是否起作用了
5. 设置postfix支持smtp认证
在main.cf文件中更改如下:
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = ''
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
broken_sasl_auth_clients=yes
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_sasl_security_options = noanonymous
6. 编辑/usr/lib/sasl2/smtpd.conf文件,确认其为:
pwcheck_method: saslauthd
7. 启动postfix
service postfix start
8. 测试smtp认证
telnet 127.0.0.1 25
输入:
ehlo 163.com
如果在返回的列表中有:
250-AUTH GSSAPI NTLM LOGIN PLAIN
250-AUTH=GSSAPI NTLM LOGIN PLAIN
两行,则表明postfix已经启用smtp认证了
yum install -y postfix dovecot saslauthd*
#如果已经安装则不必执行这一步
2. 运行
saslauthd -v
#如果显示类似authentication mechanisms:getpwent pam shadow则可显示saslauthd支持的认证机制
3. 编辑/etc/sysconfig/saslauthd文件,确认其为
MECH=pam
4. 启动saslauthd
service saslauthd start
运行:
/usr/sbin/testsaslauthd –u user –p ‘password’
#测试saslauthd认证功能是否起作用了
5. 设置postfix支持smtp认证
在main.cf文件中更改如下:
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = ''
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
broken_sasl_auth_clients=yes
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_sasl_security_options = noanonymous
6. 编辑/usr/lib/sasl2/smtpd.conf文件,确认其为:
pwcheck_method: saslauthd
7. 启动postfix
service postfix start
8. 测试smtp认证
telnet 127.0.0.1 25
输入:
ehlo 163.com
如果在返回的列表中有:
250-AUTH GSSAPI NTLM LOGIN PLAIN
250-AUTH=GSSAPI NTLM LOGIN PLAIN
两行,则表明postfix已经启用smtp认证了
相关文章推荐
- 基于Postfix下设置SMTP的用户认证
- Postfix邮箱(四):安装Cyrus-SASL使Postfix支持SMTP认证
- RHEL 5服务篇—部署Postfix邮件系统(四)设置SMTP发信认证及别名机制
- RHEL 5服务篇—部署Postfix邮件系统(四)设置SMTP发信认证及别名机制
- PostFix支持SMTP认证
- linux下发邮件设置smtp认证
- postfix与smtp认证
- [python snippets] 邮件发送 (带附件,多收件人, 支持SMTP 和Postfix )
- Postfix――使用SMTP认证和搭建web界面
- 打造Linux下支持SMTP plain认证及MIME格式的最简MTU
- 64位 centos 6.4 linux系统配置 postfix 启用 smtp 认证
- squirrelmail SMTP认证设置
- 带smtp认证的postfix配置
- ucspi-tcp的原理和设置即 smtp用户认证规则
- 关于.NET的SMTP的问题:如不支持ESMTP(身份认证)等等
- 关于.NET的SMTP的问题:如不支持ESMTP(身份认证)等等
- Postfix邮件服务器的原理和postfix + dovecot配置,使用Thunderbird发送邮件和SMTP认证
- 如何设置Outlook的SMTP认证?
- linux基于Postfix设置smtp服务器
- 构建postfix邮件服务器(三)启用SMTP用户认证