Solved

Postfix does not send out an email

Posted on 2010-11-30
6
664 Views
Last Modified: 2012-05-10
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.

0
Comment
Question by:ourtechteam
  • 4
  • 2
6 Comments
 
LVL 76

Expert Comment

by:arnold
Comment Utility
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.
0
 

Author Comment

by:ourtechteam
Comment Utility
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
0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
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.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Accepted Solution

by:
ourtechteam earned 0 total points
Comment Utility
The issue was with relay host and it was sorted out. Thanks for all the help
0
 

Author Comment

by:ourtechteam
Comment Utility
Please close
0
 

Author Closing Comment

by:ourtechteam
Comment Utility
Understood that we need to give a full background for help to be obtained, withthe given info, the answers were gr8
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Resolve DNS query failed errors for Exchange
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now