How can I put local MX record in pfSense 2.2.5 ?

  • I have installed a local CentOS Postfix mail server .

    As DNS server in pfSense , I have chosen DNS forwarder ( dnsmaq ) .
    I want to add an MX record to the advanced options but I have no idea how to write the MX record in pfSense .
    In 've tried to associate DNS forwarder to a configuration file under
    Advaced = > addn hosts = / etc / extra
    File one:
    mx- host = , , 10

    file to:
    local- data: " . IN MX 10 . "

    TinyDNS I never got to work and seems unstable .

    I am grateful for all the help.

  • Banned

    And what doesn't work for you?

    You don't need any addn-hosts or whatever.

  • Thanks.

    Then status after restart of the DNS Forwarder :

    dnsmasq[44005]: read /etc/extra - 0 addresses
    dnsmasq[44005]: bad address at /etc/extra line 1
    dnsmasq[64861]: read /etc/hosts - 67 addresses

    ?? :-\

  • Banned

    I have no idea what's in /etc/extra. Obviously, whatever you are putting in the advanced field MUST be a local zone. I.e., either the same domain as configured in pfSense, or you need to tell dnsmasq that the domain is local.


  • It consisted only of the line:```,,10



    The outcome is the same.
    I've already registered mail server under Host Overrides , so I guess it's not necessary with the line :

  • Banned

    What outcome is the same? You test DNS with drill, dig, nslookup… (And no, A cannot replace MX record.)

  • LAYER 8 Global Moderator

    Dude dok gave you the example syntax to use.. Just put it in the the advanced box for gosh sake..

    Here.. I disabled resolver since that is what I use, I took exactly what dok gave you.. Started forwarder and queried for MX and there it is….

    Yes whatever your mx record points to, in this example needs to resolve as well as A record or AAAA...  But that has nothing to do with the MX record..

  • Thank you :). Sometimes you sweeten what is nearby.

    I see the log to dnsmasq that they were recorded and through dig.

    ; EDNS: version: 0, flags:; udp: 1280
    ;                    IN      MX
    ;; ANSWER SECTION:             1       IN      MX      10
    ;; ADDITIONAL SECTION:        1       IN      A
    ;; Query time: 2 msec
    ;; SERVER:
    ;; WHEN: Sun Dec 06 19:29:18 CET 2015
    ;; MSG SIZE  rcvd: 86

Log in to reply