Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can Sendmail do this?

Status
Not open for further replies.
Jun 7, 2007
4
US
Hello all, my first post here, hoping someone can help shed some light on this. I have always used qmail for mail relaying and have gotten used to the simplicity of it. I am at a new job and the standard is Sendmail. I am building a new relay and am trying to do the following:

Mail to my internal domains int1.domain.com goes to one address.
Mail to my internal domains int2.domain.com goes to another address.
Mail to my internal domains int3.domain.com goes to another address.
and so on...
Mail not specified by the above rules goes to my outbound relay out.domain.com

I have enabled the smarthost feature to take care of mail going to the outside and have used the mailertable to take care of the internal domains.

However, all mail goes out thru the SmartHost!!!
Can both be used in conjunction with each other?
Is there a better way while still keeping it simple?

Also, is the mailhub feature the best way to say send all local mail to another server or is it better to just use the aliases file (i.e.. # Person who should get root's mail)



Thanks!
 
Disregard the post above, I had a syntax error in my mailertable file. Once fixed I was able to accomplish what I needed.

If anyone wants to, it would still be helpful to know the answer to the Mailhub question.



Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top