• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

How can I restart IMAP from CLI, please ?

PFM

New Pleskian
Hello,

I just updated to Plesk 11.5 and I am having some issues with mail server and SMTP (I see that many other users have the same issues).

In addition, I don't know how can I restart Imap server by command line.

Before this 11.5 update, I used this command:

Code:
service imapd restart

but now it doesn't work anymore....

I also tried:

/etc/init.d/courier-imap stop
/etc/init.d/courier-imap start

Also these commands don't work anymore....

-bash: /etc/init.d/courier-imap: No such file or directory

Any ideas, please ?

Thanks, best regards
 
Last edited:
# lsof -i tcp:143
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
couriertc 26112 root 3u IPv6 120298320 0t0 TCP *:imap (LISTEN)

# /etc/init.d/courier-imapd stop
Stopping Courier IMAP server: [ OK ]

# lsof -i tcp:143

# /etc/init.d/courier-imapd start
Starting Courier IMAP server: [ OK ]

# lsof -i tcp:143
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
couriertc 31479 root 3u IPv6 121002079 0t0 TCP *:imap (LISTEN)
 
Hi Igor,

looking at

Code:
tail /usr/local/psa/var/log/maillog

I read:

Code:
Jul  4 11:00:52 server courier-imaps: Maximum connection limit reached for ::ffff:78.x.x.x
Jul  4 11:00:56 server courier-imaps: Maximum connection limit reached for ::ffff:78.x.x.x

I already used:

Code:
perl -p -i -e 's/^MAXDAEMONS=40/MAXDAEMONS=80/g' /etc/courier-imap/imapd
perl -p -i -e 's/^MAXPERIP=4/MAXPERIP=40/g' /etc/courier-imap/imapd

But I still get this error, since I updated to Plesk 11.5...

The problem is that I cannot save anymore my emails in sent-mail, because Thunderbird says that it is impossible....and looking at mail log I read that error ("Maximum connection limit reached..:").

How can I solve, please?

Thanks
 
Last edited:
To restart all services related to Courier-IMAP, you may run:

# plesk sbin mailmng-service --restart-service --mail-component authdaemon --mail-component pop3 --mail-component pop3s --mail-component imap --mail-component imaps
 
Back
Top