HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Server Operation (
-   -   Postfix SPF DNS problem (

jakethecake 9th September 2009 03:47

Postfix SPF DNS problem
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.

falko 9th September 2009 16:56

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

jakethecake 9th September 2009 22:34

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?

falko 10th September 2009 19:23

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

All times are GMT +2. The time now is 14:28.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.