I've been using Postfix on my CentOS 6 Server on it's default install settings but I would like to configure it to use the mail server from my existing email.
I altered the /etc/postfix/main.cf file by adding
relayhost = [mail.mywebsite.com]:993
Then at the bottom I added
smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous
Then in /etc/postfix/sasl_passwd I added
I gave that file 600 permissions, then ran
# postmap /etc/postfix/sasl_passwd
and finally I restarted postfix. After these changes it no longer works as when I try to send an email I am getting the following error
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient------- 2FF29F0F 355 Thu Jun 4 11:56:24 email@example.com (lost connection with mail.mywebsite.com[18.104.22.168] while receiving the initial server greeting) firstname.lastname@example.org -- 0 Kbytes in 1 Request
Is there something that I did wrong in setting this up?