Problem on sendmail AIX 6.1

I have an AIX 6.1 (server applications) i need to send mail every time
an service is down.
I have a script its ok, but the sendmail Configurations its not good.

The mail from AIX is receptioned in the Exchange Server, but its not
forward, because Exchange Server only reception email from account with
the next domain: email@removed, and the send from AIX Server is with
the domain: email@removed.

One way to do it is to masquarade the sending domain name in Sendmail.
Edit /etc/mail/sendmail.cf and change the DM directive to reflect the domain
that you want the messages to appear to come from.
For example:
DMdomain.comBob

We've had that problem here. Finally, we implemented masquerade.
Your sender must be resolvable on the Internet and your company's
internal relay server must allow it to go out.
I can give you details but not sure if you have the same situation.

Note the above new R$ entry line is very sensitive to where the spacing
and tabs are.
There are 3 'tabs' between R$+ and $@.
A space after $@, and then another space after >93.

d) Anti-relay systems should have the CE entry commented out
#CE root

There's no need to refresh sendmail daemon because the daemon is not
needed to send out mail.

The above should work if your company doesn't have any firewall that
blocks/prevents your AIX server from going outside. IF that is the
case, then you just need to find a server that is allowed to communicate
to the Internet(outside) and configure all of your sending AIX servers
to route the mail to this particular server that could go outside.
There's more configuration in sendmail.cf file on this relay server and
your sending AIX server will need to have this relay server name instead
of the mailserver name as the Smart relay host.

It took me many hours to get our servers send to the outside world to
work.

Copyright 1998-2015 Ziff Davis, LLC (Toolbox.com). All rights reserved. All product names are trademarks of their respective companies. Toolbox.com is not
affiliated with or endorsed by any company listed at this site.