550 Email Errors... So many hours Wasted... Help please?

10 posts / 0 new
Last post
#1 Sun, 09/09/2012 - 16:48
moutonoir

550 Email Errors... So many hours Wasted... Help please?

Hey!

I have a quick question.. Hopefully quick. I have been scouring the forums here and tried several things with no luck.. here goes my problem...

I have setup virtualmin on a brand new install of Centos 6.3 64, using install.sh...

My main hostname is yoyodyne.mydomain.com... as verifiedby typing hostname at shell...

In the post install, I have specified NS1.MYDOMAIN.COM - which failed though the entries are in the registrar... At any rate, I choose to go past this...

In Virtualmin, I have setup a virtual server of MYDOMAIN.COM, and added the support for email, website, etc.. The usual stuff that is pre-checked.

Now.. None of my email will send or receive outside the box.. I can send from mydomain@mydomain.com email to itself.. But to outside emails it fails with a 550 saying "550-No Such User Here 550 Sender verify failed (in reply to RCPT TO command)"

What can I do to resolve this? Currently I have spent sooo many hours over all to get to this point (BIND was a huge mountain of learning, which ended with the install.sh seemingly getting a working system going for the first time)...

Thanks!

Output from dig mail.mydomain.com

[root@yoyodyne var]# dig mail.mydomain.com

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.10.rc1.el6_3.2 <<>> mail.mydomain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 56799
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.mydomain.com.          IN      A

;; ANSWER SECTION:
mail.mydomain.com.   35436   IN      A       198.144.xxx.xx

Following is the 'details.txt' that is sent to my email when I attempt to use it.

Reporting-MTA: dns; mail.mydomain.com
X-Postfix-Queue-ID: 2FC04C0BA12F
X-Postfix-Sender: rfc822; mydomain@mydomain.com
Arrival-Date: Mon, 10 Sep 2012 01:17:34 +0400 (MSD)
 
Final-Recipient: rfc822; robert@mynormalemail.com
Original-Recipient: rfc822;robert@mynormalemail.com
Action: failed
Status: 5.0.0
Remote-MTA: dns; mynormalemail.com
Diagnostic-Code: smtp; 550-Verification failed for
    <mydomain@mydomain.com> 550-No Such User Here 550 Sender verify
    failed
</code
Sun, 09/09/2012 - 18:42
moutonoir

well... After much fiddling I can get it to send from within the webmin postdix user account compose tool.

When it arrives in my email it says it is from "mydomain@yoyodyne.mydomain.com"

yoyodyne.mydomain.com is my hostname as setup in the VPS..

If I reply, I get an email back from the senders email server:

"Host or domain name not found. Name service error for name=yoyodyne.clientdocks.com type=A: Host not found " back..

Which should make sense, as I have not setup A records or a Virtual Server for yoyodyne.mydomain.com

Now, if I have the hostname in the postfix setup set to 'mydomain.com' or 'mail.mydomain.com' - it fails... No email sent from within the webmin sender....

Sorry if my info that I am providing is not enough....

Sun, 09/09/2012 - 21:14
andreychek

Howdy,

I would recommend setting up a DNS 'A' record for your hostname, "yoyodyne.mydomain.com".

That name shows up in a lot of places when sending email, and making sure that it resolves correctly (both forward and reverse DNS) will help with email delivery.

So, I'd recommend keeping your hostname as yoyodyne.mydomain.com -- having a FQDN such as that is great. You just need to go into Server Configuration -> Edit DNS Records, and add an 'A' record for it.

Then, give your ISP a call, and make sure that your primary IP address has reverse DNS setup for it.

-Eric

