Archive for the ‘imap’ category

Adding/Changing the SSL cert for mail in plesk – Linux

August 21st, 2013

The certificate for SMTP over SSL is located in the following files:

1. For QMail MTA: /var/qmail/control/servercert.pem
2. For Postfix MTA: /etc/postfix/postfix_default.pem

Note: Only QMail MTA is used in Parallels Plesk Panel version 8.x and earlier versions. Use instructions from this KB to define which MTA is used in Parallels Plesk Panel version 9.x and later versions.

For IMAP4 and POP3 over SSL, the following certificate files are used:

/usr/share/courier-imap/imapd.pem
/usr/share/courier-imap/pop3d.pem

By default, these are self-signed certificates for “plesk” which are generated during Parallels Plesk installation. If you need to set up your own certificates, copy and paste your certificate and Private Key into the appropriate filesĀ and restart “qmail/postfix” and “courier-imap” services:

For version 8.6 and earlier versions:

~# /etc/init.d/xinetd restart
~# /etc/init.d/courier-imap restart

For version 9.x and later versions:

~# /usr/local/psa/admin/sbin/mailmng –restart-service

if you found this helpful feel free to donate to:
ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d
BTC: 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz

PLESK – IMAP connection closed by remote host

January 25th, 2012

Had an odd issue where several computers, all macs, where located behind a router with a common IP. One of the systems could connect to the imap server, but none of the others could. After checking all the settings, and finding they where the same we proceeded to test from outside their network. All attempts to telnet worked.

After a bit of research i found the following:

  1. Mac Mail is like thunderbird, 1 imap connection uses several connections per machine.
  2. By Default, on plesk courier-imap max connections per IP is set to 4
  3. Looks like 1 mac mail client uses 4 or more connections

So to resolve the issue the following had to be done:

Edit the /etc/courier-imap/imapd file and modify the following values

MAXPERIP to 50)

Next, to enable multiple systems and connections at the same time, and not just from a single IP i also increased (in the same file)

MAXDAEMONS to 300

This would enable up to 300 concurrent connections to imap, with up to 50 from a single IP source. (you can use any values you wish for both)

Once complete i then restarted imap

/etc/init.d/courier-imap stop
/etc/init.d/courier-imap start
if you found this helpful feel free to donate to:
ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d
BTC: 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz