LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-13-2012, 09:43 AM   #1
redhatuser1
Member
 
Registered: Sep 2009
Posts: 55

Rep: Reputation: 0
RHEL sending an email


Hi,

I am trying to send an email from the RHEL server to anywhere else (within organisation really, not fussed about using the tinternet). I have got it configured and working correctly on 3 servers (I set them up about 9 months ago), I am building 3 new servers, using the same version of RHEL, but I am struggling. I am trying to send it via our smtp server.

This is all I have done so far, can someone explain what else I need to do:
1. installed sendmail ( well it came preinstalled ...)
2. edited /etc/mail/sendmail.cf (I know I shouldn't but i simply edited the following lines
Code:
DjWITHMYHOSTNAME
DSsmtp.host.domain.stuff
3. Restarted sendmail

The maillog of the server which isn't working shows:
Code:
Apr 13 13:35:11 MYHOST sendmail[5870]: q3DCZBCG005870: from=root, size=59, class=0, nrcpts=1, msgid=<201204131235.q3DCZBCG005870@localhost.localdoma
in>, relay=root@localhost
Apr 13 13:35:11 MYHOST sendmail[5870]: q3DCZBCG005870: to=alexm@carlisle.gov.uk, delay=00:00:00, mailer=esmtp, pri=30059, dsn=4.4.3, stat=queued
Furthermore....mailq reveals:
Code:
                /var/spool/mqueue (1 request)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
q3DCWttQ005782   364512 Fri Apr 13 13:32 root
                 (host map: lookup (domain.this.that[/email]): deferred)
                                         me@domain.this.that
I am guessing the relay should point to our smtp server?

Last edited by redhatuser1; 04-13-2012 at 10:09 AM.
 
Old 04-13-2012, 11:39 AM   #2
redhatuser1
Member
 
Registered: Sep 2009
Posts: 55

Original Poster
Rep: Reputation: 0
HI,

Please close this I have just solved the problem.

The file /etc/resolv.conf didn't contain the DNS servers I needed. once I had added those and restarted sendmail the emails were delivered.
 
Old 04-13-2012, 11:43 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,928

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by redhatuser1 View Post
HI,

Please close this I have just solved the problem.

The file /etc/resolv.conf didn't contain the DNS servers I needed. once I had added those and restarted sendmail the emails were delivered.
Thanks for posting the solution, but you can mark the thread as SOLVED.
 
Old 04-13-2012, 02:21 PM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Apart the fact that the correct way to ask for threads management is reporting the thread/post itself, I see no reason why this one should be closed. Marking it as SOLVED, as TB0ne suggested, is enough.

Last edited by colucix; 04-13-2012 at 02:23 PM.
 
Old 04-16-2012, 04:50 AM   #5
redhatuser1
Member
 
Registered: Sep 2009
Posts: 55

Original Poster
Rep: Reputation: 0
wasn't sure on process but thanks.
Marked as solved.
 
  


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 sending email through new email server bigben747 Linux - Server 3 01-26-2009 06:16 PM
sending email cambie Linux - Software 1 11-20-2004 07:02 PM
sending email to an ip pyu7 Linux - Software 4 10-08-2004 03:46 PM
sending email GraemeK Linux - Networking 1 08-24-2003 06:14 PM
sending an email to a email address after a perl operation meluser Programming 9 04-07-2003 02:26 PM


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