email receiving problem. again :(

Discussion in 'Installation/Configuration' started by OneMoreLie, Jun 5, 2007.

  1. OneMoreLie

    OneMoreLie New Member

    First of all hi, glad to be joining this community.
    Well i sucefully installed centOS following the great guide made by Falko Timme. Everything works smoothly except the fact that i cannot receive emails, i've searched through the forums for help basides the fact of finding a lot of similar threads i could not fix the problem, so any help here will be very apreciated.
    I'm no expert in tcp and internet stuff so i do not really understand all the Co-Domains, DNS, Records settings so i'm really confusing about setting things up.
    Just to set things simple, I've registered a domain, let's say it's www.xyz.com and everything works fine, i've created an email account called [email protected], i can sucefully log in to it using Uebimiau, can send but not receive emails. Keep in mind that all my dns, records and co-domains have no settings, i've tried some settings myself, all non-working, and ended up clearing them all to start things from scratch.
    Now when i try to send emails to [email protected] using a gmail.com account i get the email back saying: PERM_FAILURE: DNS Error: DNS server returned answer with no data.

    Any sugestions?

    Thanks.
     
  2. edge

    edge Active Member Moderator

    If you have no DNS MX settings, how will the mail send by some person at the other end of the world, or send by your neighbour know where to go?

    Basically you could compare a DNS as a phone book. Some person wants to see your page. It will type www.xyz.com in the browsers address bar. That persons ISP DNS will do a "lookup" on www.xyz.com, and make the connection with the server running www.xyz.com (again. This is only a basic explanation of how a DNS works)

    Within a DNS you have records. The record for email is a MX record. (Mail eXchanger). The MX record is "part of the phone book" telling the world where the email server is (where the email should go to for www.xyz.com)

    So. If you do not have a MX record, your email will never arrive as it does not know where the mailserver is!

    As you have noted. Sending email is no problem. This is so cause you do not need an MX record to sent. (lot's of spammers make use of this with something called zombie networks)

    You have 2 options to get your email working.
    (a) Create a good configured DNS server (A record, MX record, SPF record)

    OR

    (b) use the DNS server from the place that you registered the domain with, and create a MX record that points the A record of your www.xyz.com server.

    A nice tool to test things with is www.dnsreport.com

    Let us know if you need more help.
     
    Last edited: Jun 5, 2007
  3. OneMoreLie

    OneMoreLie New Member

    Thank you for answering.
    So i've taken the second option, and i used the dns from the server where i registered the domain, i added a mx record to mail.xyz.com.
    The test results from dnsstuff are positive:
    So i went to ISPconfig and added in the DNS manager tab a MX record using the those settings.
    Now i get the following error message:
    Am I doing to something wrong?

    Is my main.cf configured wrong? I used the settings provided by Falko Timme tutorial.

    Thank you.
     
    Last edited: Jun 5, 2007
  4. falko

    falko Super Moderator ISPConfig Developer

    If another server is the authoritative nameserver for xyz.com (e.g. a server from your domain registrar), then there's absolutely no need to create DNS records in ISPConfig.

    What nameservers do you see in the output of
    Code:
    dig ns xyz.com
    ? Are they your servers or from your domain registrar?
     

Share This Page