• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 453
  • Last Modified:

Solaris Sendmail Forwarding Problem

We have a local mail server with mail forwarding set up in sendmail.cf (sendmail version 8.13.7+Sun) to send e-mail out of our local network (intranet) to a set of mail servers on the internet.

The problem with this is that ALL LOCAL e-mail is also going to the internet mail servers instead of being routed directly by our local mail server. In other words, when host x.a.b.c sends to host y.a.b.c his mail goes first to the local mail hub ... then up to the internet facing mail servers ... then back into our local network (domain a.b.c) and is finally routed to the destination. We would rather see the local mail server recognize that y.a.b.c is local and just send the e-mail directly to that host.

We understand that there is way to inhibit mail forwarding for hosts in the local domain in sendmail.cf but we find the documentation cryptic. Can someone help?
0
pzxkys
Asked:
pzxkys
  • 3
  • 3
1 Solution
 
yuzhCommented:
If you want all the local email send to your local mail server, why not set up your local mail server as the SmartHost, and direct send all the mails to that server. (look at your sendmail.cf file for the DS record to
definded the Mail SmartHost (relay host).
You can also use virtusertabl or aliases  to forward the emails. please read:
http://www.freebsd.org/doc/en/books/handbook/sendmail.html
 http://patriot.net/~scoile/isp-redhat/sendmail/virtusertable
http://www.sendmail.org/support
http://www.sendmail.org/tips/virtualHosting
http://www.sendmail.org/tips/index 
0
 
pzxkysAuthor Commented:
We don't want all local e-mail sent to our local mail server.

Let's call the mail server, server M. If local server A sends e-mail to local server B, and if server A's mail first goes to server M for processing, we want server M to send the e-mail on to Server B. We don't want server M to pass the e-mail outside of our network to an internet facing mail server.

There must be some simple change we can make in the cryptic sendmail.cf file that will make this happen.

Thanks!
0
 
yuzhCommented:
You can you use virtusertabl or aliases  to forward to which every mail server you wanted.
eg:
# Local account
user1 :user1@other-local-server
# External users
userN :userN@somewhere.com
If you need more help, please post an example of what you exactly want to do.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
pzxkysAuthor Commented:
Thanks Yuzh. We're familiar with the use of aliases. That's not what we're attempting to do here. Here's an example of what we're trying to do:

Let's call the mail server, server M. If local server A sends e-mail to local server B, and if server A's mail first goes to server M for processing, we want server M to send the e-mail on to Server B. We don't want server M to pass the e-mail outside of our network to an internet facing mail server.


0
 
yuzhCommented:
You need to setup a mail gateway in your local network to filter the mails, send the email to outside of the world distribute the local mail to local machines.
Please have a look at  "Setting Up Mail Services"
http://docs.sun.com/app/docs/doc/806-0916/6ja8539gi?a=view
 also:
http://www.firetrust.org/docs/sendmail-gateway.pdf
The make the mail gateway as the SmartHost for all your local machines.
0
 
pzxkysAuthor Commented:
Okay. Thanks Yuzh. I think you've provided the information I need to solve this problem. I just need to figure it out. I was hoping for some simple solution ... but apparently I'll need to get a better understanding of sendmail to proceed. I suppose that after I read a couple manuals this will seem simple.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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