LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-11-2006, 01:37 PM   #1
ggduff
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Rep: Reputation: 0
SMTP errors after moving to internal IP behind NAT firewall


I moved a server behind a NAT firewall and started having problems with SMTP mail within my PHP scripts.

We'll say the public IP is: 24.101.202.14
And the firewall routes this IP to: 192.168.0.14

The errors I'm getting are like this:
Warning: fsockopen(): unable to connect to mydomain.com:25 in /home/mydomain/public_html/forums/includes/smtp.php on line 111

Warning: Cannot modify header information - headers already sent by (output started at /home/mydomain/public_html/forums/includes/smtp.php:111) in /home/mydomain/public_html/forums/includes/page_header.php on line 474

Warning: Cannot modify header information - headers already sent by (output started at /home/mydomain/public_html/forums/includes/smtp.php:111) in /home/mydomain/public_html/forums/includes/page_header.php on line 476

Warning: Cannot modify header information - headers already sent by (output started at /home/mydomain/public_html/forums/includes/smtp.php:111) in /home/mydomain/public_html/forums/includes/page_header.php on line 477
I'm thinking this has something to do with the headers. Could this be a configuration in Exim that I could change to fix the problem?

This is a CPanel / Red Hat Enterprise 4 server.

Thanks!
 
Old 01-11-2006, 04:32 PM   #2
allelopath
Member
 
Registered: Jan 2003
Location: New Mexico
Distribution: Ubuntu 18.04.3 LTS
Posts: 539

Rep: Reputation: 30
Have you done DNS/Reverse DNS on mydomain.com <-> 192.168.0.14?
 
Old 01-11-2006, 09:13 PM   #3
ggduff
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Original Poster
Rep: Reputation: 0
Yes, we did put the reverse DNS entries on a server in our subnet.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IPfiltering, NAT, Masquerading, Packet Rewriting to disguise internal systems exabrial Linux - Networking 2 07-11-2005 06:22 PM
NAT errors in Azureus. jc_firestorm Linux - General 2 03-14-2005 06:39 PM
NAT + SMTP problem on SuSE 9.1 Pro Malakim Linux - Networking 0 07-27-2004 11:14 PM
firewall behind a nat wrat Linux - Security 3 06-15-2004 11:28 AM
smtp internal network 192.168.x.x sendmail sloboda Linux - Networking 0 10-03-2001 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration