Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 11-04-2004, 04:57 PM   #1
LQ Newbie
Registered: Nov 2004
Posts: 3

Rep: Reputation: 0
Question SMTP Connection Closing


I have three dedicated servers.

SYS 1) configured as a firewall which runs only iptables, no other service runs on this system and connected to internet and as well as to LAN HUB, main gateway for this server is my ISP's gateway.

SYS 2 & 3) two servers are configured as a sendmail servers. and gateway for these two servers are my firewall system ip

Now I have configured my firewall in such away that i can deliver mails and recieve mails to / from outside network from / to my local servers SYS 2 & 3.

NOW here is the problem

I am not able to send mails from local system SYS 2 to SYS 3

let say i want to send mail from SYS 2 ( to ( , but it says Deffered : Connection Fefused by when i send mail from SYS 2.

i tried to fix the problem, but i am succeeded. can anyone help on what i am missing and what to be done to fix my problem.

I have another system SYS 4 , which is directly connected to the internet but it is also in the same domain "". But I can able to send mails from my other local two Systems SYS 2 & 3 to this server.

So i hope, the problem might be with the Firewall only.

when i try to connect SMTP on SYS2 from SYS3 using local ip . i can able to connect it. but i am not able connect using external ip.

the domains,, are assigned with external ip addresses at my DNS server.

so when i try to connect any of the SMTP server from local it is trying to connect other SMTP server with external ip address and failing to make the connection.

thanks in advance

Old 11-04-2004, 06:01 PM   #2
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Override the MX lookups for your domains in /etc/mail/mailertable. i.e.
Code:    smtp:[]    smtp:[]
Old 11-04-2004, 06:27 PM   #3
LQ Newbie
Registered: Nov 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the help, it worked for the static domains which i am using for my regular servers.

But here I am having another problem now. My mail servers will serve for multiple sub domains other than one i mentioned here earlier.

Like will server for,

with out entering these values in /etc/mail/mailertable, can't i send mails to other domains i mentioned above from each server.

let say as of you solutions , i have to configure both my local systems SYS2 and SYS3 for mailertable to update MX lookups.

my servers runs for virtual domains, which are dynamically created by scripts and i do not have feature to add an entry in mailertable . i hope you understand what i mean to say.

how come i solve this problem with out entering my virtual domains in mailer table

and main important thing i have to maintain this info in all of the servers for mailertable.

any way thanks again for you help and advance greeting for this problem


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem With SMTP Server Connection Manash Linux - Networking 3 10-03-2004 12:57 AM
ssh server is closing the connection just after successful login puru_09 Linux - Security 3 04-03-2004 01:42 AM
why ssh server is closing the connection just after successful login puru_09 Linux - Networking 0 03-30-2004 01:25 AM
problem closing smtp port pixelV Linux - Networking 10 06-03-2003 04:52 PM
SMTP: multiple mails with one connection? Titus Programming 2 07-19-2002 01:37 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:31 AM.

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