LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-01-2004, 12:03 AM   #1
aronnok
Member
 
Registered: Oct 2004
Location: Dhaka, Bangladesh
Distribution: Redhat Linux 7.2,Redhat Linux 8.0,Redhat Linux 9.0
Posts: 36

Rep: Reputation: 15
Problem on my secondery Mail server


Dear all, For some reason, we have to empliment swecondery mail server. But we are having problems. When we try to send mail from our secondery mail server, the mail just bounce back to that user.

When i have tried to send a mail to my yahoo box the following message return to my email box(imtiaz@atcl.net(This user is existing in secondary mail server)[secondary mail server IP=202.51.183.7]


Code:
The original message was received at Mon, 1 Nov 2004 09:03:01 +0600
from localhost.localdomain [127.0.0.1]

   ----- The following addresses had permanent fatal errors -----
<jesu40up@yahoo.com>
    (reason: 553 5.3.5 system config error)

   ----- Transcript of session follows -----
553 5.3.5 [202.51.183.7] config error: mail loops back to me (MX problem?)
554 5.3.5 Local configuration error

On my Name server, I have the entry of Secondery mail servers.
It is MX 20

Here is some hints from my config files ( secondery mail server ) :

#/etc/mail/access
-----------------------
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
192.168.1 RELAY
202.51.183 RELAY


#/etc/mail/local-host-names
--------------------------------------
atcl.net
ns2.atcl.net

#/etc/mai/sendmail.mc
---------------------------------------
define(`SMART_HOST',`ns2.atcl.net')
define(`SMART_HOST',`[202.51.183.7]')

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=202.51.183.7, Name=MTA')dnl


Waiting. Help me guys

Thanx in advance
 
Old 11-01-2004, 07:25 AM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
#/etc/mail/local-host-names
--------------------------------------
atcl.net
ns2.atcl.net


Exactly why are you specifying your domain names in local-host-names on the secondary? Typically...

1) A secondary mail server should NOT contain any local mailboxes. It should relay all e-mail to the primary mail server where the mailboxes exist.
2) A secondary mail server should be configured to query the primary mail server for a list of valid mailboxes prior to relaying.
3) A secondary mail server should be configured the same as the primary for UCE filters, otherwise spammers will use it as a backdoor for delivery.

#/etc/mai/sendmail.mc
---------------------------------------
define(`SMART_HOST',`ns2.atcl.net')
define(`SMART_HOST',`[202.51.183.7]')


If I understand your post correctly, you are specifying your own mail server (the secondary) as the smart host. Bzzt! Loop alert!

If you must setup a secondary, try the following config changes. I'm assuming all mailboxes exist on the primary mail server.

1) Remove ALL entries from /etc/mail/local-host-names
2) Add your domain name atcl.net to /etc/mail/relay-domains
3) Add your domain name to /etc/mail/mailertable. Ex:
atcl.net smtp:[ip of primary]
4) Your smart host entries should point to your primary mail server or your ISP's mail server.
 
Old 11-05-2004, 10:44 PM   #3
aronnok
Member
 
Registered: Oct 2004
Location: Dhaka, Bangladesh
Distribution: Redhat Linux 7.2,Redhat Linux 8.0,Redhat Linux 9.0
Posts: 36

Original Poster
Rep: Reputation: 15
Thank you for you help.

Primary Server: name: ns1.atcl.net
IP: 202.51.183.6
(primary mailserver,web,ns1)

Secondary Server: name: ns2.atcl.net
IP: 202.51.183.7
(secondary mail server, Proxy, ns2)

------------------Secondary Mail Server Configuration ------------

1) Remove ALL entries from /etc/mail/local-host-names
Ans: I removed, ok
2) Add your domain name atcl.net to /etc/mail/relay-domains
Ans:ADDED, ok
3) Add your domain name to /etc/mail/mailertable. Ex:
atcl.net smtp:[ip of primary]
Ans:ADDED

4) Your smart host entries should point to your primary mail server or your ISP's mail server.
Ans:
define(`SMART_HOST',`ns1.atcl.net')
define(`SMART_HOST',`[202.51.183.6]')

Note : In SMART_HOST I use Primary Server(ns1.atcl.net) name and IP(202.51.183.6) Address
----------------------------------------------------------------------------------------------

I have some questions.

1. I am using my primary server IP (202.51.183.6) as a POP & SMTP into my Outlook express mailer. If my primary server failed is this will be working(my POP and SMTP address)?(at my sendmail.mc file, I din't use my secondary IP(202.51.183.7) there)

PLS answer

2. If my primary server is down then my secondary will give me the email facility but when my primary server will be up again; how my secondary mail sever will send evey mail to the primary server ? Is this possible?

PLS Answer.

Thanx in advance

Last edited by aronnok; 11-05-2004 at 11:35 PM.
 
Old 11-06-2004, 07:46 AM   #4
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Quote:
define(`SMART_HOST',`ns1.atcl.net')
define(`SMART_HOST',`[202.51.183.6]')

Note : In SMART_HOST I use Primary Server(ns1.atcl.net) name and IP(202.51.183.6) Address
Why are you listing the same smart host twice? This makes no sense to me. List one or the other.
Quote:
1. I am using my primary server IP (202.51.183.6) as a POP & SMTP into my Outlook express mailer. If my primary server failed is this will be working(my POP and SMTP address)?(at my sendmail.mc file, I din't use my secondary IP(202.51.183.7) there)
If I understand your question correctly - If your primary server is down, inbound e-mail will be accepted (smtp) by your secondary mail server, but all pop access will not work because the mailboxes only exist on the primary. This is why implementing a secondary mail server when the primary is "both" the smtp and pop server is pointless.
Quote:
2. If my primary server is down then my secondary will give me the email facility but when my primary server will be up again; how my secondary mail sever will send evey mail to the primary server ? Is this possible?
Sendmail will automatically queue all accepted e-mail when the primary is down and retry delivery based on the queue runner specified at startup. i.e. If the queue runner is set to one hour, then sendmail will retry delivery to the primary every hour.
 
Old 11-06-2004, 08:40 AM   #5
aronnok
Member
 
Registered: Oct 2004
Location: Dhaka, Bangladesh
Distribution: Redhat Linux 7.2,Redhat Linux 8.0,Redhat Linux 9.0
Posts: 36

Original Poster
Rep: Reputation: 15
Thanx a lot. really really.
Now everything is clear to me. Just clear.
All the best scowles.
 
  


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
Mail server problem jerrymei Linux - Software 1 11-13-2005 11:34 PM
adding secondery ip to interface juanb Solaris / OpenSolaris 2 04-14-2005 05:52 AM
adding secondery ip to interface /solaris juanb Linux - Networking 1 04-14-2005 03:32 AM
problem receiving pop3 mail from postfix mail server GEN_Electric Linux - Software 2 02-14-2005 02:43 PM
problem with mail server netpraveen Linux - Networking 4 02-20-2002 10:26 PM

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

All times are GMT -5. The time now is 03:51 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