How can I tell if my Solaris server is being used as a mail relay

I suspect my Solaris 5.8 server is being used as a mail relay from an outside source, how can I tell?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I have been trying to find a software tool to do the same thing, but have been unsuccessful.

If your server dose not need to do mail at all, then you could do an
/ete/init.d/sendmail stop

This will turn off all mail services on the server. (until you reboot)

You can also manually check the logs at /var/log/syslog looking for sendmail entries to see if there is much off site traffic.
grep sendmail /var/log/syslog |more

Easy, check the sendmail log files.  If you have a source that isn't from your domain or localhost and the destination is also not from your domain or localhost, then your server is being used as a relay.

I can't remember which version of sendmail comes in Solaris 8 but something to get you start:
Artysystem administratorCommented:
Easy way - submit your email server IP to trusted mail relay checker, it will check your server for all known types of relay (including bounce relay and many other types, which are hard do discover manually).
Here are two trusted checkers (they will not disclose your IP, but they will include it in blacklist, so you will need to ask them again to recheck when problem will be fixed, if any):

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Although the accepted answer is good, and those methods will tell you if there is a configuration error that allows relaying, they do not tell you if there is a compromised account that is being used to send spam.  Or worse if one of your own users is a spammer!

What would be really good is a tool that monitors mail flow and alerts the sysadmin if someone suddenly sends 50 or more messages in a short period of time.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.