LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 12-05-2007, 04:47 PM   #1
ajatiti
Member
 
Registered: Jun 2007
Posts: 45

Rep: Reputation: 15
Configuring sendmail on a non-domain server


Hi,

We have a RHEL4 server behind a firewall and it is not any domain also there is no DNS.

I have a bash script running and need to send the output of that script to my email id. The SMTP server is in the same network and I can telnet it on port 25.

I did following:

edited sendmail.mc to enter SMART_HOST and then compiled:
#m4 sendmail.mc > sendmail.cf
#service sendmail restart
Then I ran my script.

I do not recieve any email.
Could anybody please tell me what could be the problem?

Thanks,
Ajatiti
 
Old 12-05-2007, 05:28 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
That's not much information to help you with. Can you have a look in /var/log/maillog and post the information it contains?
 
Old 12-06-2007, 10:00 AM   #3
ajatiti
Member
 
Registered: Jun 2007
Posts: 45

Original Poster
Rep: Reputation: 15
This is what I have in /var/log/maillog

Dec 5 17:31:06 VHO12SEARCH1 sendmail[5137]: lB5MV4GC005137: from=root, size=167, class=0, nrcpts=1, msgid=<200712052231.lB5MV4GC005137@VHO12SEARCH1.vho.ent.somedomain.com>, relay=root@localhost
Dec 5 17:31:06 VHO12SEARCH1 sendmail[5137]: lB5MV4GC005137: to=ajay.tatiwar@somedomain.com, delay=00:00:02, mailer=esmtp, pri=30167, dsn=4.4.3, stat=queued
Dec 5 17:35:49 VHO12SEARCH1 sendmail[5210]: lB5MZl9U005210: from=root, size=167, class=0, nrcpts=1, msgid=<200712052235.lB5MZl9U005210@VHO12SEARCH1.vho.ent.somedomain.com>, relay=root@localhost
Dec 5 17:35:49 VHO12SEARCH1 sendmail[5210]: lB5MZl9U005210: to=ajay.tatiwar@somedomain.com, delay=00:00:02, mailer=esmtp, pri=30167, dsn=4.4.3, stat=queued

Everytime I run the script it is always Stat=queued.

Thanks.

Last edited by ajatiti; 12-06-2007 at 10:03 AM. Reason: security
 
Old 12-06-2007, 12:55 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It looks like your sendmail daemon isn't starting. Can you try re-starting it again and check the log entries during the re-start please?
 
Old 12-07-2007, 08:57 AM   #5
ajatiti
Member
 
Registered: Jun 2007
Posts: 45

Original Poster
Rep: Reputation: 15
I got it working. The server wasn't identifying the domian of my email ID. I updated the /etc/hosts file and it works fine now.
Thanks for your consideration and help.
 
  


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
DISCUSSION: Configuring Dynamic Domain Name System (DDNS) Server XavierP LinuxAnswers Discussion 3 07-31-2009 11:07 AM
configuring sendmail domain Hewson Linux - Newbie 1 06-09-2007 04:25 PM
Configuring sendmail to allow SMTP traffic from my IP, domain, or email address hlslaughter Linux - Software 0 03-29-2007 02:19 PM
Sendmail : Configure 1 Server To Handle 2 Domain syzuhdi Linux - General 8 10-15-2005 07:05 AM
How to setting the Virual Domain Mail Server by sendmail? explorer1979 Linux - General 1 06-04-2002 02:26 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 05:58 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
Open Source Consulting | Domain Registration