Solved

Cannot send mail using postfix.  Error 553 5.1.8 ... Domain of sender address does not exist

Posted on 2014-03-20
11
2,656 Views
Last Modified: 2014-03-27
Hi Experts,

I am having an extremely frustrating problem.  I have installed Postfix on my Linux Mint VM and have configured it to use my ISP's SMTP server.  I enabled authentication and it seems to be working fine, there are no errors.

My problem is that I get the following:

553 #5.1.8 Domain of sender address <root@cmoncada.local> does not exist (in reply to MAIL FROM command))

Open in new window


Why does it always try to send from <root@cmoncada.local> and how can I stop it?  When I send from telnet it is fine, because I can clearly specify a sender.  How can I do this in postfix so that I can send mail easily from the command line and create scripts.

Please Help!

Below is the complete log of the email I was trying to send using the command:

echo "Test mail from postfix" | mail -s "Test Postfix" carlos.moncada@iinet.net.au

Open in new window



Mar 21 02:31:53 cmoncada postfix/qmgr[4963]: B1F5C44745: from=<root@cmoncada.local>, size=472, nrcpt=1 (queue active)
Mar 21 02:31:53 cmoncada postfix/smtp[5018]: B1F5C44745: to=<carlos.moncada@iinet.net.au>, relay=mail.iinet.net.au[203.0.178.192]:587, delay=5052, delays=5051/0.04/0.16/0.03, dsn=5.0.0, status=bounced (host mail.iinet.net.au[203.0.178.192] said: 553 #5.1.8 Domain of sender address <root@cmoncada.local> does not exist (in reply to MAIL FROM command))
Mar 21 02:31:53 cmoncada postfix/cleanup[5020]: 5E38F44749: message-id=<20140320183153.5E38F44749@cmoncada.local>
Mar 21 02:31:53 cmoncada postfix/qmgr[4963]: 5E38F44749: from=<>, size=2414, nrcpt=1 (queue active)
Mar 21 02:31:53 cmoncada postfix/bounce[5019]: B1F5C44745: sender non-delivery notification: 5E38F44749
Mar 21 02:31:53 cmoncada postfix/qmgr[4963]: B1F5C44745: removed
Mar 21 02:31:53 cmoncada postfix/local[5021]: 5E38F44749: to=<root@cmoncada.local>, relay=local, delay=0.03, delays=0.01/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Mar 21 02:31:53 cmoncada postfix/qmgr[4963]: 5E38F44749: removed

Open in new window

Thanks in advance!
0
Comment
Question by:madstylex
11 Comments
 
LVL 34

Expert Comment

by:Dan Craciun
ID: 39943469
If you only want to send logs from your server, I suggest you use msmtp: http://msmtp.sourceforge.net/

HTH,
Dan
0
 

Author Comment

by:madstylex
ID: 39944331
I will give that a shot.  Do I need to uninstall postfix in order to get it to work?
0
 
LVL 34

Expert Comment

by:Dan Craciun
ID: 39944408
No. Just create a symlink to sendmail that points to msmtp. It's in the documentation.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 5

Expert Comment

by:Dave Gould
ID: 39944629
what do you have set for the "mydomain" param in  /etc/postfix/main.cf   ?

if you set it to your valid email domain, this should work
0
 
LVL 13

Expert Comment

by:Sandy
ID: 39944658
to me it seems a DNS issue of your domain.. If that domains exists please correct the MX record and try sending it..

Will be resolved...


TY/SA
0
 
LVL 62

Expert Comment

by:gheist
ID: 39945007
cmoncada.local does not look like an internet domain

try mail -r some@legal.address.com you@yourdomain.net

That should clear that warning...
Essentially hosts on internet are required (by RFC) to have internet names. While in most cases you can get away with it spammers forced 99,9% of mail servers to be pedantic about this requirement.
0
 

Author Comment

by:madstylex
ID: 39958278
I ended up un-installing postfix and using mstmp.

Once I configured all my details it worked fine.
0
 

Author Comment

by:madstylex
ID: 39958636
I've requested that this question be closed as follows:

Accepted answer: 0 points for madstylex's comment #a39958278

for the following reason:

I ended up un-installing and using a different application
0
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 500 total points
ID: 39958415
So, you used my solution: http://www.experts-exchange.com/OS/Linux/Q_28393547.html#a39943469
Any reason why you don't think I should receive the points?
0
 

Author Closing Comment

by:madstylex
ID: 39958637
Sorry Dan, my mistake.

Here you go
0
 
LVL 34

Expert Comment

by:Dan Craciun
ID: 39958750
Glad I could help!
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Debug VNC connection on CentOS7 server 22 83
What is CEO Fraud? 8 87
Can't ping New Linux Servers 40 64
how to print sub line with  sed /awk /perl in bash file 11 22
This is my first article on Expert Exchange on the Manual Method of Exporting Office 365 Mailboxes to PST format by using the eDiscovery mechanism of Office. Hope you will enjoy the article.
Pop culture is prime bait for hackers seeking to infect user’s computers and mobile devices with malicious malware. Hackers know exactly what the latest trends are online and know how to use them to their advantage.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

813 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

10 Experts available now in Live!

Get 1:1 Help Now