Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've got the following situation, and it's driving me crazy:

One VPS, with domain1.com and domain2.com websites hosted.

For domain1.com I use the VPS mail functionality and for domain2.com I use Google Apps (and GOogle Mail).

When I send an email from me@differentdomain.com it will arrive correctly at me@domain2.com, but when I send an email from me@domain1.com it does not arrive at me@domain2.com... I get a Mail delivery failed: returning message to sender at my sending inbox.

The sollution looks quite simple to me (dns?) but I can't find it. VPS running CentOS 5.0 and DirectAdmin 1.40.3 (i've asked this on stackoverflow but no response :) )

share|improve this question
    
and what happens when u send email from domain1 to differentdomain? –  Lucas Kauffman Oct 1 '12 at 19:59
    
@Lucas: that arrives correctly, tested to 6 different domains, including my private gmail account.. all goes well and all mails arrive, so it must be something dns-related –  Bokw Oct 1 '12 at 20:01
    
if you dig for domain2 on your vps, what happens? –  Lucas Kauffman Oct 1 '12 at 20:02
    
@Lucas when I type dig (domain) this is the response: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 38153 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 –  Bokw Oct 1 '12 at 20:18
    
that means the domain is unknown to your local server. What happens when you dig google.com? If that returns the same error, you need to edit /etc/resolv.conf –  Lucas Kauffman Oct 1 '12 at 20:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.