-5

I've Installed Postfix with Dovecot on CentOS 7. Everything is working good when I try to send / recieve emails from services like Outlook.. etc.

However, there is a problem when I send an email from my account on Gmail to my email on my server. The messages never get to my server, instead, they are delivered back and that's the reason mentioned in the message:

Technical details of temporary failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain xxxxxxxx.com by xxxxxxxx.com. [xx.zz.186.133].

The error that the other server returned was:
454 4.7.0 TLS not available due to local problem

Here is my main.cf file: http://pastebin.com/3Di4PYxt

Here are the files in the /etc/postfix folder:

access                 header_checks.inbound.db     ldap       transport
canonical              header_checks.internal       main.cf    transport.db
generic                header_checks.internal.db    master.cf  virtual
header_checks          header_checks.submission     relocated
header_checks.inbound  header_checks.submission.db  ssl

I have those files inside /etc/postfix/ssl:

server.crt  server.csr  server.key  server.key.secure

I followed this tutorial to Install the mail server: http://www.krizna.com/centos/setup-mail-server-centos-7/

Note: I've seen this question and it didn't help.

Madno
  • 203

1 Answers1

4

Finally I've managed to solve the problem using this link: https://workaround.org/ispmail/squeeze/ssl-certificates

Had to run those commands (as root):

mkdir /etc/ssl/private/

openssl req -new -x509 -days 3650 -nodes -out /etc/ssl/certs/dovecot.pem -keyout /etc/ssl/private/dovecot.pem

chmod o= /etc/ssl/private/dovecot.pem

openssl req -new -x509 -days 3650 -nodes -out /etc/ssl/certs/postfix.pem -keyout /etc/ssl/private/postfix.pem

chmod o= /etc/ssl/private/postfix.pem

postconf -e smtpd_tls_cert_file=/etc/ssl/certs/postfix.pem

postconf -e smtpd_tls_key_file=/etc/ssl/private/postfix.pem

service dovecot restart

service postfix restart
Madno
  • 203