另外请问您最新的postfix.iredmail.conf适用于0.9.6版么?
页次 1
支持 Red Hat Enterprise Linux, CentOS, Scientific Linux, Debian, Ubuntu, FreeBSD, OpenBSD
您尚未登陆。 请选择登陆或是注册一个新账号。
iRedMail 开源邮件服务解决方案 » 由 zhbzhbzhbz199102 发表的文章
页次 1
另外请问您最新的postfix.iredmail.conf适用于0.9.6版么?
服务器版本:
ubuntu14.04
iredmail版本:
0.9.6
问题描述:
无意中发现我的postfix被人大量用来发送垃圾邮件,有的时候from是空,有的时候是下面日志中的from如“from=<myrtle.o@pkumuna.org.cn>”,在vmail-mailbox表中没有看到此类用户,数据库没什么异常(在iredadmin中也没有看到)。
配置:
关闭了ClamAV、Amavis、灰名单,以及发送和接收时的扫描,配置了SPF等。开启了465端口的SMTPS。
注:
未进行过这个操作https://docs.iredmail.org/allow.user.to.send.email.without.authentication.html
请问是要看这个么?https://docs.iredmail.org/allow.certain.users.to.send.email.as.different.user.html
请问如何解决以及您估计问题在哪里?(是main.cf的问题?本想粘贴但是太长了)
mail.log日志节选1(这个ylmf-pc大量尝试过后开始出现异常的发送行为):
Feb 10 04:08:56 mail postfix/postscreen[9398]: CONNECT from [115.209.28.184]:52519 to [10.141.172.59]:25
Feb 10 04:08:56 mail postfix/postscreen[9398]: PREGREET 14 after 0.04 from [115.209.28.184]:52519: EHLO ylmf-pc\r\n
Feb 10 04:08:56 mail postfix/postscreen[9398]: HANGUP after 0.08 from [115.209.28.184]:52519 in tests after SMTP handshake
Feb 10 04:08:56 mail postfix/postscreen[9398]: DISCONNECT [115.209.28.184]:52519
Feb 10 04:12:46 mail postfix/pickup[9724]: E48D3E001: uid=33 from=<tanya.h@pkumuna.org.cn>
Feb 10 04:12:46 mail postfix/cleanup[9725]: E48D3E001: message-id=<bc247685bb6f0f150d6c1b5c0e4800ea@pkumuna.org.cn>
Feb 10 04:12:46 mail postfix/qmgr[1612]: E48D3E001: from=<tanya.h@pkumuna.org.cn>, size=1427, nrcpt=1 (queue active)
mail.log日志节选2(from有值):
Feb 18 07:02:08 mail postfix/smtp[8303]: 85AFBE80D: to=<alain.desmit@skynet.be>, relay=mx201.skynet.be[195.238.20.25]:25, delay=34092, delays=34045/0/46/0, dsn=4.0.0, status=deferred (host mx201.skynet.be[195.238.20.25] refused to talk to me: 421 #4.4.5 Too many connections from your host.)
Feb 18 07:02:08 mail postfix/smtp[8319]: 56D17E7EE: to=<thania@skynet.be>, relay=mx201.skynet.be[195.238.20.25]:25, delay=34092, delays=34045/0.04/47/0, dsn=4.0.0, status=deferred (host mx201.skynet.be[195.238.20.25] refused to talk to me: 421 #4.4.5 Too many connections from your host.)
Feb 18 07:02:08 mail postfix/smtp[8318]: 23376E740: host mx201.skynet.be[195.238.22.25] refused to talk to me: 421 #4.4.5 Too many connections from your host.
Feb 18 07:02:10 mail postfix/pickup[8217]: 2F90BF3FD: uid=33 from=<myrtle.o@pkumuna.org.cn>
Feb 18 07:02:10 mail postfix/cleanup[7916]: 2F90BF3FD: message-id=<271d1c44dfb2d885b37d34a96a166c26@pkumuna.org.cn>
Feb 18 07:02:10 mail postfix/qmgr[2354]: 2F90BF3FD: from=<myrtle.o@pkumuna.org.cn>, size=1448, nrcpt=1 (queue active)
Feb 18 07:02:10 mail postfix/pickup[8217]: 37B39F6B2: uid=33 from=<myrtle.o@pkumuna.org.cn>
Feb 18 07:02:10 mail postfix/cleanup[8397]: 37B39F6B2: message-id=<e94f6d3f51584dce848d191d6e90895c@pkumuna.org.cn>
Feb 18 07:02:10 mail postfix/qmgr[2354]: 37B39F6B2: from=<myrtle.o@pkumuna.org.cn>, size=1446, nrcpt=1 (queue active)
Feb 18 07:02:10 mail postfix/pickup[8217]: 3EC6CF75E: uid=33 from=<ellen.f@pkumuna.org.cn>
Feb 18 07:02:10 mail postfix/cleanup[7916]: 3EC6CF75E: message-id=<f3b7b81cd64e1b81bd76d30e94504052@pkumuna.org.cn>
Feb 18 07:02:10 mail postfix/qmgr[2354]: 3EC6CF75E: from=<ellen.f@pkumuna.org.cn>, size=1449, nrcpt=1 (queue active)
Feb 18 07:02:10 mail postfix/pickup[8217]: 4648DF77C: uid=33 from=<myrtle.o@pkumuna.org.cn>
Feb 18 07:02:10 mail postfix/cleanup[8397]: 4648DF77C: message-id=<273e21634d8e3f50be4e01c9eb3f0c2c@pkumuna.org.cn>
Feb 18 07:02:10 mail postfix/qmgr[2354]: 4648DF77C: from=<myrtle.o@pkumuna.org.cn>, size=1474, nrcpt=1 (queue active)
Feb 18 07:02:10 mail postfix/smtp[7964]: 062C7F750: to=<jessicajacucci@aol.com>, relay=mailin-02.mx.aol.com[152.163.0.68]:25, delay=643, delays=593/0/50/0, dsn=4.0.0, status=deferred (host mailin-02.mx.aol.com[152.163.0.68] refused to talk to me: 421 mtaig-aae04.mx.aol.com Service unavailable - try again later)
mail.log日志2如下(from为<>):
Feb 18 07:04:00 mail postfix/cleanup[8397]: 10B78F77C: message-id=<20180217230400.10B78F77C@mail.pkumuna.org.cn>
Feb 18 07:04:00 mail postfix/qmgr[2354]: 10B78F77C: from=<>, size=4156, nrcpt=1 (queue active)
Feb 18 07:04:00 mail postfix/bounce[8634]: 76484F7C4: sender non-delivery notification: 10B78F77C
Feb 18 07:04:00 mail postfix/qmgr[2354]: 76484F7C4: removed
Feb 18 07:04:00 mail postfix/smtp[8859]: 402A3F7BE: to=<elkhadirid@hotmail.com>, relay=hotmail-com.olc.protection.outlook.com[104.47.5.33]:25, delay=1.8, delays=0.02/0.56/0.95/0.3, dsn=5.7.1, status=bounced (host hotmail-com.olc.protection.outlook.com[104.47.5.33] said: 550 5.7.1 Unfortunately, messages from [139.199.108.65] weren't sent. Please contact your Internet service provider since part of their network is on our block list (AS3150). You can also refer your provider to http://mail.live.com/mail/troubleshooting.aspx#errors. [HE1EUR02FT043.eop-EUR02.prod.protection.outlook.com] (in reply to MAIL FROM command))
Feb 18 07:04:00 mail postfix/smtp[8859]: 402A3F7BE: lost connection with hotmail-com.olc.protection.outlook.com[104.47.5.33] while sending RCPT TO
Feb 18 07:04:00 mail postfix/cleanup[8875]: 17029F79E: message-id=<20180217230400.17029F79E@mail.pkumuna.org.cn>
Feb 18 07:04:00 mail postfix/bounce[8634]: 402A3F7BE: sender non-delivery notification: 17029F79E
Feb 18 07:04:00 mail postfix/qmgr[2354]: 17029F79E: from=<>, size=4146, nrcpt=1 (queue active)
cron 定时任务如果有一些命令的输出,就会被作为邮件发给 cron 的执行者(系统真好),通常这些执行者都是 alias 到 root 用户的,而 root 用户又是 alias 到某一个具体的邮件地址(这些alias 都定义在 /etc/postfix/aliases 里)。
感谢,原来如此!
http://blog.csdn.net/solmyr_biti/articl … /dev/null。
但是我还有个疑问是,如果Ubuntu没有安装postfix或者Mail命令会怎么样呢?它还会尝试发邮件么
(另外突然发现您0.9.6里的这一行好像也没加输出重定向~
30 3 * * * /bin/bash /var/vmail/backup/backup_mysql.sh
)
不知道修改/postfix/aliases是否可行
以及还可以修改/www/iredadmin/settings.py不知道是否可行
最新:修改/postfix/aliases确实可行,但是不知道为啥~求解这两个文件都是干啥的呢,以及为什么会每天凌晨往postmaster发邮件呢。谢谢您!
我之前按照教程修改了hostname,但是不知为何用mailq来查看总会有往原来的postmaster邮箱发邮件的情况(如截图)
Mysql中确认除了deleted_box外没有这个字符串“postmaster@pkumun.org.cn”
请问应该怎么办呢?
mysql 版可以用 roundcube 插件,自动查询 mysql 里的 vmail.mailbox 表得到联系人。
您是说要自己写个插件么
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.6
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):MySQL
- 使用的 Linux/BSD 发行版名称及版本号:centos-release-7-0.1406.el7.centos.2.3.x86_64
- 与您的问题相关的日志信息:
====发邮件提供我磁盘空间不足,
我需要怎么添加磁盘,麻烦告知一下,非常感谢
我的方案是,比如新增一个硬盘,然后把/var/vmail/vmail1的内容放到新硬盘里同时把新硬盘挂载到/var/vmail/vmail1
先用服务器的 IP 地址作为邮件客户端程序里使用的服务器地址,测试通过后再试试域名。如果不行,检查域名是否有正确的 DNS。
(问题已解决)
我试了下,首先新建第二个域,接下来新建一个用户,然后直接在foxmail里用这个新邮箱往163发邮件,对方可以收到;然后用163回复这个邮件,显示发送成功但是这边收不到,看了下日志,有这么个错误:
Error: user test@liyijing.com: Initialization failed: Namespace '': mkdir(/var/vmail/vmail1/liyijing.com/t/e/s/test-2017.04.20.19.43.31//Maildir) failed: Permission denied (euid=2000(vmail) egid=2000(vmail) missing +w perm: /var/vmail/vmail1, dir owned by 0:0 mode=0755)
这里的前提是,我之前备份了vmail1,然后把第二块硬盘用mount挂载到了vmail1上,再把vmail1的备份内容重新拷贝了回去。我看了下,我的/var/vmail1的权限是drwxr-xr-x,然后其唯一的子文件夹pkumun.org.cn的权限是drwx------。
我发现问题在于,我是在root用户下挂载和创建的新vmail1,因此它的所有者是root:root,我后来用chown vmail:vmail /var/vmail/vmail1设置了一下就好了~
谢谢张工
谢谢,不过我还是不知道应该看哪个。。是EAS这个么?不过我的问题在于登录第二个域的邮箱时,roundcube提示“IMAP服务器无法连接”,至于客户端还没测试过。
mysql 版可以用 roundcube 插件,自动查询 mysql 里的 vmail.mailbox 表得到联系人。
谢谢~~~不过我在官网的插件库里没找到您说的这个,,请问可否发个链接?~
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.6
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):Mysql
- 使用的 Linux/BSD 发行版名称及版本号:Ubuntu 14.04
- 与您的问题相关的日志信息:
====
主要参考这两个文章:
https://www.darrenfang.com/2014/02/inst … on-ubuntu/
http://www.jb51.net/article/27533.htm
以及https://www.qcloud.com/document/product/213/8044文末的视频
主要用到了Vhost,也就是通过修改/etc/nginx/conf.d/00-default.conf来实现80端口的复用,如下:
#80这部分只需要修改server_name
server {
listen 80;
server_name mail.example.org.cn;
}
# 这部分完全不变
server {
listen 443;
...
}
#新加入的Wordpress部分,特别注意!!!fastcgi_pass这里的写法。另外这里我是把wordpress装在了/opt/www底下
server {
listen 80;
root /opt/www/wordpress;
index index.php index.html index.htm;
server_name www.example.org.cn example.org.cn;
location / {
try_files $uri $uri/ /index.php?q=$uri&$args;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$ {
try_files $uri =404;
#fastcgi_pass 127.0.0.1:9000;
#下面这个非常重要!这个值需要去/etc/php5/fpm/pool.d/www.conf的listen=后面找
fastcgi_pass unix:/var/run/php-fpm.socket;
fastcgi_index index.php;
include fastcgi_params;
}
}
可能遇到的坑:
1)配置Mysql时,如果经常出现"ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)"的问题的话,建议在创建数据库,以及设置wp-config.php的时候,把localhost都替换成127.0.0.1
2)“connect() to unix:/var/run/php5-fpm.sock failed”
关于fastcgi_pass的设置问题,必须去/etc/php5/fpm/pool.d/www.conf这里文件里找listen=后面写的是什么,比如我的就跟官方推荐的不同,是“unix:/var/run/php-fpm.socket”
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.6
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):MySQL
- 使用的 Linux/BSD 发行版名称及版本号:
- 与您的问题相关的日志信息:
====
我已经配置好了pkumun.org.cn这个域(从开始安装,主机名啥的都是这个),登陆网址是mail.pkumun.org.cn/mail。
然后我现在在iredadmin里添加了一个新的域liyijing.com,设置了MX解析,并且添加了用户后,在上述网址无法登陆,网页上提示“连接至IMAP服务器失败”。请问我该如何设置?我在文档里没找到相关的,只找到一个更换主机名的文档。
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.6
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):MySQL
- 使用的 Linux/BSD 发行版名称及版本号:
- 与您的问题相关的日志信息:
====
请问下如何在roundcube里可以看到所有同域的人的邮箱?而且可以随着用户的变化而变化的(比如增就跟着增),貌似用globaladdressbook需要手动添加?
还是说需要Pro版?
zhbzhbzhbz199102 写道:设置了SSL+465端口)都是能收不能发
郵件伺服器的防火牆 , 465 port 開了沒?
开了,阿里云的问题
另外此贴终结吧,目前阿里云25端口,真的无解,什么ss和端口转发都试过。。反正都不好使
iRedMail 默认是强制用 587 端口加 TLS 加密来发送邮件的。我不知道你现在有什么问题,要解决什么问题。
问题就是发邮件发不出去(收可以收到,比如QQ邮箱)~无论是roundcubemail还是foxmail发都不行
因为我看是阿里云屏蔽了25端口,然后我看日志也发现是25端口连接超时了,不确定是不是这个原因。
所以不知道该怎么设置~因为我记得我只是开启了SMTPS,关了amavis,但是没有动其他的部分。
以下信息包含了mail.log、main.cf和master.cf
发送一个新邮件后的mail.log如下————————————————————————————————————————
Apr 8 22:18:14 mail postfix/smtps/smtpd[2007]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:18:14 mail postfix/smtps/smtpd[2007]: connect from unknown[185.29.8.10]
Apr 8 22:18:15 mail postfix/smtps/smtpd[2007]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:18:18 mail postfix/smtps/smtpd[2128]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:18:18 mail postfix/smtps/smtpd[2128]: disconnect from unknown[185.29.8.10]
Apr 8 22:18:21 mail postfix/smtps/smtpd[2135]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:18:21 mail postfix/smtps/smtpd[2135]: connect from unknown[185.29.8.10]
Apr 8 22:18:21 mail postfix/smtps/smtpd[2135]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:18:24 mail postfix/smtps/smtpd[2007]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:18:24 mail postfix/smtps/smtpd[2007]: disconnect from unknown[185.29.8.10]
Apr 8 22:18:25 mail postfix/smtps/smtpd[2135]: warning: unknown[185.29.8.10]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Apr 8 22:18:25 mail postfix/smtps/smtpd[2135]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:18:25 mail postfix/smtps/smtpd[2135]: disconnect from unknown[185.29.8.10]
Apr 8 22:18:25 mail postfix/smtps/smtpd[2128]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:18:25 mail postfix/smtps/smtpd[2128]: connect from unknown[185.29.8.10]
Apr 8 22:18:26 mail postfix/smtps/smtpd[2128]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:18:31 mail postfix/smtps/smtpd[2128]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:18:31 mail postfix/smtps/smtpd[2128]: disconnect from unknown[185.29.8.10]
Apr 8 22:18:31 mail postfix/smtps/smtpd[2007]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:18:31 mail postfix/smtps/smtpd[2007]: connect from unknown[185.29.8.10]
Apr 8 22:18:32 mail postfix/smtps/smtpd[2007]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:18:37 mail postfix/smtps/smtpd[2007]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:18:37 mail postfix/smtps/smtpd[2007]: disconnect from unknown[185.29.8.10]
Apr 8 22:18:37 mail postfix/smtps/smtpd[2066]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:18:37 mail postfix/smtps/smtpd[2066]: connect from unknown[185.29.8.10]
Apr 8 22:18:37 mail postfix/smtps/smtpd[2066]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:18:41 mail postfix/smtps/smtpd[2066]: warning: unknown[185.29.8.10]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Apr 8 22:18:48 mail postfix/smtps/smtpd[2066]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:18:48 mail postfix/smtps/smtpd[2066]: disconnect from unknown[185.29.8.10]
Apr 8 22:18:49 mail postfix/smtps/smtpd[2135]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:18:49 mail postfix/smtps/smtpd[2135]: connect from unknown[185.29.8.10]
Apr 8 22:18:49 mail postfix/smtps/smtpd[2135]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:18:55 mail postfix/smtps/smtpd[2135]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:18:55 mail postfix/smtps/smtpd[2135]: disconnect from unknown[185.29.8.10]
Apr 8 22:18:55 mail postfix/smtps/smtpd[2007]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:18:55 mail postfix/smtps/smtpd[2007]: connect from unknown[185.29.8.10]
Apr 8 22:18:55 mail postfix/smtps/smtpd[2007]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:18:59 mail postfix/smtps/smtpd[2007]: warning: unknown[185.29.8.10]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Apr 8 22:19:00 mail postfix/smtps/smtpd[2007]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:19:00 mail postfix/smtps/smtpd[2007]: disconnect from unknown[185.29.8.10]
Apr 8 22:19:02 mail postfix/smtps/smtpd[2128]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:19:02 mail postfix/smtps/smtpd[2128]: connect from unknown[185.29.8.10]
Apr 8 22:19:06 mail postfix/smtps/smtpd[2128]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:19:10 mail postfix/submission/smtpd[2336]: connect from mail.pkumun.org.cn[127.0.0.1]
Apr 8 22:19:10 mail postfix/submission/smtpd[2336]: Anonymous TLS connection established from mail.pkumun.org.cn[127.0.0.1]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:19:10 mail postfix/submission/smtpd[2336]: D7CA98176F: client=mail.pkumun.org.cn[127.0.0.1], sasl_method=LOGIN, sasl_username=zhouhongbo@pkumun.org.cn
Apr 8 22:19:10 mail postfix/cleanup[2343]: D7CA98176F: message-id=<0d2c681b923e058dc104adffb045ea71@pkumun.org.cn>
Apr 8 22:19:10 mail postfix/qmgr[1388]: D7CA98176F: from=<zhouhongbo@pkumun.org.cn>, size=744, nrcpt=1 (queue active)
Apr 8 22:19:10 mail roundcube: <46fvknkd> User zhouhongbo@pkumun.org.cn [115.27.217.183]; Message for 345598726@qq.com; 250: 2.0.0 Ok: queued as D7CA98176F
Apr 8 22:19:10 mail postfix/submission/smtpd[2336]: disconnect from mail.pkumun.org.cn[127.0.0.1]
Apr 8 22:19:13 mail postfix/smtps/smtpd[2128]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:19:13 mail postfix/smtps/smtpd[2128]: disconnect from unknown[185.29.8.10]
Apr 8 22:19:15 mail postfix/smtps/smtpd[2066]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:19:15 mail postfix/smtps/smtpd[2066]: connect from unknown[185.29.8.10]
Apr 8 22:19:15 mail postfix/smtps/smtpd[2066]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:19:19 mail postfix/smtps/smtpd[2066]: warning: unknown[185.29.8.10]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Apr 8 22:19:19 mail postfix/smtps/smtpd[2066]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:19:19 mail postfix/smtps/smtpd[2066]: disconnect from unknown[185.29.8.10]
Apr 8 22:19:20 mail postfix/smtps/smtpd[2135]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:19:20 mail postfix/smtps/smtpd[2135]: connect from unknown[185.29.8.10]
Apr 8 22:19:20 mail postfix/smtps/smtpd[2135]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:19:25 mail postfix/smtps/smtpd[2135]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:19:25 mail postfix/smtps/smtpd[2135]: disconnect from unknown[185.29.8.10]
Apr 8 22:19:25 mail postfix/smtps/smtpd[2007]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:19:25 mail postfix/smtps/smtpd[2007]: connect from unknown[185.29.8.10]
Apr 8 22:19:26 mail postfix/smtps/smtpd[2007]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:19:31 mail postfix/smtps/smtpd[2007]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:19:31 mail postfix/smtps/smtpd[2007]: disconnect from unknown[185.29.8.10]
Apr 8 22:19:31 mail postfix/smtps/smtpd[2128]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:19:31 mail postfix/smtps/smtpd[2128]: connect from unknown[185.29.8.10]
Apr 8 22:19:31 mail postfix/smtps/smtpd[2128]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:19:35 mail postfix/smtps/smtpd[2128]: warning: unknown[185.29.8.10]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Apr 8 22:19:35 mail postfix/smtps/smtpd[2128]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:19:35 mail postfix/smtps/smtpd[2128]: disconnect from unknown[185.29.8.10]
Apr 8 22:19:36 mail postfix/smtps/smtpd[2135]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:19:36 mail postfix/smtps/smtpd[2135]: connect from unknown[185.29.8.10]
root@mail:/var/log# cat mail.log
Apr 8 22:18:14 mail postfix/smtps/smtpd[2007]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:18:14 mail postfix/smtps/smtpd[2007]: connect from unknown[185.29.8.10]
Apr 8 22:18:15 mail postfix/smtps/smtpd[2007]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:18:18 mail postfix/smtps/smtpd[2128]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:18:18 mail postfix/smtps/smtpd[2128]: disconnect from unknown[185.29.8.10]
Apr 8 22:18:21 mail postfix/smtps/smtpd[2135]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:18:21 mail postfix/smtps/smtpd[2135]: connect from unknown[185.29.8.10]
Apr 8 22:18:21 mail postfix/smtps/smtpd[2135]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:18:24 mail postfix/smtps/smtpd[2007]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:18:24 mail postfix/smtps/smtpd[2007]: disconnect from unknown[185.29.8.10]
Apr 8 22:18:25 mail postfix/smtps/smtpd[2135]: warning: unknown[185.29.8.10]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Apr 8 22:18:25 mail postfix/smtps/smtpd[2135]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:18:25 mail postfix/smtps/smtpd[2135]: disconnect from unknown[185.29.8.10]
Apr 8 22:18:25 mail postfix/smtps/smtpd[2128]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:18:25 mail postfix/smtps/smtpd[2128]: connect from unknown[185.29.8.10]
Apr 8 22:18:26 mail postfix/smtps/smtpd[2128]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:18:31 mail postfix/smtps/smtpd[2128]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:18:31 mail postfix/smtps/smtpd[2128]: disconnect from unknown[185.29.8.10]
Apr 8 22:18:31 mail postfix/smtps/smtpd[2007]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:18:31 mail postfix/smtps/smtpd[2007]: connect from unknown[185.29.8.10]
Apr 8 22:18:32 mail postfix/smtps/smtpd[2007]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:18:37 mail postfix/smtps/smtpd[2007]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:18:37 mail postfix/smtps/smtpd[2007]: disconnect from unknown[185.29.8.10]
Apr 8 22:18:37 mail postfix/smtps/smtpd[2066]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:18:37 mail postfix/smtps/smtpd[2066]: connect from unknown[185.29.8.10]
Apr 8 22:18:37 mail postfix/smtps/smtpd[2066]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:18:41 mail postfix/smtps/smtpd[2066]: warning: unknown[185.29.8.10]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Apr 8 22:18:48 mail postfix/smtps/smtpd[2066]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:18:48 mail postfix/smtps/smtpd[2066]: disconnect from unknown[185.29.8.10]
Apr 8 22:18:49 mail postfix/smtps/smtpd[2135]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:18:49 mail postfix/smtps/smtpd[2135]: connect from unknown[185.29.8.10]
Apr 8 22:18:49 mail postfix/smtps/smtpd[2135]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:18:55 mail postfix/smtps/smtpd[2135]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:18:55 mail postfix/smtps/smtpd[2135]: disconnect from unknown[185.29.8.10]
Apr 8 22:18:55 mail postfix/smtps/smtpd[2007]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:18:55 mail postfix/smtps/smtpd[2007]: connect from unknown[185.29.8.10]
Apr 8 22:18:55 mail postfix/smtps/smtpd[2007]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:18:59 mail postfix/smtps/smtpd[2007]: warning: unknown[185.29.8.10]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Apr 8 22:19:00 mail postfix/smtps/smtpd[2007]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:19:00 mail postfix/smtps/smtpd[2007]: disconnect from unknown[185.29.8.10]
Apr 8 22:19:02 mail postfix/smtps/smtpd[2128]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:19:02 mail postfix/smtps/smtpd[2128]: connect from unknown[185.29.8.10]
Apr 8 22:19:06 mail postfix/smtps/smtpd[2128]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:19:10 mail postfix/submission/smtpd[2336]: connect from mail.pkumun.org.cn[127.0.0.1]
Apr 8 22:19:10 mail postfix/submission/smtpd[2336]: Anonymous TLS connection established from mail.pkumun.org.cn[127.0.0.1]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:19:10 mail postfix/submission/smtpd[2336]: D7CA98176F: client=mail.pkumun.org.cn[127.0.0.1], sasl_method=LOGIN, sasl_username=zhouhongbo@pkumun.org.cn
Apr 8 22:19:10 mail postfix/cleanup[2343]: D7CA98176F: message-id=<0d2c681b923e058dc104adffb045ea71@pkumun.org.cn>
Apr 8 22:19:10 mail postfix/qmgr[1388]: D7CA98176F: from=<zhouhongbo@pkumun.org.cn>, size=744, nrcpt=1 (queue active)
Apr 8 22:19:10 mail roundcube: <46fvknkd> User zhouhongbo@pkumun.org.cn [115.27.217.183]; Message for 345598726@qq.com; 250: 2.0.0 Ok: queued as D7CA98176F
Apr 8 22:19:10 mail postfix/submission/smtpd[2336]: disconnect from mail.pkumun.org.cn[127.0.0.1]
Apr 8 22:19:13 mail postfix/smtps/smtpd[2128]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:19:13 mail postfix/smtps/smtpd[2128]: disconnect from unknown[185.29.8.10]
Apr 8 22:19:15 mail postfix/smtps/smtpd[2066]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:19:15 mail postfix/smtps/smtpd[2066]: connect from unknown[185.29.8.10]
Apr 8 22:19:15 mail postfix/smtps/smtpd[2066]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:19:19 mail postfix/smtps/smtpd[2066]: warning: unknown[185.29.8.10]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Apr 8 22:19:19 mail postfix/smtps/smtpd[2066]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:19:19 mail postfix/smtps/smtpd[2066]: disconnect from unknown[185.29.8.10]
Apr 8 22:19:20 mail postfix/smtps/smtpd[2135]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:19:20 mail postfix/smtps/smtpd[2135]: connect from unknown[185.29.8.10]
Apr 8 22:19:20 mail postfix/smtps/smtpd[2135]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:19:25 mail postfix/smtps/smtpd[2135]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:19:25 mail postfix/smtps/smtpd[2135]: disconnect from unknown[185.29.8.10]
Apr 8 22:19:25 mail postfix/smtps/smtpd[2007]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:19:25 mail postfix/smtps/smtpd[2007]: connect from unknown[185.29.8.10]
Apr 8 22:19:26 mail postfix/smtps/smtpd[2007]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:19:31 mail postfix/smtps/smtpd[2007]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:19:31 mail postfix/smtps/smtpd[2007]: disconnect from unknown[185.29.8.10]
Apr 8 22:19:31 mail postfix/smtps/smtpd[2128]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:19:31 mail postfix/smtps/smtpd[2128]: connect from unknown[185.29.8.10]
Apr 8 22:19:31 mail postfix/smtps/smtpd[2128]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:19:35 mail postfix/smtps/smtpd[2128]: warning: unknown[185.29.8.10]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Apr 8 22:19:35 mail postfix/smtps/smtpd[2128]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:19:35 mail postfix/smtps/smtpd[2128]: disconnect from unknown[185.29.8.10]
Apr 8 22:19:36 mail postfix/smtps/smtpd[2135]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:19:36 mail postfix/smtps/smtpd[2135]: connect from unknown[185.29.8.10]
Apr 8 22:19:37 mail postfix/smtps/smtpd[2135]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:19:40 mail postfix/smtp[2305]: connect to mx3.qq.com[183.57.48.35]:25: Connection timed out
Apr 8 22:20:10 mail postfix/smtp[2305]: connect to mx2.qq.com[183.60.15.138]:25: Connection timed out
Apr 8 22:20:13 mail postfix/smtps/smtpd[2135]: warning: unknown[185.29.8.10]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
Apr 8 22:20:13 mail postfix/smtps/smtpd[2135]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:20:13 mail postfix/smtps/smtpd[2135]: disconnect from unknown[185.29.8.10]
Apr 8 22:20:14 mail postfix/smtps/smtpd[2007]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:20:14 mail postfix/smtps/smtpd[2007]: connect from unknown[185.29.8.10]
Apr 8 22:20:14 mail postfix/smtps/smtpd[2007]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:20:20 mail postfix/smtps/smtpd[2066]: warning: hostname ip-8-10.dataclub.biz does not resolve to address 185.29.8.10: Name or service not known
Apr 8 22:20:20 mail postfix/smtps/smtpd[2066]: connect from unknown[185.29.8.10]
Apr 8 22:20:23 mail postfix/smtps/smtpd[2066]: Anonymous TLS connection established from unknown[185.29.8.10]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
Apr 8 22:20:23 mail postfix/smtps/smtpd[2007]: lost connection after AUTH from unknown[185.29.8.10]
Apr 8 22:20:23 mail postfix/smtps/smtpd[2007]: disconnect from unknown[185.29.8.10]
我的main.cf文件如下:----------------------------------------------------------------------------------------------------
#
# INSTALL-TIME CONFIGURATION INFORMATION
#
# location of the Postfix queue. Default is /var/spool/postfix.
queue_directory = /var/spool/postfix
# location of all postXXX commands. Default is /usr/sbin.
command_directory = /usr/sbin
# location of all Postfix daemon programs (i.e. programs listed in the
# master.cf file). This directory must be owned by root.
# Default is /usr/libexec/postfix
daemon_directory = /usr/lib/postfix
# location of Postfix-writable data files (caches, random numbers).
# This directory must be owned by the mail_owner account (see below).
# Default is /var/lib/postfix.
data_directory = /var/lib/postfix
# owner of the Postfix queue and of most Postfix daemon processes.
# Specify the name of a user account THAT DOES NOT SHARE ITS USER OR GROUP ID
# WITH OTHER ACCOUNTS AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM.
# In particular, don't specify nobody or daemon. PLEASE USE A DEDICATED USER.
# Default is postfix.
mail_owner = postfix
# The following parameters are used when installing a new Postfix version.
#
# sendmail_path: The full pathname of the Postfix sendmail command.
# This is the Sendmail-compatible mail posting interface.
#
sendmail_path = /usr/sbin/sendmail
# newaliases_path: The full pathname of the Postfix newaliases command.
# This is the Sendmail-compatible command to build alias databases.
#
newaliases_path = /usr/bin/newaliases
# full pathname of the Postfix mailq command. This is the Sendmail-compatible
# mail queue listing command.
mailq_path = /usr/bin/mailq
# group for mail submission and queue management commands.
# This must be a group name with a numerical group ID that is not shared with
# other accounts, not even with the Postfix account.
setgid_group = postdrop
# external command that is executed when a Postfix daemon program is run with
# the -D option.
#
# Use "command .. & sleep 5" so that the debugger can attach before
# the process marches on. If you use an X-based debugger, be sure to
# set up your XAUTHORITY environment variable before starting Postfix.
#
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
debug_peer_level = 2
# --------------------
# CUSTOM SETTINGS
#
# SMTP server response code when recipient or domain not found.
unknown_local_recipient_reject_code = 550
# Do not notify local user.
biff = no
# Disable the rewriting of "site!user" into "user@site".
swap_bangpath = no
# Disable the rewriting of the form "user%domain" to "user@domain".
allow_percent_hack = no
# Allow recipient address start with '-'.
allow_min_user = no
# Disable the SMTP VRFY command. This stops some techniques used to
# harvest email addresses.
disable_vrfy_command = yes
# Enable both IPv4 and/or IPv6: ipv4, ipv6, all.
inet_protocols = ipv4
# Enable all network interfaces.
inet_interfaces = all
#
# TLS settings.
#
# SSL key, certificate, CA
#
smtpd_tls_key_file = /etc/ssl/private/server.key
smtpd_tls_cert_file = /etc/ssl/certs/server.crt
smtpd_tls_CAfile = /etc/ssl/certs/server.ca-bundle
#
# Disable SSLv2, SSLv3
#
smtpd_tls_protocols = !SSLv2 !SSLv3
smtpd_tls_mandatory_protocols = !SSLv2 !SSLv3
smtp_tls_protocols = !SSLv2 !SSLv3
smtp_tls_mandatory_protocols = !SSLv2 !SSLv3
lmtp_tls_protocols = !SSLv2 !SSLv3
lmtp_tls_mandatory_protocols = !SSLv2 !SSLv3
#
# Fix 'The Logjam Attack'.
#
smtpd_tls_exclude_ciphers = aNULL, eNULL, EXPORT, DES, RC4, MD5, PSK, aECDH, EDH-DSS-DES-CBC3-SHA, EDH-RSA-DES-CDC3-SHA, KRB5-DE5, CBC3-SHA
smtpd_tls_dh512_param_file = /etc/ssl/dh512_param.pem
smtpd_tls_dh1024_param_file = /etc/ssl/dh2048_param.pem
tls_random_source = dev:/dev/urandom
# Log only a summary message on TLS handshake completion — no logging of client
# certificate trust-chain verification errors if client certificate
# verification is not required. With Postfix 2.8 and earlier, log the summary
# message, peer certificate summary information and unconditionally log
# trust-chain verification errors.
smtp_tls_loglevel = 1
smtpd_tls_loglevel = 1
# Opportunistic TLS: announce STARTTLS support to remote SMTP clients, but do
# not require that clients use TLS encryption.
smtpd_tls_security_level = may
# Produce `Received:` message headers that include information about the
# protocol and cipher used, as well as the remote SMTP client CommonName and
# client certificate issuer CommonName.
# This is disabled by default, as the information may be modified in transit
# through other mail servers. Only information that was recorded by the final
# destination can be trusted.
#smtpd_tls_received_header = yes
# Opportunistic TLS, used when Postfix sends email to remote SMTP server.
# Use TLS if this is supported by the remote SMTP server, otherwise use
# plaintext.
# References:
# - http://www.postfix.org/TLS_README.html#client_tls_may
# - http://www.postfix.org/postconf.5.html# … rity_level
smtp_tls_security_level = may
# Use the same CA file as smtpd.
smtp_tls_CAfile = $smtpd_tls_CAfile
smtp_tls_note_starttls_offer = yes
# Enable long, non-repeating, queue IDs (queue file names).
# The benefit of non-repeating names is simpler logfile analysis and easier
# queue migration (there is no need to run "postsuper" to change queue file
# names that don't match their message file inode number).
#enable_long_queue_ids = yes
# Reject unlisted sender and recipient
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
# Header and body checks with PCRE table
header_checks = pcre:/etc/postfix/header_checks
body_checks = pcre:/etc/postfix/body_checks.pcre
# A mechanism to transform commands from remote SMTP clients.
# This is a last-resort tool to work around client commands that break
# interoperability with the Postfix SMTP server. Other uses involve fault
# injection to test Postfix's handling of invalid commands.
# Requires Postfix-2.7+.
#smtpd_command_filter = pcre:/etc/postfix/command_filter.pcre
# HELO restriction
smtpd_helo_required = yes
smtpd_helo_restrictions =
permit_mynetworks
permit_sasl_authenticated
reject_non_fqdn_helo_hostname
reject_unknown_helo_hostname
check_helo_access pcre:/etc/postfix/helo_access.pcre
# Sender restrictions
smtpd_sender_restrictions =
reject_unknown_sender_domain
reject_non_fqdn_sender
reject_unlisted_sender
permit_mynetworks
permit_sasl_authenticated
check_sender_access pcre:/etc/postfix/sender_access.pcre
# Recipient restrictions
smtpd_recipient_restrictions =
reject_unknown_recipient_domain
reject_non_fqdn_recipient
reject_unlisted_recipient
check_policy_service inet:127.0.0.1:7777
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination
# END-OF-MESSAGE restrictions
smtpd_end_of_data_restrictions =
check_policy_service inet:127.0.0.1:7777
# Data restrictions
smtpd_data_restrictions = reject_unauth_pipelining
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions $sender_dependent_relayhost_maps
# Avoid duplicate recipient messages. Default is 'yes'.
enable_original_recipient = no
# Virtual support.
virtual_minimum_uid = 2000
virtual_uid_maps = static:2000
virtual_gid_maps = static:2000
virtual_mailbox_base = /var/vmail
# Do not set virtual_alias_domains.
virtual_alias_domains =
#
# Enable SASL authentication on port 25 and force TLS-encrypted SASL authentication.
# WARNING: NOT RECOMMENDED to enable smtp auth on port 25, all end users should
# be forced to submit email through port 587 instead.
#
#smtpd_sasl_auth_enable = yes
#smtpd_sasl_security_options = noanonymous
#smtpd_tls_auth_only = yes
# hostname
myhostname = mail.pkumun.org.cn
myorigin = mail.pkumun.org.cn
mydomain = mail.pkumun.org.cn
# trusted SMTP clients which are allowed to relay mail through Postfix.
#
# Note: additional IP addresses/networks listed in mynetworks should be listed
# in iRedAPD setting 'MYNETWORKS' (in `/opt/iredapd/settings.py`) too.
# for example:
#
# MYNETWORKS = ['xx.xx.xx.xx', 'xx.xx.xx.0/24', ...]
#
mynetworks = 127.0.0.1
# Accepted local emails
mydestination = $myhostname, localhost, localhost.localdomain
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
# Default message_size_limit.
message_size_limit = 104857600
# The set of characters that can separate a user name from its extension
# (example: user+foo), or a .forward file name from its extension (example:
# .forward+foo).
# Postfix 2.11 and later supports multiple characters.
recipient_delimiter = +
# The time after which the sender receives a copy of the message headers of
# mail that is still queued. Default setting is disabled (0h) by Postfix.
#delay_warning_time = 1h
#
# Lookup virtual mail accounts
#
transport_maps =
proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf
proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf
sender_dependent_relayhost_maps =
proxy:mysql:/etc/postfix/mysql/sender_dependent_relayhost_maps.cf
# Lookup table with the SASL login names that own the sender (MAIL FROM) addresses.
smtpd_sender_login_maps =
proxy:mysql:/etc/postfix/mysql/sender_login_maps.cf
virtual_mailbox_domains =
proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
relay_domains =
$mydestination
proxy:mysql:/etc/postfix/mysql/relay_domains.cf
virtual_mailbox_maps =
proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_alias_maps =
proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf
proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf
proxy:mysql:/etc/postfix/mysql/catchall_maps.cf
proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf
sender_bcc_maps =
proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf
proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_domain.cf
recipient_bcc_maps =
proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_user.cf
proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_domain.cf
#
# Postscreen
#
postscreen_greet_action = enforce
postscreen_blacklist_action = enforce
postscreen_dnsbl_action = enforce
postscreen_dnsbl_threshold = 2
postscreen_dnsbl_sites =
zen.spamhaus.org=127.0.0.[2..11]*3
b.barracudacentral.org=127.0.0.[2..11]*2
postscreen_dnsbl_reply_map = texthash:/etc/postfix/postscreen_dnsbl_reply
postscreen_access_list = permit_mynetworks cidr:/etc/postfix/postscreen_access.cidr
# Require Postfix-2.11+
postscreen_dnsbl_whitelist_threshold = -2
#
# Dovecot SASL support.
#
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/dovecot-auth
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
#
# Amavisd + SpamAssassin + ClamAV
#
# content_filter = smtp-amavis:[127.0.0.1]:10024
# Concurrency per recipient limit.
smtp-amavis_destination_recipient_limit = 1
mailbox_size_limit = 104857600
master.cf文件如下:----------------------------------------------------------------------------------------------------
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master" or
# on-line: http://www.postfix.org/master.5.html).
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
#smtp inet n - - - - smtpd
smtp inet n - - - 1 postscreen
smtpd pass - - - - - smtpd
dnsblog unix - - - - 0 dnsblog
tlsproxy unix - - - - 0 tlsproxy
#submission inet n - - - - smtpd
# -o syslog_name=postfix/submission
# -o smtpd_tls_security_level=encrypt
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_reject_unlisted_recipient=no
# -o smtpd_client_restrictions=$mua_client_restrictions
# -o smtpd_helo_restrictions=$mua_helo_restrictions
# -o smtpd_sender_restrictions=$mua_sender_restrictions
# -o smtpd_recipient_restrictions=
# -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
#smtps inet n - - - - smtpd
# -o syslog_name=postfix/smtps
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_reject_unlisted_recipient=no
# -o smtpd_client_restrictions=$mua_client_restrictions
# -o smtpd_helo_restrictions=$mua_helo_restrictions
# -o smtpd_sender_restrictions=$mua_sender_restrictions
# -o smtpd_recipient_restrictions=
# -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
#628 inet n - - - - qmqpd
pickup unix n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr unix n - n 300 1 qmgr
#qmgr unix n - n 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
relay unix - - - - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# ====================================================================
#
# Recent Cyrus versions can use the existing "lmtp" master.cf entry.
#
# Specify in cyrus.conf:
# lmtp cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
#
# Specify in main.cf one or more of the following:
# mailbox_transport = lmtp:inet:localhost
# virtual_transport = lmtp:inet:localhost
#
# ====================================================================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus unix - n n - - pipe
# user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
# Old example of delivery via Cyrus.
#
#old-cyrus unix - n n - - pipe
# flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
#
# ====================================================================
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
# Submission, port 587, force TLS connection.
submission inet n - n - - smtpd
-o syslog_name=postfix/submission
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
# -o content_filter=smtp-amavis:[127.0.0.1]:10026
#-o smtpd_upstream_proxy_protocol=haproxy
# Use dovecot's `deliver` program as LDA.
dovecot unix - n n - - pipe
flags=DRh user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${domain} -m ${extension}
# Amavisd integration.
smtp-amavis unix - - n - 2 smtp
-o syslog_name=postfix/smtp-amavis
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes
-o max_use=20
127.0.0.1:10025 inet n - n - - smtpd
-o syslog_name=postfix/10025
-o content_filter=
-o mynetworks_style=host
-o mynetworks=127.0.0.0/8
-o local_recipient_maps=
-o relay_recipient_maps=
-o strict_rfc821_envelopes=yes
-o smtp_tls_security_level=none
-o smtpd_tls_security_level=none
-o smtpd_restriction_classes=
-o smtpd_delay_reject=no
-o smtpd_client_restrictions=permit_mynetworks,reject
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o smtpd_end_of_data_restrictions=
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o smtpd_client_connection_count_limit=0
-o smtpd_client_connection_rate_limit=0
-o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_address_mappings
#-o smtpd_upstream_proxy_protocol=haproxy
465 inet n - n - - smtpd
-o syslog_name=postfix/smtps
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.6
- 使用哪个数据库存储用户帐号 MySQL
- 使用的 Linux/BSD 发行版名称及版本号:Ubuntu14.04
- 与您的问题相关的日志信息:
各种
connect to 163mx02.mxmail.netease.com[220.181.14.147]:25: Connection timed out
====
已经按照http://iredmail.com/docs/enable.smtps.html所说启用了SMTPS,现在无论是用roundcube还是foxmail(设置了SSL+465端口)都是能收不能发,看日志貌似是发送的时候后台用的还是25端口,请问如何在不修改端口转发的情况下,让后台使用465或者587啥的向外发邮件?
看了遍文档不知道是没写还是没找到。。
谢谢张工~
zhbzhbzhbz199102 写道:Mar 6 20:46:51 mail amavis[1169]: (01169-02) Blocked BANNED (.asc,html5_notifier/html5_notifier.js) {NoBounceInbound}, [183.60.2.40]:40605 [183.60.2.40] <345598726@qq.com> -> , Queue-ID: 6A07942568, Message-ID: , mail_id: CM-jOOLx3B4h, Hits: -, size: 1355404, dkim_sd=s201512:qq.com, 355 ms
附件文件格式被拒了。
zhbzhbzhbz199102 写道:Mar 6 22:27:43 mail postfix/smtpd[2762]: NOQUEUE: reject: RCPT from SMTPBG354.QQ.COM[59.37.110.87]: 450 4.7.1 <smtpbg.qq.com>: Helo command rejected: Host not found; from=<345598726@qq.com> to=<admin@pkumun.org.cn> proto=ESMTP helo=<smtpbg.qq.com>
这个就有意思了。
从 log 看,它的实际的主机名是 smtpbg354.qq.com,但是却在 HELO 指令里使用主机名 smtpbg.qq.com,而 smtpbg 在 DNS 里无法解析。腾讯可有意思了。
可行的办法是:在 postfix 的 main.cf 里将它列入白名单。但是这个是 qq 的问题。
Soga谢谢~
没注意看,原来是附件格式的问题。
看了一下,附件格式的话,在/etc/amavis/conf.d/50-user中查找关键字"Dangerous"就能找到两个列表(屏蔽特定mime和特定扩展名的文件)
哈哈哈腾讯是比较有意思。
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.6
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):MySQL
- 使用的 Linux/BSD 发行版名称及版本号:ubuntu 14.04 x64
- 与您的问题相关的日志信息:
====
我现在是关闭了greylisting服务,然后按“Stop virus/spam scanning, keep DKIM signing/verification and Disclaimer”所说去掉了两个注释,然后按“对外发邮件禁用垃圾扫描、病毒扫描”说的也做了。
现在的情况是域内互相发附件没问题,附件发出去没问题,但是比如说从qq发附件进来,在qq邮箱那端现在是“投递成功”,但是在roundcube和比如foxmail里都看不到这个邮件,而且不是一定收不到,比如我发了一个6M的rar就可以,但是发3个zip+1txt+1docx(加一起才2M)就不行,然后在后者的5个文件里抽1个txt和1个zip就可以。不过按理说我如果关闭了扫描功能,应该不会被拦截吧。
Mar 6 20:46:48 mail postfix/smtpd[2403]: connect from smtpbg124.qq.com[183.60.2.40]
Mar 6 20:46:49 mail postfix/smtpd[2403]: Anonymous TLS connection established from smtpbg124.qq.com[183.60.2.40]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Mar 6 20:46:49 mail postfix/smtpd[2403]: 6A07942568: client=smtpbg124.qq.com[183.60.2.40]
Mar 6 20:46:49 mail postfix/cleanup[2419]: 6A07942568: message-id=<tencent_6561149A7F356E263AAD1F71@qq.com>
Mar 6 20:46:50 mail postfix/qmgr[1970]: 6A07942568: from=<345598726@qq.com>, size=1355404, nrcpt=1 (queue active)
Mar 6 20:46:50 mail postfix/smtpd[2403]: disconnect from smtpbg124.qq.com[183.60.2.40]
Mar 6 20:46:51 mail amavis[1169]: (01169-02) Blocked BANNED (.asc,html5_notifier/html5_notifier.js) {NoBounceInbound}, [183.60.2.40]:40605 [183.60.2.40] <345598726@qq.com> -> , Queue-ID: 6A07942568, Message-ID: , mail_id: CM-jOOLx3B4h, Hits: -, size: 1355404, dkim_sd=s201512:qq.com, 355 ms
然后我打开了amavisd的日志选项,发现了如下错误,不过不知道为什么
Mar 6 22:08:45 mail amavis[1197]: (01197-01) dkim: public key s=s201512 d=qq.com v=DKIM1 k=rsa
Mar 6 22:08:45 mail amavis[1197]: (01197-01) dkim: FAILED Author+Sender+MailFrom signature by d=qq.com, From: <345598726@qq.com>, a=rsa-sha256, c=relaxed/relaxed, s=s201512, i=@qq.com, fail (body has been altered)
Mar 6 22:08:45 mail amavis[1197]: (01197-01) Original mail size: 23072; quota set to: 11536000 bytes
Mar 6 22:08:45 mail amavis[1197]: (01197-01) sql begin, nontransaction
Mar 6 22:08:45 mail amavis[1197]: (01197-01) sql: preparing and executing: SELECT id FROM maddr WHERE partition_tag=? AND email=?
Mar 6 22:27:41 mail postfix/postscreen[2759]: CONNECT from [59.37.110.87]:35785 to [139.129.242.86]:25
Mar 6 22:27:42 mail postfix/postscreen[2759]: PASS OLD [59.37.110.87]:35785
Mar 6 22:27:42 mail postfix/smtpd[2762]: connect from SMTPBG354.QQ.COM[59.37.110.87]
Mar 6 22:27:43 mail postfix/smtpd[2762]: Anonymous TLS connection established from smtpbg354.qq.com[59.37.110.87]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Mar 6 22:27:43 mail postfix/smtpd[2762]: NOQUEUE: reject: RCPT from SMTPBG354.QQ.COM[59.37.110.87]: 450 4.7.1 <smtpbg.qq.com>: Helo command rejected: Host not found; from=<345598726@qq.com> to=<admin@pkumun.org.cn> proto=ESMTP helo=<smtpbg.qq.com>
Mar 6 22:27:43 mail postfix/smtpd[2762]: disconnect from SMTPBG354.QQ.COM[59.37.110.87]
我现在只能是先彻底禁用反病毒/反垃圾邮件
==== ==== ==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.6
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):Mysql
- 使用的 Linux/BSD 发行版名称及版本号:ubuntu 14.04 x64
====
自己写的一个简单的插件,效果是一个用户第一次登陆到roundcube之后会收到一封欢迎邮件,写的比较简单,欢迎大家在此基础上修改。
https://github.com/zhbzhbzhbz/roundcube-welcome-mail
需要手工将地址填入地址簿,或者在已发送的邮件里找到收件人地址,点那个加号(➕)的小图标将它添加到地址簿。
找到了这个插件,测试了一下很好用,发送过的邮件地址会自动添加到地址簿里,同时会检查是否已经存在这个地址,存在就不会添加https://plugins.roundcube.net/packages/ … essbook_ng
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.6
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):MySQL
- 使用的 Linux/BSD 发行版名称及版本号:Ubuntu 14.04 x64
- 与您的问题相关的日志信息:无
====
您好~请问如何可以在RoundCube里填写收件人时,根据已发送的地址自动补全?(类似QQ邮箱那种)比如我给example@qq.com发送过邮件,那么我输入exa时就会提示example@qq.com~
页次 1
iRedMail 开源邮件服务解决方案 » 由 zhbzhbzhbz199102 发表的文章
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2010 PunBB.
页面生成时间 0.015 秒, 共执行查询 73 条