email not sending or recieving

Discussion in 'Installation/Configuration' started by blochwall, Apr 15, 2011.

  1. blochwall

    blochwall New Member

    Hi all,

    I've just started running a vps as I wanted to learn a bit more about hosting (no particular reason).

    My VPS is a currently running centos 5.2 with all the standardish webserver stuff, apache, mysql, postfix... (no BIND)

    Recently I tried to add a domain to the vps by redirecting the A records from my domain name provider, and point to my vps ip address e.g @, mail, www

    @ (type A) my.server.ip
    mail (type A) my.server.ip
    www (type A) my.server.ip


    On my vps using ispconfig3, I have setup the DNS zone accordingly, and the website is now displaying as I would like.

    Unfortunately, the mailbox I've set-up through ispconfig3 does not seem to send or receive mails, though I can log in via squirrelmail.

    On my VPS the DNS zone records are as follows...

    A-------mail--------------------------------my.server.ip-----------------------0
    A-------mydomainname.com.-------my.server.ip-----------------------0
    A-------www-------------------------------my.server.ip-----------------------0
    MX-----mydomainname.com.-------mail.mydomainname.com.--10
    NS-----mydomainname.com.-------ns1.mydomainnameh.com.-0
    NS-----mydomainnam.com.---------ns2.mydomainnam.com.-----0


    My email domain is setup like this

    my.server.ip--------------------mydomainname.com

    My mailbox is setup like:

    email: [email protected]
    Name: my name
    auto responder: n

    Can anyone see anything wrong with this

    I'm sure there are many reasons for this problem however, I just wanted to eliminate the obvious.

    EDIT: I should have said that I get no error messages when sending from or to the mailbox, which leads me to think its something to do with the dns records.

    thanks in advance.
     
    Last edited: Apr 15, 2011
  2. falko

    falko Super Moderator Howtoforge Staff

    Any errors in your mail log?

    Is the MX record correct? You can check that with
    Code:
    dig mx yourdomain.com
     
  3. blochwall

    blochwall New Member

    Hi there falko,

    thanks for your reply.

    I'm very sure my MX record is correct. I have checked both the recors over at 123-reg.co.uk and my vps and they match.

    here is the last few lines of my /var/log/maillog which seem to keep repeating every minute.

    Apr 16 09:30:29 server1 postfix/qmgr[12340]: fatal: unsupported dictionary type: mysql
    Apr 16 09:30:29 server1 postfix/proxymap[12341]: fatal: unsupported dictionary type: mysql
    Apr 16 09:30:29 server1 postfix/smtpd[12342]: fatal: unsupported dictionary type: mysql
    Apr 16 09:30:30 server1 postfix/cleanup[21952]: warning: private/proxymap socket: service dict_proxy_open: Success
    Apr 16 09:30:30 server1 postfix/master[7109]: warning: process /usr/libexec/postfix/qmgr pid 12340 exit status 1
    Apr 16 09:30:30 server1 postfix/master[7109]: warning: /usr/libexec/postfix/qmgr: bad command startup -- throttling
    Apr 16 09:30:30 server1 postfix/master[7109]: warning: process /usr/libexec/postfix/proxymap pid 12341 exit status 1
    Apr 16 09:30:30 server1 postfix/master[7109]: warning: /usr/libexec/postfix/proxymap: bad command startup -- throttling
    Apr 16 09:30:30 server1 postfix/master[7109]: warning: process /usr/libexec/postfix/smtpd pid 12342 exit status 1
    Apr 16 09:30:30 server1 postfix/master[7109]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

    The output of
    Code:
    dig mx mydomain.com
    ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> mydomainname.com
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31204
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

    ;; QUESTION SECTION:
    ;mydomainname.com. IN A

    ;; ANSWER SECTION:
    mydomainname.com. 86400 IN A my.server.ip

    ;; Query time: 20 msec
    ;; SERVER: 87.117.198.200#53(87.117.198.200)
    ;; WHEN: Sat Apr 16 09:39:37 2011
    ;; MSG SIZE rcvd: 52


    hope this helps

    thanks
     
    Last edited: Apr 16, 2011
  4. falko

    falko Super Moderator Howtoforge Staff

    Your Postfix doesn't have MySQL support. Which tutorial did you use to set up the server?
    Basically, you must install Postfix from the CentOS Plus repository - see chapters 7 and 11 of this tutorial: http://www.howtoforge.com/perfect-server-centos-5.6-x86_64-ispconfig-3
     
  5. fak3r

    fak3r New Member

    This fixed the issue for me in Ubuntu 12.04:

    Code:
    apt-get install postfix-mysql
     

Share This Page