HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Postfix SPF DNS problem (http://www.howtoforge.com/forums/showthread.php?t=38968)

jakethecake 9th September 2009 02: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:
Code:

@  IN  MX  10  server.c4.sysinst.ida.liu.se.
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:
Code:

@    IN    TXT    "v=spf1 mx ip4:130.236.189.218 mx:server.c4.sysinst.ida.liu.se ~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 15: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
Code:

netstat -tap
?

jakethecake 9th September 2009 21: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:

Code:

server postfix/qmgr[2561]: warning: connect to transport smtp: Connection refused
Maybe that's because the spf record is wrong?

falko 10th September 2009 18:23

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


All times are GMT +2. The time now is 21:50.

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