Archive for the ‘postfix’ 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

Mailq – outbound mailq summary for postfix

November 29th, 2010

A quick way to see how much mail and the total size of the mail in the outbound is to type the following:

mailq | tail -n 1

This will produce something similar to:


mail:~ # mailq | tail -n 1
-- 5733 Kbytes in 1756 Requests.
if you found this helpful feel free to donate to:
ZEC: t1NQp1UuqQbmnXzazbLTSreS2AbaZpRBuTM
LTC: LZyNF1qkBUA7XFz83m5xwzGgmmj1owQn9d
BTC: 1PY95KFPTEJTR7f2NnSgaB6xB9pwDJkcJz

PostFix – Increase max message size and mailbox size

August 25th, 2010

To increase the size of the maximum size for a mailbox, system wide you need to modify the following value in /etc/postfix/main.cf

mailbox_size_limit = 0

If the size is set to 0, then it is unlimited.

To increase the size maximum of a message, system wide you would type the following:

postconf -e 'message_size_limit = 104857600'

You can use any size you want, once the change is made restart postfix.

You can check the default configuration for postfix by typing:

postconf -d

You can see your custom configuration with:

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