Hello all.
I am having an issue with the email server on my CyberPanel VPS.
I am unable to connect via TLS/STARTTLS, with a mail client, even though I’ve installed the certificates.
I cannot receive emails. Logs show "Nov 17 05:25:26 ATL01 postfix/smtpd[337886]: 40491603DD: reject: DATA from outsidemailserver.tld[xx.xx.xxx.xxx]: 451 4.3.5 **Server configuration problem**; from=<chris.xxxxx@outside.tld> to=<chris.xxxx@inside.tld> proto=ESMTP helo=<mail-qt1-f182.google.com>
When trying to send email via SMTP, the mail client (thunderbird in this case) just reports a vague error and says there is a server configuration problem.
Yes, I can see the log clearly states Server configuration problem
But that is a super vague error message that provides little to no information.
Where do I get more logs, with details that could point me in the right direction?
DNS is setup and fine. MX, mail. A records, Domain A, TXT for SPF, etc.
Everything was fine until I added a new website, to the server, and activated it for email services.
But now mail is down for all my domains, on the server, not just the one I added.
Little bit of an update.
I finally managed to get it going well enough to get thunderbird to download existing emails.
I still cannot send emails to the server, from outside sources, nor send emails via SMTP from the server
Nov 17 21:09:57 ATL01 dovecot: imap-login: Login: user=<xxxxxxx@vincixxxxxx.com>, method=PLAIN, rip=73.122.136.155, lip=45.61.51.16, mpid=19267, TLS, session=<whvmArHt/9dJeoib>
Nov 17 21:11:41 ATL01 postfix/anvil[19139]: statistics: max connection rate 1/60s for (smtp:209.85.160.175) at Nov 17 21:07:43
Nov 17 21:11:41 ATL01 postfix/anvil[19139]: statistics: max connection count 1 for (smtp:209.85.160.175) at Nov 17 21:07:43
Nov 17 21:11:41 ATL01 postfix/anvil[19139]: statistics: max cache size 2 at Nov 17 21:07:49
Nov 17 21:13:41 ATL01 postfix/smtpd[19420]: connect from mail-qt1-f179.google.com[209.85.160.179]
Nov 17 21:13:41 ATL01 postfix/smtpd[19420]: 74E02603DD: client=mail-qt1-f179.google.com[209.85.160.179]
Nov 17 21:13:41 ATL01 postfix/smtpd[19420]: warning: connect to /var/log/policyServerSocket: No such file or directory
Nov 17 21:13:42 ATL01 postfix/smtpd[19420]: warning: connect to /var/log/policyServerSocket: No such file or directory
Nov 17 21:13:42 ATL01 postfix/smtpd[19420]: warning: problem talking to server /var/log/policyServerSocket: No such file or directory
Nov 17 21:13:42 ATL01 postfix/smtpd[19420]: 74E02603DD: reject: DATA from mail-qt1-f179.google.com[209.85.160.179]: 451 4.3.5 Server configuration problem; from=<xxxxxxxx@sitexxxxx.net> to=<xxxxxx@cncxxxxxx.com> proto=ESMTP h$
Nov 17 21:14:14 ATL01 postfix/smtpd[19420]: disconnect from mail-qt1-f179.google.com[209.85.160.179]
I still can’t find any logs that define what the Server configuration problem could be.
CyberPanel hides the proc filesystem (/proc/sys) from the shell that uses polkit (component for controlling system-wide privileges).
Solution: You need to create a group for polkitd user (polkitd provides the org.freedesktop.PolicyKit1 D-Bus service on the system message bus where admins or sudousers should not need to start this daemon cause it should be start by systemd)
Assign that group to access proc filesystem.
$ groupadd nohideproc
# change user primary group
$ usermod -a -G nohideproc polkitd
$ mount -o remount,rw,hidepid=2,gid=nohideproc /proc
$ systemctl restart polkit
$ reboot
Dmarc wouldn’t have anything to do with the issues I was having. That’s just for spam. I went ahead and paid for the plugin, and ran the mail server debugger. I gave up. All is working now.
Of course that was before I saw your fstab edits which may have fixed it.
I still don’t why adding a new domain broke everything.
There’s no customers on this server. Just me.
I haven’t ever set up DMARC, just SPF records, and haven’t had any going to junk issues, even with Yahoo who tends to be stricter than Google.
I have no idea.
I went ahead and paid for the RSPAMD plugin, which included mail debugger.
I ran the mail debugger, and it stripped out and reinstalled the mailserver, and set the configs back up.
I did try manually reinstalling dovecot and postfix, beforehand, but manually didn’t work either.
But whatever, I didn’t feel like wasting anymore time, so paid the $7 to end a headache.
I was nearly ready to just wipe and reload the server, until I found they had this plugin.
Glad I didn’t have to go that route, as I spent a lot of time hardening it.
One thing is for sure. Cyberpanel is very different from cPanel, under the GUI
Where and how did you install RSPAMD and get, i seem to be having the same issues,
MY SSL cert didnt renew i manually renewed and now i cant send or receive emails,
cant access Rainloop just comes up with a server error
i also open but no one reply on this
Note:
snappymail cyberpanel default mailbox working perfect sending and receive emails but the pop server etc not work with gmail.