Host cannot send mail over relay host with port 587.
I have two servers. One mail server and one server that uses the mail server as a relay host.
The client server should send over Port 587. A telnet connection is possible between the client and mail server on port 587. But trying to send mail results in the following lines (/var/log/maillog):
May 23 07:16:56 mail postfix/smtpd[15476]: connect from HOST_DNS[HOST_IP]
May 23 07:16:56 mail postfix/smtpd[15476]: disconnect from HOST_DNS[HOST_IP] ehlo=1 auth=0/2 quit=1 commands=2/4
EDIT:
I also get this in maillog:
May 23 09:32:13 187 postfix/smtp[402991]: maps_find: smtp_sasl_password_maps: MYHOSTNAME: not found
May 23 09:32:13 187 postfix/smtp[402991]: maps_find: smtp_sasl_password_maps: [MYHOSTNAME]:587: not found
In main.cf:
relayhost=[MYHOSTNAME]:587
and in /etc/postfix/sasl_passwd:
[MYHOSTNAME]:587 user@domain:password
SOLVED THIS PART: Syntax error in sasl_passwd and missing postmap command. Problem above still exists.