Basically I want to make it so that if I use the mail command or otherwise send an email via the local mail server, it actually goes through an external mail server. Basically I need to be able to send email from a local computer but I don't want it to keep getting marked as spam because it's coming directly from the computer.
I currently don't have a mail server setup myself online but do have a shared host, so trying to route mail through there. I found a tutorial on how to do it and ended up with the following config in mail.conf:
Code:
relayhost = [sharedhost]:465
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/postfix/certificate.pem
smtp_use_tls = yes
I also created the sasl_passwd file as follows:
Code:
[shardhost]:465 username:password
I then ran postmap command on that file.
However when I try to send an email I end up with an error in the log:
Code:
(delivery temporarily suspended: lost connection with sharedhost[1.2.3.4] while receiving the initial server greeting)
So something is still wrong. Any other parameter or step I may have missed?