Sun, 09/09/2012 - 21:32 (Reply to #3)
moutonoir

Hi!

Thank you so much for your response! I had just given up and signed up for another, managed VPS.

However, that one is 'pending' and I would love to learn what i have done wrong! So..

Let me say. Is there a way to find out if I have reverse DNS setup? My host company wont be around until tomorrow...

Also.. This DNS A Record.. It points to my main IPv4 address? The same Ive set for the NS1... at the domain registrar?

Thanks again, this stuff can be so.... challenging.. for a novice... especially when time is so short!

Thanks again!

Sun, 09/09/2012 - 22:21
andreychek

Is there a way to find out if I have reverse DNS setup? My host company wont be around until tomorrow

Well, reverse DNS generally isn't setup the way you want until you request it.

You'd likely need to contact your ISP (or many offer the ability to do this via a web interface), and set the reverse DNS for your IP to "yoyodyne.mydomain.com".

This DNS A Record.. It points to my main IPv4 address? The same Ive set for the NS1... at the domain registrar

Yup! The DNS 'A' record for your hostname should be your primary IP address.

-Eric

Sun, 09/09/2012 - 23:02 (Reply to #5)
moutonoir

Sadly, this did not help\work...

It is acting in the same way.. Though many settings have been changed from the initial setup...

In addition, the reverse DNS setting on my account, i click 'edit' in the hosting panel, and it does nothing.. If I click the IP thats listed, it gives me the IP, gateway, netmask, and two name server entries.

Interestingly, the nameservers are 4.2.2.2 and 8.8.8.8 - the 'free public' servers of lore....

I do not know really if I should, but should I change these nameserver IPs to something under my control?

It is begining to appear that my VPS may not be setup\meant for my purpose... which is to run a domain at www.mydomain.com and also some chrooted servers with their own databases, etc. at api.mydomain.com api2.mydomain.com, upgrades.mydomain.com, licenses.mydomain.com and so on.... For a fairly involved piece of software I have written...

Coding is 'easy' for me... Setting up this stuff is VERY challenging on account of the DNS delays, differences in systems from VPS to VPS, mysterious terminology in the different cpanels, and so on!!!

Mon, 09/10/2012 - 08:36 (Reply to #6)
andreychek

In addition, the reverse DNS setting on my account, i click 'edit' in the hosting panel, and it does nothing.. If I click the IP thats listed, it gives me the IP, gateway, netmask, and two name server entries.

Well, I can't speak to why your providers panel works a particular way -- but if you can't setup reverse DNS from within it, just give them a call or email, and hopefully they could lend a hand with how to set that.

Interestingly, the nameservers are 4.2.2.2 and 8.8.8.8 - the 'free public' servers of lore....I do not know really if I should, but should I change these nameserver IPs to something under my control?

If you wish to host your own DNS, then your nameserver needs to be 127.0.0.1. The install.sh script sets that up for you, it's possible that your provider is resetting that when you reboot.

It is begining to appear that my VPS may not be setup\meant for my purpose

Different VPS providers offer different things... some are hands off, and just provide a VPS and OS to run. Others are more involved, and have a lot of their own things setup within each VPS. That can help some folks, but get in the way of others :-)

If you find this particular VPS isn't working for you, you could always try a different provider.

What kind of VPS do you have? Is it Xen, OpenVZ, KVM, or...?

-Eric

Sun, 09/09/2012 - 23:07
moutonoir

also notable... if I have the stock setup (of virtualmin settings) - I can email out of the webmin email area, and it actually does send out to external servers, but it sends from "mydomain@yoyodyne.mydomain.com

i have seen various references to this exact same problem - but i must say, the cause of the issues never seems to be the same from post to post, and many of the issues are cleared up without explanation.... grrr..

Thu, 09/13/2012 - 15:27
moutonoir

I have come back just to let everyone know what worked for me... Because it is really dumb, and also I didnt see it mentioned ANYWHERE - so I hope this helps. I would be bitter, except I actually learned so much from this issue, I am now feeling pretty confident with BIND and DNS now - when before it was a total mystery.

Here is what worked:

I was trying to send emails to an account on a shared WHM\Cpanel reseller account which I had previously setup my domain with the email trouble on.

when I moved to a VPS from the Cpanel\WHM shared server, I did NOT delete my domain account on the cpanel there...

So, it seems my server was seeing the old, dormant account.. So here it is: dont try and use a email account for testing if it has ANY possibility of being on the same server as an old or overlapping or conflicting account with the system you are troubleshooting.

Maybe it should have been obvious... But anywhere.. Thanks for your help everyone!

Mon, 02/18/2013 - 11:47
alanf

Thanks for posting that, I have just been pulling my hair out for the last 3 hours on this issue, and exactlt teh same, migrating from an WHM/c-panel system and testing to that domain !!!

Thanks for posting the resolution, saved me many hours of grief!!

Topic locked