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,636 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
 
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
Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

 
LVL 61

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

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!

Question has a verified solution.

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

Suggested Solutions

Today, security is a big concern in an organization to prevent sensitive data leakage. In Outlook you can secure your Outlook items (emails, calendars, contacts and other stuff) using various techniques like by marking item as private, or you can pu…
Explore the encryption capabilities built into Google Apps and how these features can help you meet privacy policy and regulatory compliance, but are not a full solution. Understand and compare the most popular email encryption services for Google A…
The purpose of this video is to demonstrate how to set up a Mailchimp Template which will let the user create a uniform look for all of their campaigns. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mail…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

919 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

13 Experts available now in Live!

Get 1:1 Help Now