1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to setup an email server

Discussion in 'Site & Server Administration' started by Jontish, Oct 15, 2009.

  1. #1
    For 2 weeks I've tried setting up my own email system. I'm so confused. I have no idea how this stuff works.. I tried to read some tutorials, but they only explain how to setup up the actual email server (and that isn't even the hard part here).

    I want people to be able to use the lost password function, send out newsletter and those stuff. The PHP scripts for that is already covered. The question is how do I make the email system work? What DNS settings to use? Try to get the whole picture right for me.

    What I want to do:
    Being able to use the domain "tibiahelp.com" to send out emails to the users.

    What I have done so far:
    All necessary ports are unblocked.
    Configured the email server (Mercury) as following:
    [​IMG]
    [​IMG]
    [​IMG]

    The DNS settings:
    tibiahelp.com MX dns is set to 85.227.190.37 (IP where email server is hosted)

    When I try to send an email from , this is what I get:
    Temporary error 249 (temporary MX resolution error) resolving 'hotmail'.com'.

    Thanks!
     
    Jontish, Oct 15, 2009 IP
  2. Jontish

    Jontish Well-Known Member

    Messages:
    1,565
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    128
    #2
    People, come on, help me out.
     
    Jontish, Oct 16, 2009 IP
  3. cpace1983

    cpace1983 Peon

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Is your DNS setting really NS1.MYDOMAIN.COM? If so, set that DNS server to whatever your DNS server is (that's what it looks like it's asking for, not your domain's DNS server).

    Bear in mind, I'm not a Windows admin, and I've never installed Mercury before ;)
     
    cpace1983, Oct 16, 2009 IP
  4. Jontish

    Jontish Well-Known Member

    Messages:
    1,565
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    128
    #4
    I tried and still the same error. Thanks for the advice though.
     
    Jontish, Oct 16, 2009 IP
  5. SEOArbiter

    SEOArbiter Peon

    Messages:
    78
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Why do you want to setup your own e-mail server?

    Why don't you just sign up for a hosting account or more specifically an e-mail service, enter your domain, and let them host the e-mail services?

    The issue is if you don't know what you're doing, espeically if you plan on setting up to send out newsletters, could result in your e-mail not going out.

    If you're defintiely want to go this route, is it just a DNS issue? Just get the IP for your e-mail server, make sure your e-mail server software (Mercury) is listening on the proper ports (check out tcpview), and make sure the MX record for that domain points to that IP.
     
    SEOArbiter, Oct 16, 2009 IP
  6. cpace1983

    cpace1983 Peon

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Try leaving that setting blank, as suggested by the dialog box description. Also, stupid question time- can you resolve hosts on the box itself? Disabled all firewall software?

    That error basically says that your mail server can't figure out the MX record for hotmail.com, which means there is an issue resolving the MX host.
     
    cpace1983, Oct 16, 2009 IP
  7. Jontish

    Jontish Well-Known Member

    Messages:
    1,565
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    128
    #7
    Yes, I tried that. I double checked the firewall, and the ports 25 and 110 are both opened.
    Sure I don't need a specific name server? Will it find out automatically or what? Sounds very..strange.. for me.
     
    Jontish, Oct 17, 2009 IP
  8. Jontish

    Jontish Well-Known Member

    Messages:
    1,565
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    128
    #8
    Because I own a dedicated server so I think I'd be better off using my own resources rather than pay for something abundant.
     
    Jontish, Oct 17, 2009 IP
  9. nikb

    nikb Peon

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    This is your DNS info:

    ========
    SOA Record
    responsible mail addr = hostmaster.tibiahelp.com
    serial = 2009101712
    refresh = 16384 (4 hours 33 mins 4 secs)
    retry = 2048 (34 mins 8 secs)
    expire = 1048576 (12 days 3 hours 16 mins 16 secs)
    default TTL = 2560 (42 mins 40 secs)
    ns1.mydomain.com internet address = 64.94.117.193

    NS Records
    ns1.mydomain.com
    ns2.mydomain.com
    ns3.mydomain.com
    ns4.mydomain.com

    Name servers IP addresses
    64.94.117.193
    64.94.31.67
    66.150.161.137
    63.251.83.74

    MX records:
    0 85.227.190.37
    MX records reverse (PTR) lookup:
    c-25bee355.04-27-73746f29.cust.bredbandsbolaget.se
    Mail servers ip addresses:
    85.227.190.37
    =======
    I am would try to use nameserver ip addresses, not FQDN, in your dns configuration. Try it.

    Your MX record is not good, but this is about of receive email.
    You must make your MX record like this:
    mail.tibiahelp.com A 85.227.190.37
    tibiahelp.com MX mail.tibiahelp.com 10

    Because of MX records must point to DNS name and not IP address.
     
    nikb, Oct 17, 2009 IP
  10. Jontish

    Jontish Well-Known Member

    Messages:
    1,565
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    128
    #10
    I think I tried what you said.
    [​IMG]

    Is this correct?

    Unfortunately it didn't work.

    Thanks though.
     
    Jontish, Oct 17, 2009 IP
  11. nikb

    nikb Peon

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Please post output of
    nslookup -type=mx hotmail.com

    You must get something like this:

    Server: UnKnown
    Address: 192.168.5.5

    hotmail.com MX preference = 5, mail exchanger = mx2.hotmail.com
    hotmail.com MX preference = 5, mail exchanger = mx3.hotmail.com
    hotmail.com MX preference = 5, mail exchanger = mx4.hotmail.com
    hotmail.com MX preference = 5, mail exchanger = mx1.hotmail.com
    mx2.hotmail.com internet address = 65.55.92.152
    mx2.hotmail.com internet address = 65.55.37.88
    mx2.hotmail.com internet address = 65.55.37.120

    If no, use this DNS servers:
    208.67.222.222 and 208.67.220.220 in your NIC configuration and perform nslookup again.
    You must be able to get mx records with nslookup, than you can setup your mail.

    About of email to you domain.
    Your dns zone contains more than 4 (about of 30) records and i`m think that you has an mx record already:
    mail.tibiahelp.com. 1800 IN MX 0 m1.dnsix.com.

    I`m will send copy of your zone to pm.
     
    Last edited: Oct 18, 2009
    nikb, Oct 18, 2009 IP
  12. Jontish

    Jontish Well-Known Member

    Messages:
    1,565
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    128
    #12
    [​IMG]
    Is this right?
     
    Jontish, Oct 20, 2009 IP
  13. Jontish

    Jontish Well-Known Member

    Messages:
    1,565
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    128
    #13
    Problem solved. Thanks for all the help!
     
    Jontish, Oct 23, 2009 IP