[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Postfix does not send out an email

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

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 80

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
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 

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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

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 …
As cyber crime continues to grow in both numbers and sophistication, a troubling trend of optimization has emerged over the last year.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

649 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