• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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