?
Solved

Postfix does not send out an email

Posted on 2010-11-30
6
Medium Priority
?
708 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 81

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 81

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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

As cyber crime continues to grow in both numbers and sophistication, a troubling trend of optimization has emerged over the last year.
This article outlines some of the reasons why an email message gets flagged as spam on a recipient's end.
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…
In this video we show how to create an email address policy 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 Mail Flow…
Suggested Courses
Course of the Month15 days, 23 hours left to enroll

850 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