Link to home
Start Free TrialLog in
Avatar of ourtechteam
ourtechteam

asked on

Postfix does not send out an email

to=<info@myhomeinthesun-turkey.com>, relay=89.145.93.8[89.145.93.8]:25, delay=2.1, delays=0.01/0.01/2.1/0.03, dsn=5.0.0, status=bounced (host 89.145.93.8[89.145.93.8] said: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1) (in reply to MAIL FROM command))

The Postfix -n is
[root@s15337030 postfix]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
home_mailbox = Mailbox
html_directory = no
inet_interfaces = localhost
local_recipient_maps =
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination =
mydomain = s15337030.onlinehome-server.info
myhostname = s15337030
mynetworks = 168.100.189.0/28, 127.0.0.0/8
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
relay_domains = $mydestination
relayhost = $mydomain
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550

Am I missing something here, the application ishosted in this server however the mail server is elsewhere and in transport the actual IP address for mail.myhomeinthesun-turkey.com has been provided to avoid DNS lookup. Please help.

Avatar of arnold
arnold
Flag of United States of America image

The error deals with your ehlo not matching the forward/reverse of the record.

I think your server says helo s15337030

You can test this by sending an email to your free accounts and then look at the full message headers to see what the lower most Received: line has it will have your

Received: from your_hostname [your_ip] ( HELO <message>) by their servers
etc.

What you may want to do is use your ISP providers Mail servers as a smart host.
You could try adjusting your master/main configuration file
mydomain=s15337030.onlinehome-server.info
myhostname=s15337030.onlinehome-server.info
and see if that makes a difference.

The remote site is using an anti-spam mechanism that will reject servers who do not conform in the assumption that is more likely to be a spammer connecting versus an email server that was slightly miconfigured.
Check your /etc/hosts file as well to see what you have there i.e.
127.0.0.1 localhost localhost.localdomain
<local_lan_ip> name name.domain myhostname

restart postfix after the change.
Avatar of ourtechteam
ourtechteam

ASKER

sorry, I must have clarified, the emails go out to all domains whose A record are different. For example, with this configuration it does send emails to hotmail, gmail and every other domain whose A record is not the current server.
This issue only occurs when the A record is our server and the MX record is an external server. I suspect somehow postfix  is trying to send the mail to itself instead of trying to send it to the external server? Hope this explains.
And no your suggestions did not help arnold
If the server is a relay only that server, you have to make sure you did not define those domains as local/virtual versus just domains that it will accept/relay for.

The problem of discussing issues without complete information is that I have no idea how your domains are setup within the configuration.

Presumably you have the domains pointing to this postfix server.
You then have the transports file that defines
domain and the IP of the server to which those emails need to be sent.

The problem though in the error you posted deals with the remote server rejecting the connection because of the way by which it is introducing itself.
ASKER CERTIFIED SOLUTION
Avatar of ourtechteam
ourtechteam

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Please close
Understood that we need to give a full background for help to be obtained, withthe given info, the answers were gr8