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!

mailertable and alias help

Status
Not open for further replies.

Bluecrack

MIS
Apr 9, 2001
180
US
Can anyone point me in the right direction on this problem.

We have a sendmail server at our network border filtering mail into the network. Mail for "domain.com" is forwarded to serverA via the mailertable. I would like to have email for specific email address forwarded to another server. For example, have mail to userX@domain.com sent to serverB.

How would I go about doing that? The alias file is for local addresses only so that won't work. The virtusertable doesn't seem to work for this because "domain.com" is not setup as a virtual host.

It's late and I'm stumped.

Bluecrack
 
I thought I would try to clarify my previous post now that I've had a few hours of sleep.

Our sendmail server is relaying all mail for our domain to an internal mail server after filtering (AV, spam, etc). The mailertable has an entry as such:

company.com esmtp:[x.x.x.x].

I would like to certain email addresses forwarded to different places/people. For example, I want emails to "it@company.com" forwarded to "bluecrack@company.com" and I want "abuse@company.com" forwarded to "abuse-internet@itserver.company.com".

I hope that makes this a little more clear. Does anybody have any idea if this is possible with sendmail setup as a relay? Also, I can't figure out the order in which all the databases/tables are processed. Does anyone have a link explaining this?

Thanks,
Bluecrack
 
I don't think once sendmail relays mail to another server that it has anything to do with it. It would be up to the second server to get the mail where it needs to go. What does the second server do with the mail after it's done with it? Where does it go? There are ways to do what you want but I need to know the path the mail take from the time it first comes in from the outside world.
 
RhythmAce

Thanks for the post. The sendmail server is simply a border gateway that does AV and spam processing in incoming mail. It relays all mail to our central Lotus Notes server where it is distributed to the user mailboxes. The sendmail server is also the smart-host relay server for outbound mail.

I would like to have the sendmail machine route email for certain users to other systems for various processing routines.

Bluecrack
 
You can set up in sendmail.cf something like

R it < @ company.com > (tab) person < @ company.com >

This deals with re-addressing, sendmail will now deliver to the appropriate server. If you put this in rule 96 (where I have) it will not re-write the rcpt to: (envelope?) address. This may not matter if you have control over the recieving server. Otherwise you can use the hack I used to solve my problem on this list: use sendmail.cf to direct to a local address and use aliases to forward to the final destination. There may be a more elgant solution based on which rule you put the re-writing element in.

Richard Farmbrough
 
rawkiw,

Thanks for the idea. Is there a way to do this with settings in the .mc or one of the databases? I really don't want to start making extra changes to the sendmail.cf file itself.

Bluecrack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top