LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   Configuring sendmail on a non-domain server (https://www.linuxquestions.org/questions/linux-enterprise-47/configuring-sendmail-on-a-non-domain-server-604776/)

ajatiti 12-05-2007 04:47 PM

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

gilead 12-05-2007 05:28 PM

That's not much information to help you with. Can you have a look in /var/log/maillog and post the information it contains?

ajatiti 12-06-2007 10:00 AM

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.

gilead 12-06-2007 12:55 PM

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?

ajatiti 12-07-2007 08:57 AM

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.


All times are GMT -5. The time now is 03:50 AM.