LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 02-25-2008, 12:33 PM   #1
whattodo
LQ Newbie
 
Registered: Feb 2008
Posts: 3

Rep: Reputation: 0
Question How to send an email-RHEL AS3


Hello all!

I have a small problem, could gimme a hand in this or point to where i can find some info?

I have 4 servers running rhel as3.0 in a network.
my need is simple: i need to to be able to send email from one server to another. among all four.
how to achieve this?
Right now using the mail command from server A as:
"mail me@serverA.domain.com" i get the mail on my own serverA.

But i need to be able to use:
"mail someoneelse@serverB.domain.com" and it should be received at B.
Currently it is not and is bouncing to the root user on the same machine.

The /etc/hosts looks like this:
10.3.1.222 serverA serverA.domain.com
10.3.1.223 serverA serverB.domain.com
10.3.1.224 serverA serverC.domain.com
10.3.1.225 serverA serverD.domain.com

in the sendmail.mc/cf file, the line exhorting "accepting connections...127.0.0.1.." has been commented and sendmail restarted on all machines.
I noticed that domainname is not actually set for any for any servers, i.e.
hostname gives serverA.domainname.com
but domainname gives blank output.

could anyone please guide me how???

thanks in advance.
 
Old 02-25-2008, 12:35 PM   #2
mtimbro
Member
 
Registered: Feb 2008
Location: Montreal, Canada
Distribution: RedHat 3/4, Ubuntu 7.10
Posts: 86

Rep: Reputation: 15
Info

Hiya,

Seeing as this is an internal mail process, I'd suggest you paste the accurate information in your post because <someone@somedomain.com> such information is a bit tedious to work through.

Cheers,
 
Old 02-25-2008, 12:42 PM   #3
whattodo
LQ Newbie
 
Registered: Feb 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mtimbro View Post
Hiya,

Seeing as this is an internal mail process, I'd suggest you paste the accurate information in your post because <someone@somedomain.com> such information is a bit tedious to work through.

Cheers,
hiya mtimbro,

sorry, i know it sounds stupid, but i thought i was simplifying.

the actuals are this:
/etc/hosts looks like this:

10.3.1.250 controlserv controlserv.afb.com
10.3.1.253 commserv commserv.afb.com
10.3.1.251 matserv1 matserv1.afb.com
10.3.1.252 matserv2 matserv2.afb.com


As i mentioned earlier, from controlserv i need to send email to commserv. Or to any of the other machines as in using:
mail mark@commserv.afb.com
or mark@matserv1.afb.com.

But currently, the mail is not getting delivered at commserv or others using this.
I am sure the line pertaining to..127.0.0.1...is definitely commented with a dnl suffix and restarted.

thanks in advance
 
Old 02-25-2008, 12:43 PM   #4
whattodo
LQ Newbie
 
Registered: Feb 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by whattodo View Post
hiya mtimbro,

sorry, i know it sounds stupid, but i thought i was simplifying.

the actuals are this:
/etc/hosts looks like this:

10.3.1.250 controlserv controlserv.afb.com
10.3.1.253 commserv commserv.afb.com
10.3.1.251 matserv1 matserv1.afb.com
10.3.1.252 matserv2 matserv2.afb.com


As i mentioned earlier, from controlserv i need to send email to commserv. Or to any of the other machines as in using:
mail mark@commserv.afb.com
or mark@matserv1.afb.com.

But currently, the mail is not getting delivered at commserv or others using this.
I am sure the line pertaining to..127.0.0.1...is definitely commented with a dnl suffix and restarted.

thanks in advance
and yes, mark is a valid user on all servers.
 
Old 02-26-2008, 01:44 PM   #5
jonesr
Member
 
Registered: Feb 2008
Location: Sacramento
Distribution: RHEL AS, mostly
Posts: 36

Rep: Reputation: 18
Quote:
Originally Posted by whattodo View Post
in the sendmail.mc/cf file, the line exhorting "accepting connections...127.0.0.1.." has been commented and sendmail restarted on all machines.
You should probably uncomment the 127.0.0.1 listener since it doesn't hurt and usually helps except in specialized situations.

RHEL is distributed with mail disabled so a new installation does not open common ports unless you configure them. This is done by leaving out definitions for any non-localhost listeners in sendmail.mc. On each of your systems add a line to define a listener on your 10 network, for example on commserv add:
Code:
DAEMON_OPTIONS(`Port=smtp,Addr=10.3.1.253, Name=MTA-10')dnl
Quote:
Originally Posted by whattodo View Post
I noticed that domainname is not actually set for any for any servers, i.e. hostname gives serverA.domainname.com but domainname gives blank output.
Try "dnsdomainname". The "domainname" command is for NIS/YP, so blank output is correct if you're not using NIS.
 
Old 02-26-2008, 02:17 PM   #6
Randall Slack
Member
 
Registered: Feb 2005
Location: Rotterdam, The Netherlands
Distribution: Debian - Ubuntu
Posts: 218

Rep: Reputation: 30
you could use /etc/aliases to have roots mail delivered elsewhere
have it look like this
root: myname@mydomain.com

and run the command "newaliases" afterwards
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL(AS3)-Upd(5):System Cannot boot .... LinuxAhmad Linux - General 1 05-16-2007 11:08 AM
RHEL(AS3)-Upd(5):System Cannot boot .... LinuxAhmad Linux - Enterprise 1 05-16-2007 06:23 AM
RHEL AS3 U8 - dvd mount problem baloon Red Hat 3 03-28-2007 04:56 PM
Giving Error while burning CD in RHEL AS3 siddhartha7m Linux - Enterprise 1 03-11-2007 09:02 AM
Oracle on RHEL AS3 Cluster dippelw Linux - Enterprise 2 06-05-2005 08:38 AM


All times are GMT -5. The time now is 05:55 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration