Postfix SPF DNS problem

Discussion in 'Server Operation' started by jakethecake, Sep 9, 2009.

  1. jakethecake

    jakethecake New Member

    Hi I have a Postfix mail server in a Debian Linux network and used to be able to connect to it on port 25 via telnet. I also have working DNS on the server.

    I added this MX record to the DNS zone file:
    @  IN  MX  10
    It worked fine after that also but then I added this SPF record, the goal is that only the server is supposed to be able to send mail from the nework:
    @    IN     TXT     "v=spf1 mx ip4: ~all"
    But after I added that I'm not able to connect using telnet localhost 25 on the server. Help would be appreciated.
  2. falko

    falko Super Moderator ISPConfig Developer

    I don't see why the server shouldn't respond due to an SPF record. Any errors in your mail log? What's the output of
    netstat -tap
  3. jakethecake

    jakethecake New Member

    Postfix actually got uninstalled while I was adding the spf records, no wonder I couldn't connect to the postfix server. I can connect now but the emails sent to outside my network aren't being delivered, only the ones sent inside the network. And the clients are still able to send even though only the server is supposed to be. mail.log says:

    server postfix/qmgr[2561]: warning: connect to transport smtp: Connection refused
    Maybe that's because the spf record is wrong?
    Last edited: Sep 9, 2009
  4. falko

    falko Super Moderator ISPConfig Developer

    What's in /etc/postfix/ and /etc/postfix/ Are there any other errors in your mail log?

Share This Page