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

Notices


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

Rep: Reputation: 0
Question SMTP Connection Closing


Hi

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 (root@sys2.mydomain.com) to (root@sys3.mydomain.com) , but it says Deffered : Connection Fefused by sys1.mydomain.com) 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 "mydomain.com". 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 sys2.mydomain.com, sys3.mydomain.com, sys4.mydomain.com 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

inforlinx
=====
 
Old 11-04-2004, 06:01 PM   #2
scowles
Member
 
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:
sys2.mydomain.com    smtp:[192.168.1.5]
sys3.mydomain.com    smtp:[192.168.1.6]
 
Old 11-04-2004, 06:27 PM   #3
inforlinx
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 sys1.mydomain.com will server for hostname1.mydomain.com,hostname2.mydomain.com

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
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration