Hi Suresh,
Sorry for replying late to this mail, anyway i was out of India for 2months so it was
delay from my part to immplement ur said suggestion , but even by making mailertable
entries it is not working can u tell me any other workable solution.
Following is the Mail , which i have sent and which is followed by ur reply MAIL..
Regards
Girish
####My Querry
Hi,
I have some peculiar problem with sendmail, can u
help me in fixing it up. I have attached one ppt file
along with this mail for ur reference.
All the Servers are on Red Hat Linux 7.0 .As u can see in layout.ppt
gmail and dmail are in in.abc.com domain, and Tgate.abc.com is the Mail gateway
server.
I am modifying default sendmail.cf file , now when i give following
command on gmail.in.abc.com it gives
#1 sendmail -bv girish it says deliverable local
and if
#2 sendmail -bv ragesh it says deliverable host dmail.
So far its OK..
But as soon as i put Smart relay host as Tgate.abc.com,
the result for sendmail -bv ragesh
is deliverable mailer relay, host Tgate
Can u pl. suggest what could be wrong, my DNS is up and running ...
I have checked the DNS its perfectly ok. I have put in.abc.com
entry in /etc/mail/local-host-names..
Pl. suggest as i am stuck up with this config.
Regards
Girish
#####........THIS WAS YOUR REPLY.....
DATE: Sat, 28 Jul 2001 08:47:21
From: Suresh Ramasubramanian <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
+++ girish p [linux-india] <28/07/01 00:25 +0530>:
> I have some peculiar problem with sendmail, can u
... and with your mail client - why two cc's to
[EMAIL PROTECTED]? ;)
> All the Servers are on Red Hat Linux 7.0 .As u can see in layout.ppt
OK so far.
> I am modifying default sendmail.cf file , now when i give following
> command on gmail.in.abc.com it gives
Normally, it's not a good idea to modify sendmail.cf - use the mc file
instead.
> #1 sendmail -bv girish it says deliverable local
> and if
> #2 sendmail -bv ragesh it says deliverable host dmail.
OK so far
> But as soon as i put Smart relay host as Tgate.abc.com,
> the result for sendmail -bv ragesh
> is deliverable mailer relay, host Tgate
So what the heck do you expect when you tell qmail.in.abc.com to
smarthost
through tgate? All non-local mails will be delivered only to your
smarthost, for onward delivery. DNS or no DNS ... in fact, you can
just use
a service.switch file to turn off DNS lookups if you are passing mail
to a
smarthost for delivery.
Thing is, if you are absolutely insistent that the mail should go
directly
to dmail (despite the smarthost to Tgate) set up a mailertable
in.abc.com esmtp:dmail.in.abc.com (or esmtp:[ip.of.dmail.box])
and makemap it. I guess redhat's default sendmail config already has
the
mailertable feature included.
[or if you only want dmail mail to go that way, put dmail.in.abc.com
in the
LHS of that mailertable entry above]
> Can u pl. suggest what could be wrong, my DNS is up and running ...
> I have checked the DNS its perfectly ok.
You have accomplished precisely what you set out to accomplish. You
wanted
one machine to handoff all non-local mails to another machine for
delivery -
you did that.
> I have put in.abc.com entry in /etc/mail/local-host-names..
OK, so your box (whatever) treats in.abc.com as local. Not very
relevant in
this case, given that you have /etc/aliases entries pointing to other
machines in your LAN.
If you'll take my suggestion, just set up NAT so that this linux box
has
full access to the 'net (outbound only) - and can send any mails
destined
for the 'net directly to the 'net, without a smarthost of any sort.
Saves a
lot of pain :)
-suresh
Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help