Category: Email

Renew self-signed IMAPS/POP certificates on Plesk server

With courier-imap, if the self signed certificate used by IMAPS or POPS expires then use this procedure to issue a new certificate: 1. Edit /usr/share/courier-imap/mkimapdcert and add a -set-serial option to the openssl “req” line like “-set_serial 2”. 2. Optional: On the same line change “-days 365” to increase the validity period for the certificate. 3. Optional: Edit /etc/courier-imap/imapd.cnf to set certificate contents. 4. Remove the old certificate at /usr/share/courier-imap/imapd.pem 5. Run /usr/sbin/mkimapdcert 6. Restart courier with “/sbin/service courier-imap restart” 7. Edit /usr/share/courier-imap/mkpop3dcert and add a -set-serial option to the openssl “req” line like “-set_serial 2”. 8. Optional: On the same line change “-days 365” to increase the validity period for the certificate. 9. Optional: Edit /etc/courier-imap/pop3d.cnf to set certificate contents. 10. Remove the old certificate at /usr/share/courier-imap/pop3d.pem 11. Run /usr/sbin/mkpop3dcert 12. Restart courier with “/sbin/service courier-imap restart”

Read More »

Bind Zimbra On Specific IP Address

Here’s how to configure Zimbra services to bind to a specific IP address. These instructions apply to ZCS 5.x only. Assume that the IP address is [IP]. SMTP (TCP 25) Edit /opt/zimbra/postfix/conf/master.cf. Change:

To:

WEB (TCP 80/443/admin ports) Edit /opt/zimbra/jetty/etc/jetty.xml.in After every line starting with:

Add:

POP/IMAP Su to zimbra account. Start zmprov:

Determine server name:

Change bind addresses:

One additional trick is needed. Add these two IPTables rules to map 127.0.0.1:7071 to [IP]:7071.

Read More »

Postfix + Spam Assassin + ClamAV on RHEL

Some notes on setting up a Postfix server to use ClamAv and SpamAssassin. Follow the steps below to set this up on a normal Redhat box with a default Postfix setup. See step 8 for a bonus trick with header_checks to enable spam deletion. 1) Create two service accounts (set shell to /bin/false):

2) Install the latest ClamAV. Configure it to run as the “clamav” user (which is the default I think). Add “/usr/local/sbin/clamd” to rc.local. Find the clamd.conf (defaults to /usr/local/etc or /etc), and make the following settings:

Also update freshclam.conf (the Example line has to be commented out in it as well), run freshclam and add a cron job to run freshclam on a regular basis. Start clamd before proceeding to step 3. 3) Download and install a package called clamsmtp (http://memberwebs.com/stef/software/clamsmtp/). No configure options needed. After doing the make install, create /usr/local/etc/clamsmtpd.conf with the following

Read More »

Add RBL to Postfix

Add the following line to the bottom of /etc/postfix/main.cf or extend the existing smtpd_client_restrictions line:

Read More »

Whitelist host on qmail install

To whitelist a host on a qmail install (qmailrocks in this case) do the following: Edit /etc/tcp.smtp and add this line:

Replacing XXX.XXX.XXX. with the ip of the host to be whitelisted. Next rebuild the cdb file with:

This first procedure prevents RBL checks on the host. To whitelist a host or domain in spam assassin, edit vi /etc/mail/spamassassin/local.cf and add a line like this:

Read More »

Categories

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.