注意:我没有手动安装任何东西,这都是通过Virtualmin sh安装脚本安装的。 我已经用脚本重新安装了4次,每次都有相同的问题。 然而,似乎没有其他人知道这件事?
不能得到后缀与Dovecot结合工作,我很新,但这是我可以认为提供帮助的数据。
任何帮助将不胜感激,
最初的主要问题是Postfix甚至不会运行,然后我在/etc/postfix/main.cf中更改了以下行,并在末尾添加了=。
“permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination =”
根据另一个指导,因为这些variables没有初始化,它的工作,让它再次运行。
现在我有后缀运行,但不能“连接到存储服务器”。 如果我使用错误的login凭据,我得到“login失败”如果我使用正确的凭据,我得到“无法连接到存储服务器”从roundcube,告诉我dovecot工作正常,但在某处过渡到与Postfix交谈是rest。 ( 我假设 )
我不知道该从哪里出发。
我已经排除了任何数据到其他不隶属于的程序,如果我可能遗漏了一些东西,请告诉我。
我没有看到任何从后缀的任何logging或拉数据。
SS -tulpan
tcp LISTEN 0 0 *:25 *:* users:(("master",pid=596,fd=13)) tcp LISTEN 0 0 *:993 *:* users:(("dovecot",pid=881,fd=38)) tcp LISTEN 0 0 *:995 *:* users:(("dovecot",pid=881,fd=25)) tcp LISTEN 0 0 :::110 :::* users:(("dovecot",pid=881,fd=24)) tcp LISTEN 0 0 :::143 :::* users:(("dovecot",pid=881,fd=37)) tcp LISTEN 0 0 :::25 :::* users:(("master",pid=596,fd=14))
ss -anlp | grep:25
tcp LISTEN 0 0 *:25 *:* users:(("master",pid=574,fd=13)) tcp LISTEN 0 0 :::25 :::* users:(("master",pid=574,fd=14)) tcp LISTEN 0 0 *:25 *:* users:(("master",pid=574,fd=13)) tcp LISTEN 0 0 :::25 :::* users:(("master",pid=574,fd=14))
这里是(ps aux | grep sasl)结果
root 148 0.0 0.0 71192 976 ? Ss 03:11 0:00 /usr/sbin/saslauthd -m /run/saslauthd -a pam -n 2 -r root 149 0.0 0.0 71192 720 ? S 03:11 0:00 /usr/sbin/saslauthd -m /run/saslauthd -a pam -n 2 -r root 3135 0.0 0.0 8988 928 pts/0 S+ 04:11 0:00 grep --color=auto sasl [root@dns ~]# ps auxw | grep saslauth root 148 0.0 0.0 71192 976 ? Ss 03:11 0:00 /usr/sbin/saslauthd -m /run/saslauthd -a pam -n 2 -r root 149 0.0 0.0 71192 720 ? S 03:11 0:00 /usr/sbin/saslauthd -m /run/saslauthd -a pam -n 2 -r root 3137 0.0 0.0 8988 936 pts/0 S+ 04:12 0:00 grep --color=auto saslauth
Postfix的信息不应该在这里吗?
最近的日志来自maillog
Dec 21 03:11:40 dns postfix/postfix-script[583]: starting the Postfix mail system Dec 21 03:11:40 dns postfix/master[596]: daemon started -- version 2.10.1, configuration /etc/postfix Dec 21 03:11:46 dns dovecot: master: Dovecot v2.2.10 starting up for imap, pop3 (core dumps disabled) Dec 21 03:11:47 dns spamd[432]: spamd: server started on IO::Socket::IP [127.0.0.1]:783, IO::Socket::IP [::1]:783 (running version 3.4.0) Dec 21 03:11:47 dns spamd[432]: spamd: server pid: 432 Dec 21 03:11:48 dns spamd[432]: spamd: server successfully spawned child process, pid 890 Dec 21 03:11:48 dns spamd[432]: spamd: server successfully spawned child process, pid 891 Dec 21 03:11:48 dns spamd[432]: prefork: child states: IS Dec 21 03:11:48 dns spamd[432]: prefork: child states: II Dec 21 04:53:52 dns dovecot: imap: Error: user (username): Mail access for users with UID 503 not permitted (see first_valid_uid in config file, uid from userdb lookup). Dec 21 04:53:52 dns dovecot: imap: Error: Invalid user settings. Refer to server log for more information.
systemctl status postfix -l
Active: active (running) since Wed 2016-12-21 03:11:40 UTC; 3h 24min ago Process: 161 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS) Process: 150 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, sta tus=0/SUCCESS) Process: 119 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status= 0/SUCCESS) Main PID: 596 (master) CGroup: /system.slice/postfix.service |- 596 /usr/libexec/postfix/master -w |- 618 qmgr -l -t unix -u `-7229 pickup -l -t unix -u Dec 21 03:11:35 dns systemd[1]: Starting Postfix Mail Transport Agent... Dec 21 03:11:40 dns postfix/postfix-script[583]: starting the Postfix mail syste m Dec 21 03:11:40 dns postfix/master[596]: daemon started -- version 2.10.1, confi guration /etc/postfix Dec 21 03:11:40 dns systemd[1]: Started Postfix Mail Transport Agent. Dec 21 05:04:04 dns postfix/smtpd[4801]: connect from rrcs-69-75-253-234.west.bi z.rr.com[69.75.253.234] Dec 21 05:04:07 dns postfix/smtpd[4801]: warning: rrcs-69-75-253-234.west.biz.rr .com[69.75.253.234]: SASL LOGIN authentication failed: authentication failure Dec 21 05:04:07 dns postfix/smtpd[4801]: disconnect from rrcs-69-75-253-234.west .biz.rr.com[69.75.253.234] Dec 21 06:18:06 dns postfix/smtpd[6817]: connect from rrcs-69-75-253-234.west.bi z.rr.com[69.75.253.234] Dec 21 06:18:08 dns postfix/smtpd[6817]: warning: rrcs-69-75-253-234.west.biz.rr .com[69.75.253.234]: SASL LOGIN authentication failed: authentication failure Dec 21 06:18:08 dns postfix/smtpd[6817]: disconnect from rrcs-69-75-253-234.west .biz.rr.com[69.75.253.234]
这个试图通过postfi / smtpdlogin的远程地址不是我,这个“攻击者”可以和它有什么关系吗?
systemctl状态dovecot -l
Active: active (running) since Wed 2016-12-21 03:11:46 UTC; 3h 25min ago Process: 872 ExecStartPre=/usr/libexec/dovecot/prestartscript (code=exited, status=0/SUCCESS) Main PID: 881 (dovecot) CGroup: /system.slice/dovecot.service |- 881 /usr/sbin/dovecot -F |- 886 dovecot/anvil |- 887 dovecot/log |-4184 dovecot/config `-4185 dovecot/auth Dec 21 04:08:08 dns dovecot[887]: imap: Error: Invalid user settings. Refer to server log for more information. Dec 21 04:40:10 dns auth[3830]: pam_unix(dovecot:auth): check pass; user unknown Dec 21 04:40:10 dns auth[3830]: pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot ruser=USERNAME rhost=::1 Dec 21 04:40:13 dns dovecot[887]: imap-login: Disconnected (auth failed, 1 attempts in 3 secs): user=<FULLUSERNAME>, method=PLAIN, rip=::1, lip=: :1, secured, session=<ppp6vyNEHAAAAAAAAAAAAAAAAAAAAAAB> Dec 21 04:40:29 dns dovecot[887]: imap-login: Login: user=<FULLUSERNAME>, method=PLAIN, rip=::1, lip=::1, mpid=3833, secured, ses sion=<qptWwCNEiAAAAAAAAAAAAAAAAAAAAAAB> Dec 21 04:40:29 dns dovecot[887]: imap: Error: user USERNAME: Mail access for users with UID 503 not permitted (see first_val id_uid in config file, uid from userdb lookup). Dec 21 04:40:29 dns dovecot[887]: imap: Error: Invalid user settings. Refer to server log for more information. Dec 21 04:53:52 dns dovecot[887]: imap-login: Login: user=<FULLUSERNAME>, method=PLAIN, rip=::1, lip=::1, mpid=4187, secured, ses sion=<odB38CNEKgAAAAAAAAAAAAAAAAAAAAAB> Dec 21 04:53:52 dns dovecot[887]: imap: Error: user FULLUSERNAME: Mail access for users with UID 503 not permitted (see first_val id_uid in config file, uid from userdb lookup). Dec 21 04:53:52 dns dovecot[887]: imap: Error: Invalid user settings. Refer to server log for more information.
需要注意的是:当我运行“ss”时,我得到了很多“无法打开netlink套接字:协议不支持”,显然是因为Centos7不支持netlink与ss做的所有function。 所以我收集的一些数据可能不好。 让我知道你可能需要什么,我会提供。
更新: Postfix再次下降。 哈哈,有新的信息。
Active: failed (Result: exit-code) since Wed 2016-12-21 08:35:18 UTC; 25s ago Process: 9028 ExecStop=/usr/sbin/postfix stop (code=exited, status=1/FAILURE) Process: 12229 ExecStart=/usr/sbin/postfix start (code=exited, status=1/FAILURE) Process: 12226 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS) Process: 12222 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS) Main PID: 596 (code=killed, signal=TERM) Dec 21 08:35:15 dns systemd[1]: Starting Postfix Mail Transport Agent... Dec 21 08:35:16 dns postfix/postfix-script[12298]: starting the Postfix mail system Dec 21 08:35:16 dns postfix/master[12300]: fatal: open lock file /var/lib/postfix/master.lock: unable to set exclusive lock: Resource temporarily unavailable Dec 21 08:35:17 dns postfix/master[12299]: fatal: daemon initialization failure Dec 21 08:35:18 dns postfix/postfix-script[12301]: fatal: mail system startup failed Dec 21 08:35:18 dns systemd[1]: postfix.service: control process exited, code=exited status=1 Dec 21 08:35:18 dns systemd[1]: Failed to start Postfix Mail Transport Agent. Dec 21 08:35:18 dns systemd[1]: Unit postfix.service entered failed state. Dec 21 08:35:18 dns systemd[1]: postfix.service failed.
在此先感谢您的帮助 。 问候,凯尔
根据我提供的信息,Postfix(或者Virtualmin安装)没有什么问题。
你的Postfix被SIGTERM杀死了; 它看起来不像是崩溃,它看起来像被告知closures。 我想这是OOM杀手踢出来的,因为系统中没有足够的内存来存放你想要运行的所有东西。
你有多less内存? 这个系统是一个带有所谓的“突发RAM”的VPS,而“保证内存”的数量要less得多。 在一个具有“爆裂RAM”的系统中,这意味着你将永远无法指望你的系统是稳定的……进程将被随机杀死,并且你无能为力,因为进程和内核不会不知道如何处理RAM突然消失; 但一些主机过度销售内存并以此方式进行宣传。 而且,它可能只是一个带有超量内存的VPS,没有标记为“突发内存”。
您通常可以在内核日志中findOOM错误(内存不足)错误(只需运行dmesg即可查看最近的内核日志条目)。
如果在内核日志中发现内存不足错误,则需要执行以下一项或多项操作:
我们在这里有一个减less内存使用的指南: https : //www.virtualmin.com/documentation/system/low-memory
编辑:另外,我不知道你的configuration在安装后有什么错误。 我在CentOS上进行的最后一次testing安装没有这个问题,但是如果它是可重复的,请提供一个错误来重现它,所以我可以修复它。 这可能(甚至可能)是由于系统导致所有其他问题的相同问题。 安装对内存的要求非常高,因为很多软件包会一次安装并启动。