Link to home
Start Free TrialLog in
Avatar of Waterskier28off
Waterskier28off

asked on

How do I Relay between Domains with sendmail in Solaris

I need all of the mail routed to machine x on campus. Machine x then checks that it is not spam and sends it out. I have tried defining machine x in various sendmail files but I can not get it to work. Do you know what files need to be changed to get all mail routed out to a different machine?

I have added machine x in the /etc/mail/relay-domains file. What else do I need to change? Thanks for any help you can give me.


Avatar of wesly_chen
wesly_chen
Flag of United States of America image

> Do you know what files need to be changed to get all mail routed out to a different machine?
/etc/mail/mailertable
--
domain.com    smtp:[x.x.x.x]
--

Then restart sendmail.

Wesly
ASKER CERTIFIED SOLUTION
Avatar of yuzh
yuzh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of yuzh
yuzh

ahoffmann make a good point, defined you mail gateway as the Smart Host of the other
mail server, and scan the out going email at your mail gateway  (machine x ).

remember to restart sendmail after you change the DS record.
Avatar of Waterskier28off

ASKER

I'm still working with this and I appreciate all the suggestions.

When I figure out what the missing link is, I'll accept the solution that got me there.
do you use default Sun installation for sendmail?
Not that Sun has it's own idea how sendmail works ...