×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

how to relay only company domain mail to a specific server?

how to relay only company domain mail to a specific server?

how to relay only company domain mail to a specific server?

(OP)
I have used sendmail often, but never had to configure it so I know very little about doing so.

Here is the problem: My Linux PC's are connected to our company main Windows 2003 server, srv01.mycompany.com. Recently we set up a new Exchange server to handle our emails, srv07.mycompany.com. After this was done, I could still send emails out with sendmail to external email addresses, but I no longer can send emails to people within the company.

When I look at the maillog entries, I see that emails to company employees has "relay=srv01.mycompany.com". The mails are being sent to the main company server, and most likely being dropped there instead of being passed on to the Exchange server.

I tried to force use of srv07 instead of srv01 by adding the line

define('SMART_HOST',`srv07.mycompany.com')dnl

to sendmail.mc, reconfiguring and restarting sendmail. Doing this, I can send mail to company employees, but no longer can send mail to external addresses (they also get relayed to srv07 and then bounced back saying I do not have permission, which is certainly an anti-spam protection).

So my question: How can I set up sendmail to relay to srv07 only the mail that is addressed to *.mycompany.com? I think this is what I need to do here.

Thanks for any help!

RE: how to relay only company domain mail to a specific server?

I would enable mailtable.  That is the way to subvert DNS and get the mail routing the way you like.  The mycompany.com would have an entry that points to srv07.mycompany.com.

RE: how to relay only company domain mail to a specific server?

(OP)
Hi and thanks for the tip!

I found out after reading a bit on the sendmail site that mailing tables is what I needed. These were already enabled, but empty, and I just needed to make the one entry for my company, create the database file, remove the "SMART" entry and restart the daemon and it works as I want now.

Thanks again!

- Steve, Denmark

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close