当前位置:网站首页>Remedy after postfix becomes a spam transit station
Remedy after postfix becomes a spam transit station
2022-04-23 05:53:00 【Mu Meiwen】
Corporate email servers have recently been used as transit stations to forward a large number of advertising emails , Record the remedial process here .
- First clear the spam sending task in the queue ;
stop it sendmail service
#service sendmail stop
Clear outgoing task
#rm -rf /var/spool/mqueue/*
start-up sendmail service
#service sendmail start
- No forwarding , Enable blacklist
modify postfix Configuration file for main.cf
#vim /etc/postfix/main.cf
take myhostname Point to the domain name of the mail service
myhostname = mail.xiabian.com
mydomain The parameter points to the root domain
mydomain = xiabian.com
myorigin Point to mydomain
myorigin = $mydomain
mydestination Point to mydomain
mydestination = $mydomain
To monitor all IP
inet_interfaces = all
Set to trust only this machine
mynetworks_style = host
To configure mydomain To be able to be Postfix forward
relay_domains = $mydomain
Control the sending of mail
Mail from foreign domain to local domain , Receive all
Mail from local domain to foreign domain , Only local sending is allowed
Foreign domain to foreign domain mail , Reject send
Set sender rules , Allow local domain addresses , And refuse sender_access The sender contained in the file
Prevent other users from outside to [email protected] Send email as , However, logging in to this computer and sending it again will not be affected
Rule 1 permit_mynetworks Is to allow local login users to send mail
smtpd_sender_restrictions = permit_mynetworks, check_sender_access
hash:/etc/postfix/sender_access, permit
/etc/postfix/sender_access The content of
xiabian.com REJECT
Set recipient rules , Allow local domain addresses , And allow recipient_access The recipient included in the document
smtpd_recipient_restrictions = permit_mynetworks, check_recipient_access
hash:/etc/postfix/recipient_access, reject
/etc/postfix/recipient_access The content of
The foreign domain can only be sent to the following two Email Address , Any other address will be rejected , Send to this machine but not affected by this machine
[email protected] OK
[email protected] OK
use postmap Generate hash File format
#postmap sender_access
#postmap recipient_access
start-up Postfix
#/etc/init.d/postfix start
版权声明
本文为[Mu Meiwen]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230542192433.html
边栏推荐
- Duplicate key update in MySQL
- JDBC操作事务
- POI generates excel and inserts pictures
- DWSurvey是一个开源的调查问卷系统。解决无法运行问题,修改bug。
- 2.devops-sonar安装
- Pilotage growth · ingenuity empowerment -- yonmaster developer training and pilotage plan is fully launched
- Pytorch学习记录(四):参数初始化
- 数据处理之Numpy常用函数表格整理
- 关于二叉树的遍历
- The official website of UMI yarn create @ umijs / UMI app reports an error: the syntax of file name, directory name or volume label is incorrect
猜你喜欢
Pytoch learning record (x): data preprocessing + batch normalization (BN)
Solve the error: importerror: iprogress not found Please update jupyter and ipywidgets
Issue 36 summary of atcoder beginer contest 248
解决报错:ImportError: IProgress not found. Please update jupyter and ipywidgets
jdbc入门\获取数据库连接\使用PreparedStatement
Package mall system based on SSM
Pytorch学习记录(十):数据预处理+Batch Normalization批处理(BN)
开发环境 EAS登录 license 许可修改
JVM family (4) -- memory overflow (OOM)
Understand the current commonly used encryption technology system (symmetric, asymmetric, information abstract, digital signature, digital certificate, public key system)
随机推荐
Meta annotation (annotation of annotation)
Hotkeys, interface visualization configuration (interface interaction)
实体中list属性为空或者null,设置为空数组
rsync实现文件服务器备份
Pytorch学习记录(七):处理数据和训练模型的技巧
图解numpy数组矩阵
io. lettuce. core. RedisCommandExecutionException: ERR wrong number of arguments for ‘auth‘ command
Split and merge multiple one-dimensional arrays into two-dimensional arrays
ValueError: loaded state dict contains a parameter group that doesn‘t match the size of optimizer‘s
数字图像处理基础(冈萨雷斯)二:灰度变换与空间滤波
Dwsurvey is an open source questionnaire system. Solve the problem that cannot be run and modify the bug.
Pytorch学习记录(四):参数初始化
JDBC连接数据库
类的加载与ClassLoader的理解
解决报错:ImportError: IProgress not found. Please update jupyter and ipywidgets
The difference between cookie and session
freemark中插入图片
一文读懂当前常用的加密技术体系(对称、非对称、信息摘要、数字签名、数字证书、公钥体系)
2-软件设计原则
Pyemd installation and simple use