emails not working

Discussion in 'Installation/Configuration' started by andyreynolds, Mar 13, 2007.

  1. andyreynolds

    andyreynolds New Member

    Hi
    I have now got the server hosting the domain vsk-gbr.com with joomla on it but I don't know how to get the mail servers to work. if you go to dnsstuff.com it says that it can connect to the mail servers through ns1.srhosting.net, but reading the mini how to tutorial I would of though that mail.vsk-gbr.com was the mail server but it turns out to be ns2.srhosting.net and when I send an e-mail it doesn't turn up at the inbox of which I sent it to. I have checked with my ISP and they don't block any ports, so i can't see what is wrong, can someone point me in the right direction,

    Cheers
    Andy
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    ns1.srhosting.net is the server that handles emails for vsk-gbr.com:

    Code:
    mh1:~# dig mx vsk-gbr.com
    
    ; <<>> DiG 9.2.1 <<>> mx vsk-gbr.com
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35775
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;vsk-gbr.com.                   IN      MX
    
    ;; ANSWER SECTION:
    vsk-gbr.com.            86400   IN      MX      10 ns1.srhosting.net.
    
    ;; Query time: 160 msec
    ;; SERVER: 213.191.92.84#53(213.191.92.84)
    ;; WHEN: Wed Mar 14 21:55:38 2007
    ;; MSG SIZE  rcvd: 62
     
  3. andyreynolds

    andyreynolds New Member

    mx

    Hi Falko

    So am I right in asuming that ns1.srhosting.net is the mail server for all of my domains. When I am in the dns entries section for vsk-gbr I have a mx record ns1.srhosting.net and an A record for ns1 that points to 91.84.34.130. But when I go into round cube and send an e-mail it comes back with an error message. When I send an e-mail to dan@vsk-gbr.com nothing appears in the inbox, why is this?

    Cheers
    Andy
     
  4. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    What's the exact error message? What's in your mail log?
     
  5. andyreynolds

    andyreynolds New Member

    error message

    Mail FAIL Connect to mail servers ERROR: I could not complete a connection to any of your mailservers!

    ns1.srhosting.net: Timed out [Last data sent: RCPT TO: ]

    If this is a timeout problem, note that the DNS report only waits about 40 seconds for responses, so your mail *may* work fine in this case but you will need to use testing tools specifically designed for such situations to be certain.
     
  6. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    You should consider to reinstall your server exactly as described in the perfect setup manual for your linux distribution, this will be most likely much faster then finding this problem in your current sendmail installation.
     
  7. andyreynolds

    andyreynolds New Member

    server

    I have installed postfix so that when you do the dns-stuff.com test it shows up that it can connect every time to the mail server. The messages get sent a lot quicker, but if I send an internal e-mail from one hosted domain to the other it doesn't appear in that inbox, why is this?
     
  8. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter ISPConfig Developer

    Which pop3 / imap daemon do you have installed? Please post an excerpt of your mail logfile.
     
  9. andyreynolds

    andyreynolds New Member

    daemon

    I have dovecot, is this ok?
     
  10. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Dovecot is ok, but make sure that Maildir is enabled in ISPConfig (Mangement -> Server -> Settings -> Email).
    Also make sure that SELinux is disabled.
     
  11. andyreynolds

    andyreynolds New Member

    google mail

    Hi there
    I have decided to test out google mail as they offer a compete mail soution for free, but I need to add their mx record to the domain vsk-gbr.com. The only trouble is that with ISP config you can only add one zone entry for vsk-gbr.com but I need to add around 8 for it to work. This is from the google site 'You may not be allowed to enter the priority values exactly as they appear in the table below; in that case, simply ensure that the server addresses are prioritised in the same order as they appear in the table. (i.e. The priority ranking [1, 3, 3, 5, 5, 5, 5] should work just as well as [1, 5, 5, 10, 10, 10, 10] as long as you keep the addresses in the right order.)
    If you are asked to specify the type of each record that you are adding, enter "MX".
    MX records often require the specific format of DNS records, including a trailing dot (".") at the end of any fully-qualified domain names (e.g. "server.example.com.")
    Set any TTL values to the maximum allowed.
    MX Server address Priority
    ASPMX.L.GOOGLE.COM. 1
    ALT1.ASPMX.L.GOOGLE.COM. 5
    ALT2.ASPMX.L.GOOGLE.COM. 5
    ASPMX2.GOOGLEMAIL.COM. 10
    ASPMX3.GOOGLEMAIL.COM. 10
    ASPMX4.GOOGLEMAIL.COM. 10
    ASPMX5.GOOGLEMAIL.COM. 10
    '
    But I can only add one, how would I solve this problem?
     
  12. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    You can add MX records manually in the zone file (there's a comment at the end of that file - you can add your records below that line).
     

Share This Page