Can't get mailserver to work

Discussion in 'Installation/Configuration' started by Jorem, Apr 14, 2006.

  1. Jorem

    Jorem New Member

    I can't get the mailserver to work correctly.

    I'm using Debian Sarge 3.1 and followed the Perfect Setup

    When I check the domain with a domain checker I get: no mailserver available for this domain. While I can send a email to the domain with Outlook and receive it again.

    Emailing to someone on the same server isn't working. So my mailforms aren't working the way they should.

    When I do dig mx domain I get this:
    ; <<>> DiG 9.2.4 <<>> mx domain.com
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5052
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;domein.com. IN MX

    ;; Query time: 20 msec
    ;; SERVER: 85.92.129.34#53(85.92.129.34)
    ;; WHEN: Fri Apr 14 15:23:29 2006
    ;; MSG SIZE rcvd: 47


    Netstat -tap:
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State
    PID/Program name
    tcp 0 0 localhost.localdo:mysql *:* LISTEN 2
    112/mysqld
    tcp 0 0 *:10000 *:* LISTEN 1
    7600/perl
    tcp 0 0 *:81 *:* LISTEN 2
    301/ispconfig_http
    tcp 0 0 domain:domain *:* LISTEN 1
    616/named
    tcp 0 0 server2.domain:domain *:* LISTEN 1
    616/named
    tcp 0 0 192.168.10.6:domain *:* LISTEN 1
    616/named
    tcp 0 0 localhost.locald:domain *:* LISTEN 1
    616/named
    tcp 0 0 *:ftp *:* LISTEN 6
    084/proftpd: (acce
    tcp 0 0 localhost.localdoma:953 *:* LISTEN 1
    616/named
    tcp 0 0 *:smtp *:* LISTEN 2
    7449/master
    tcp6 0 0 *:imaps *:* LISTEN 2
    029/couriertcpd
    tcp6 0 0 *:pop3s *:* LISTEN 2
    050/couriertcpd
    tcp6 0 0 *:pop3 *:* LISTEN 2
    037/couriertcpd
    tcp6 0 0 *:imap2 *:* LISTEN 2
    016/couriertcpd
    tcp6 0 0 *:www *:* LISTEN 1
    8011/apache2
    tcp6 0 0 *:ssh *:* LISTEN 2
    266/sshd
    tcp6 0 0 ip6-localhost:953 *:* LISTEN 1
    616/named
    tcp6 0 0 *:smtp *:* LISTEN 2
    7449/master
    tcp6 0 0 *:https *:* LISTEN 1
    8011/apache2
    tcp6 0 2220 domain.com:ssh j238108.upc-j.chel:1422 ESTABLISHED2
    325/sshd: user [p

    I tried a lot of different things already but I can't figure it out.

    Maybe you can help
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Your problem is not realted to your mailserver, it is a DNS problem. Please create an MX record in the DNS server authoritive for your domain, that points to your mailserver.
     
  3. Jorem

    Jorem New Member

    I did that already and in my DNS records they show up.

    $TTL 86400
    @ IN SOA ns1.domain.nl. info.domain.nl. (
    2006041304 ; serial, todays date + todays serial #
    28800 ; refresh, seconds
    7200 ; retry, seconds
    604800 ; expire, seconds
    86400 ) ; minimum, seconds
    ;
    NS ns1.domain.nl. ; Inet Address of name server 1
    NS ns2.domain.nl. ; Inet Address of name server 2
    ;

    mail MX 10 domain.nl.
    mail2 MX 20 domain.nl.

    domain.nl. A 85.92.128.63
    www A 85.92.128.63
    ftp A 85.92.128.63
    pop A 85.92.128.63
    mail A 85.92.128.63
    ns1 A 85.92.128.63
    ns2 A 85.92.128.64
    localhost A 127.0.0.1
    mail2 A 85.92.128.64

    ;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;

    Did I miss something?
     
  4. hastlaug

    hastlaug New Member

    Just a guess - shouldn't that be the following?

    Code:
    MX      10 domain.nl.
    MX      20 domain.nl.
    As far as I remember you usually don't have a name in front of the MX. Maybe that confuses the domain checker? Or perhaps the checker uses old (cached) data.
     
  5. Jorem

    Jorem New Member

    It is working now. I don't get a error with domain testing anymore. I will test de emailing in the form but I am sure that that is also working now.

    Thanks hastlaug and till for your help.
     
    Last edited: Apr 14, 2006
  6. Jorem

    Jorem New Member

    It is almost working now. I don't get an error for mailserver anymore. And I can receive email from my other server. Only when I use my own smtp server (on the same server as the email address) for sending email, or use an emailform to send a email to someone on the same server it isn't working.

    If I use the mailserver of my Dutch provider chello I receive the mail.

    I can send email with the to evenry other email address, accept the ones on the same server.

    Thanks for the help so far. It is almost working :)
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post an ecxerpt of the logfile where you try to send an email to a local email address.
     

Share This Page