Solved

Postfix does not send out an email

Posted on 2010-11-30
6
677 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 78

Expert Comment

by:arnold
ID: 34241388
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
ID: 34245805
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 78

Expert Comment

by:arnold
ID: 34259039
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
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 

Accepted Solution

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

Author Comment

by:ourtechteam
ID: 34284600
Please close
0
 

Author Closing Comment

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

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

733 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