Posts Tagged ‘Email’

How to enable port 587 (submission) in postfix

Monday, April 26, 2010 posted by Till

Some internet access providers have port 25 disabled in their routers to prevent spam. If you run your own mailserver in a datacenter, you might have to enable the submission port (587) in postfix to be able to send emails from your local email client to your own mailserver.

To enable port 587, edit the file /etc/postfix/master.cf

vi /etc/postfix/master.cf


and remove the # in front of the line:

#submission inet n      -       n       -       -       smtpd


so that it looks like this:

submission inet n      -       n       -       -       smtpd


and restart postfix:

/etc/init.d/postfix restart

How to renew the SSL certificate for dovecot on CentOS

Wednesday, December 23, 2009 posted by Till

Make a backup of the old key and certificate file

mv /etc/ssl/certs/dovecot.pem /etc/ssl/certs/dovecot.pem.old mv /etc/ssl/private/dovecot.key /etc/ssl/private/dovecot.key.old


Create the new SSL certificate

openssl genrsa -out /etc/ssl/private/dovecot.key 1024 openssl req -new -x509 -key /etc/ssl/private/dovecot.key -out /etc/ssl/certs/dovecot.pem -days 730


Restart Dovecot:

/etc/init.d/dovecot restart