Plesk 12.x / Linux :: Courier Mail Service Do Not Respond
Feb 2, 2015
I'm using plesk with CentOS 6.6
After setting up some e-mail accounts over the plesk gui I tried to connect via a mail software (like thunderbird).
This failed with every combination of settings I tried. So I checked if the POP3/IMAP services are running correctly using telnet.
I connected using the following command:
Code:
telnet <host-ip> 110
The response was:
Code:
Trying <host-IP>...
Connected to <host-IP>.
Escape character is '^]'.
-ERR Cannot connect to POP server <host-IP> (<host-IP>:110), NB connect error 1460
Connection closed by foreign host.
Did I miss to enable a setting?
The Plesk gui schows me, that the corresponding services are running...
I switched off the mail service for one of my domains in that sites control panel a few days ago because there were some malicious files on my server sending out spam. I stopped the service until I cleared all the files that weren't meant to be there and then tried to restart the mail service again but it won't start.
I get this message 'Information: Mail service settings were successfully changed for the selected domains.' but the service stays off. I had the same problem on another site on the same server and carried out the same process but the mail service for that website started fine.
I installed Cloudflare for Plesk during this time and thought that might be causing an issue but after disabling this I still can't start the mail service for the domain.
Is there a section of the main (super admin) control panel that manages the mail services for each domain I am unaware of?
Yesterday we upgraded two of our servers to the latest Plesk 12.
The 1st server is an CentOS/CLoudlinux 6.x server and the 2nd an CentOS 5.x server.
Both of them were running Plesk 11.5 before the upgrade.
After the upgrade, we have the same issue in both servers which is that the START/TLS, SSL protocols at Courier imaps or pop3s do not work, and mail clients (outlook, thunderbird) return that the password is wrong when they connect over a secure connection.
In both of them, at the /var/log/maillog, we are getting the same messages, as the following one:
I am trying to secure my VPS and one thing noted in a recent scan was SSL v2 and v3 being supported for SMTP, POP3 and IMAP. So a check of ‘Disabling SSLv3 Support on Servers’ and the Postfix configuration settings suggest:
Examining both only the copy in /etc/postfix/ is configured and at the end of this file I can find all the Plesk settings, including some RBLs I’ve defined via the UI. Hence I know this is the working config as of the two, it’s the only one actually configured. Hence I add the required commands to the config:
... smtpd_tls_key_file = $smtpd_tls_cert_file smtpd_tls_security_level = may smtpd_use_tls = yes smtp_tls_security_level = may
[Code] ....
I then go to the Plesk Tools & Settings > Services Management and restart:
Now what I should get back is an error as the attempt to connect with SSLv2 should fail as it's an excluded protocol, but instead what I get back is the Plesk cert and a connection:
# openssl s_client -connect x.x.x.x:25 -starttls smtp -ssl2 CONNECTED(00000003) depth=0 C = US, ST = Virginia, L = Herndon, O = Parallels, OU = Parallels Panel, CN = Parallels Panel, emailAddress = info@parallels.com verify error:num=18:self signed certificate ...
Why? What do I need to do to have Postfix use the updated config and refuse an SSL2 connection?
I seem to have the same issue with Courier having made similar changes to the /etc/courier-imap/pop3d-ssl file:
I'm trying to find Courier IMAP config: /etc/courier/imapd
Because i would like to edit the parameters for the trash folder (see qoute and link below)
The file on my server is not there. I did some grep and locate commands and was unable to find it.
##NAME: IMAP_EMPTYTRASH:0 # # The following setting is optional, and causes messages from the given # folder to be automatically deleted after the given number of days. # IMAP_EMPTYTRASH is a comma-separated list of folder:days. The default # setting, below, purges 7 day old messages from the Trash folder. # Another useful setting would be: # # IMAP_EMPTYTRASH=Trash:7,Sent:30
Plesk delivering email locally to a not existing mailbox instead of sending it to an external party. First I was using a local mailbox, but my client wanted to control the email using their own server. So I've changed the MX records to this new server. Deleted the inbox in Plesk and turned off Mail support for this domain.
New situation: DNS server for domain.com is hosted on a different location and points to my Plesk server for the website and the MX records point to the clients server for the mail.
Email send from email addresses like gmail are send correctly to the clients server. Email addresses from my PLesk server and forms from the website are send locally.
I have a Server with Centos7 + Plesk 12 and in the service configuration say that the Bind service is not installed, from command line i have install named services and make a manual configuration the first domain, but when I return to the service page in plesk... the problem is the same, the Bind Service is not installed; then the problem is when i want create a new hosting i need to go to the ssh to make the DNS configuration...
Got following Problem: Unable to find service node for web service on domain with id = 0
After a Check from [URL] ....
I tried this: [URL] ....
Result:
+--------------------+--------------+---------------------------------------+------------------------------+------------+ | Domains | Service Type | IpAddressesCollections.ipCollectionId | Current value of ipAddressId | Have to be | +--------------------+--------------+---------------------------------------+------------------------------+------------+ | XXXXXXXXXXXXX.org | mail | 30 | 0 | 1 | +--------------------+--------------+---------------------------------------+------------------------------+------------+
Resolution:
mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa -e 'Update IpAddressesCollections SET ipAddressId = 1 WHERE ipCollectionId = 30'
Result: ERROR 1062 (23000) at line 1: Duplicate entry '30-0' for key 'PRIMARY'
Deleted a domain workspace in Parallels Plesk and now I am getting this error when signing into the panel:Looked at the logs and been trying multiple commands (including the bootstrapper repair etc.)I found the full error from the logs:
[13-Jun-2015 16:35:33 UTC] PleskDBException: Unable to find service node for web service on domain with id=6 file: /usr/local/psa/admin/plib/PhDomain.php line: 1404 code: 0 trace: #0 /usr/local/psa/admin/plib/Smb/Subscription/Domain.php(490): PhDomain->getWebHostingServiceNode()
After deleting a domain, we got the following error which rendered the panel useless.
Internal error: Unable to find service node for web service on domain with id=5 Message Unable to find service node for web service on domain with id=5 File PhDomain.php Line 1402 Type PleskDBException Go To Previous Page
How can I remove " " from properties domain aliases? --------------- Mail service - Mail service is switched on for the domain. mx1.domain.ru., mx2.domain.ru. is used as the mail server. ---------------
I go to Mail>Mail seetings, select all my OFF domains and click Acticate/Deactivate Services, select Enable from the drop down and click OK, but the mail service stays OFF.
After upgrading from 11.5.30 to 12.0.18, when make backup see next message:
<?xml version="1.0" encoding="utf-8"?> <execution-result status="error"> <object name="example.com" type="domain"> <message severity="error" id="167b9714-3e33-4863-861d-69c4f559afe6" code="InformationalException"> <description>Unable to dump IP addresses for mail service</description>
if I try to use the new wordpress service in the admin panel, I get following errors:
By starting a search of wordpress installations: PHP Fatal error: "Die Suche nach WordPress-Installationen wurde mit Fehlern abgeschlossen: Resource with UID 'c94fef81-1552-43e1-ae5b-ce125776caa7' not found."
One installation is found but by open the detail view I get the error "Call to undefined function is_admin() in /usr/share/plesk-wp-cli/php/wp-cli.php(18) : eval()'d code on line 87".
/etc/init.d/sw-cp-server restart Restarting sw-cp-server (via systemctl): Job for sw-cp-server.service failed. See 'systemctl status sw-cp-server.service' and 'journalctl -xn' for details. [FAILED]
tail -f /var/log/sw-cp-server/error_log
2014/11/26 03:06:10 [emerg] 520#0: invalid number of arguments in "fastcgi_buffers" directive in /etc/sw-cp-server/config:31 2014/11/26 03:06:11 [emerg] 874#0: invalid number of arguments in "fastcgi_buffers" directive in /etc/sw-cp-server/config:31
Suddenly my server stop to accept mail from outside. Here you have the logs of mail.info
Feb 20 14:26:02 xxx postfix/smtpd[5581]: 17098E1CCB: milter-reject: DATA from mail2.email-o-matic.com[217.116.24.xxx]: 451 4.7.1 Service unavailable - try again later; from=<empresas@xxx.es> to=<whatever@whatwever.es> proto=ESMTP helo=<mail2.email-o-matic.com>
It seems it is a milter problem as in the line I can read "milter-reject"
Also I have a lot of lines like this:
Feb 20 14:27:34 dv2 greylisting filter[9152]: Starting greylisting filter... Feb 20 14:27:36 dv2 greylisting filter[9154]: Starting greylisting filter... Feb 20 14:27:37 dv2 greylisting filter[9165]: Starting greylisting filter...
I can go to control panel and stop plesk milter but I see these lines on mail.info
Feb 20 14:30:04 xxx postfix/smtpd[8845]: warning: connect to Milter service inet:127.0.0.1:12768: Connection refused
And 4.7.1 still there
Feb 20 14:30:03 xxx postfix/smtpd[7289]: NOQUEUE: milter-reject: CONNECT from 223.179.15.xx.dynamic.jazztel.es[37.15.179.xx]: 451 4.7.1 Service unavailable - try again later; proto=SMTP
Maybe is a port (12768) connection error? How I can test that port?
This KB article does not solve anything as the load of the server is 0.1-0.5 [URL] ....
A temporal fix is to edit /etc/postfix/main.cf file comment these two lines:
I upgraded today from 11 to 12, however since the upgrade I am now unable to start the PSA Service, it comes up with the below error.
Starting psa... Starting sw-engine-fpm: Thu Jun 19 13:22:29 2014 (7885): Fatal Error Unable to allocate shared memory segment of 104857600 bytes: mmap: Cannot allocate memory (12)
I have checked resources and everything should be fine, I cant see a reason why it cant allocate the memory, as there is plenty free for it to take from.
I have tried a Bootstrapper repair for 12 however this has not found any issues other than its not able to stop the PSA Service (As its not running)
Everything else is up and running its just the Parallels backend which im guessing is what the PSA Service is!
First, the datacenter lost power so the server shut off. I assume there is some DB corruption and why the SQL Service won't start.
Code: failed Trying to start service mariadb... Job for mariadb.service failed. See 'systemctl status mariadb.service' and 'journalctl -xn' for details.
WARNING! Some problems are found during start(see log file: /var/log/plesk/psa_service.log)
Continue...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) Unable to connect to Plesk Database: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
I ran the systemctl status mariadb.service command and this is below.
I'm running a CentOS 6 server with Plesk 11.0.9 installed. It's only being used for dev purposes with only a couple vhosts running on it. All of the vhosts are using PHP - there are a few WordPress sites and Zend Framework 2 applications running. Up until a few months ago it was also running a high traffic WordPress site, but that's no longer the case.
This server has been running without problems for over a year. A few days ago I first started noticing 503 errors (Service Temporarily Unavailable) on accessing one of the vhosts from the web browser.
I logged on through ssh and noticed the load was a bit higher than I expected (nothing crazy though). All other vhosts using PHP also gave me the same error. The only vhost that was working normal was a Ruby on Rails app (Redmine).
I also did a netstat -napt and noticed many connections from two or three IP addresses. I checked their geographical location and after blocking them through iptables the problem seemed to have gone away.
Now it's a few days later and the same problem started popping up. I checked again through netstat and noticed that again a whole bunch of connections from only a handful of IP addresses were connected to Apache.
When I was digging deeper I noticed that some of those IP addresses were what looks to me like other servers (at least they're running Apache). I'm suspecting they are hacked servers and they're trying to use my server to send spam or some other type of evil.
I just blocked those new IP addresses in iptables and that seemed to have solved the problem for now again, but I want to solve the root of the problem.
So my questions are: 1) How can I find out to what vhost those clients are connected? 2) Why does Apache stop working with not that many client connections, when it used to serve thousands of visitors at the same time when that big site was still running on this server? 3) What could they possibly be using my server for? The first time it happened I thought that they found some leaking WordPress plugin to use to spam people, but today I checked and there's barely anything in the mail queue.
I activated greylisting on my mailserver and took a look in the logfiles.
The mail are temporary rejected with the following log message / statuscode:
451 4.7.1 Service unavailable - try again later;
Mails from my server to other servers are greylisted with messages like: 451 4.7.1 message delayed, see http://www.greylisting.org ; 452 Greylisted. Please try again after some time. 451 4.7.1 <E-MAIL-ADRESSE>: Sender address rejected: Greylisting in action. Please try again later.
Is it possible to change this log message at my server?
I have a problem with my linux server using plesk 12x, I am using postfix as the email service, all emails are working from the webmail (horde) and from any email client using smtp.However the service is not working from the website (contact form on Wordpress) nor through the ssh commands. I have searched for few days but I still seem to have an issue.
Code: ls -la /etc/alternatives/mta the output is "nothing found".
and
Code: ls -la /usr/sbin/sendmail output: lrwxrwxrwx 1 root root 21 nov 4 2011 /usr/sbin/sendmail -> /etc/alternatives/mta