欢迎登陆真网站,您的到来是我们的荣幸。 登陆 注册 忘记密码? ☆设为首页 △加入收藏
欢迎加入真幸福QQ群
电脑知识: 基础知识 网络技术 操作系统 办公软件 电脑维修 电脑安全 windows7 windows8 windows10 服务器教程 平板电脑 视频播放教程 网络应用 互联网 工具软件 浏览器教程 QQ技巧 输入法教程 影视制作 YY教程 wps教程 word教程 Excel教程 PowerPoint
云南西双版纳特产小花糯玉米真空包装


linux 常用实用命令
linux中vmstat操作记录保存成文件
网通dns服务器地址列举
centos禁止与开启ping设置
ubuntu安装配置xdebug方法
nginx只允许执行php程序配置
linux中限制CPU和内存占用率方法
13个Cat命令管理文件实例
如何使用FTP连接虚拟主机?
如何提升大型机性能
postfix反垃圾邮件设置
【 来源:网络 】【 点击:1 】 【 发布时间:2017_03_03 08:59:59 】

   增加防止发件人身份伪造的配置:

 代码如下  

# smtpd related config
smtpd_recipient_restrictions =
  permit_mynetworks,
  permit_sasl_authenticated,
#  reject_non_fqdn_hostname,
  reject_non_fqdn_sender,
  reject_non_fqdn_recipient,
  reject_unauth_destination,
  reject_unauth_pipelining,
  reject_invalid_hostname

 

smtpd_sender_restrictions =
  permit_mynetworks,
  check_recipient_access hash:/etc/postfix/local_recipient,
  permit_sasl_authenticated,
  reject_sender_login_mismatch,
  reject_authenticated_sender_login_mismatch,
  reject_unauthenticated_sender_login_mismatch,
  reject_unknown_sender_domain

# SMTP AUTH config here
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous

  补充:

  配置extmail不允许伪造不存在的本地邮件地址发邮件,不允许并仿冒他人邮件地址发送邮件

  cd /etc/postfix/

  cat >mysql_virtual_sender_maps.cf<

  user = extmail

  password = extmail

  hosts = localhost

  dbname = extmail

  table = mailbox

  select_field = username

  where_field = username

  additional_conditions = AND active = '1'

  EOF

  vim main.cf

  smtpd_sender_login_maps =

  mysql:/etc/postfix/mysql_virtual_sender_maps.cf

  smtpd_sender_restrictions =

  permit_mynetworks,

  reject_sender_login_mismatch,

  reject_authenticated_sender_login_mismatch,

  reject_unauthenticated_sender_login_mismatch使配置生效

  postfix reload

本网站由川南居提供技术支持,fkzxf版权所有 浙ICP备12031891号
淳安分站 淳安分站