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 |
That's not much information to help you with. Can you have a look in /var/log/maillog and post the information it contains?
|
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. |
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?
|
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. |