[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1055
  • Last Modified:

How Do force email to be sent from sendmail, using SCO Openserver ?

About 2 weeks ago, we had our co-located server lose power to it, it came back up.  But it can no longer send email to our client reps.  Its a SCO Openserver 5.0.6, using Sendmail.  I put in  a smarthost entry in scoadmin, but that didn't seem to help.  Not sure what else to do...please advise.
0
ppmhampton
Asked:
ppmhampton
  • 6
  • 5
1 Solution
 
already_usedCommented:
Stop and Start sendmail (/etc/rc2.d/P86sendmail stop|start)
Run "mailq" to see what is in the queue, and possibly why it isn't being sent.
Run "mailq" again to see if the list is shrinking.
Run "nslookup somedomain.name" to see if DNS is running.
You should not need a smarthost if the machine is directly connected to the internet, has a valid domain name, and reverse DNS assigned.
0
 
ppmhamptonAuthor Commented:
it really isn't meant to serve lots of mail, just outgoing mail.  it has to bounce through our ms exchange server and then out through google's postini to send email.
0
 
ppmhamptonAuthor Commented:
there is a bunch of mail stuck in the queue at the moment.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
already_usedCommented:
Can you ping the ms exchange server?
0
 
ppmhamptonAuthor Commented:
yes i can.
0
 
already_usedCommented:
What is the gateway address?  I am puzzled by the fact that it worked without a smart host previously, which would presume that the email was sent directly to the internet.  
There should be comments in the output of mailq.  These should indicate what is failing.
After you added the smart host option, did you rebuild the sendmail.cf file, and have you stopped and started sendmail since.  There is always the possiblity that sendmail.cf had been edited.  Do you have a backup from prior to the power failure?
0
 
ppmhamptonAuthor Commented:
I didn't know that I had to rebuild the sendmail.cf file.  The service has been restarted since then.  As far as backups, I will have to check....
0
 
already_usedCommented:
When the sendmail.cf file is regenerated, the current copy is renamed sendmail.cf-
It is in /usr/lib (on SCO systems)
If you have only rebuilt the configuration file once, then the previous version should be correct.
0
 
ppmhamptonAuthor Commented:
when i do a mailq I get this error message with the output -

(Deferred: Connection timed out with domainname.com
0
 
already_usedCommented:
Run "netstat -nr"
Do you have a default route to the internet.  There is a strong likelihood that the routing statement is not configured anywhere, and is run manually when the system is re-booted (which is probably never?)
If not, run:
route add default 192.168.1.1 (replace ip with your router address)
Edit /etc/default/tcp, and add the ip address to the GATEWAY line.

Try running "nslookup domainname.com".
Check the contents of /etc/resolv.conf
0
 
ppmhamptonAuthor Commented:
still haven't figured out why sendmail won't work.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now