Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-03-20
11
Medium Priority
?
3,029 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 35

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 35

Expert Comment

by:Dan Craciun
ID: 39944408
No. Just create a symlink to sendmail that points to msmtp. It's in the documentation.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 35

Accepted Solution

by:
Dan Craciun earned 2000 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 35

Expert Comment

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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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.
Stellar Exchange Toolkit: this 5 in 1 toolkit comes loaded with mega-software tool. Here’s an introduction to tools’ usage and advantages:
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
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…
Suggested Courses
Course of the Month13 days, 6 hours left to enroll

963 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