We reinstalled the server now using Redhat 8, which is what I ran my test servers on. Sendmail(8.12.5-7) has the following settings:
/etc/mail/relay-domains has one line: mydomain.com /etc/mail/mailertable has one line: .mydomain.com esmtp:[192.168.1.5] /etc/mail/local-host-names has no entries I ran "make" while in /etc/mail and it returned me to a prompt so I thin kit ran ok. I restarted Sendmail. The damn thing is still relaying the mail to the mail server at the MX record instead of forwarding it directly to the server specified in the mailertable. What am I missing? Thanks, James On Sun, 2002-11-24 at 16:12, James Pifer wrote: > Steve, > > Thanks for the info. > > 1) Yes, a similar line is at the top of the sendmail.cf file. > sendmail.mc also already contains the feature line for mailertable. > > 2) I added the brackets around the ip address. (I believe I previously > tried with and without). Also made sure it was a "space" not a "tab" > between the domain and the esmtp... > > 3) I checked and the Makefile does contain mailertable.db. I ran "make" > and it put me back at a command prompt without showing anything else on > the screen. Assume it ran correctly.?.?.? > > 4) mydomain.com is a part of relay-domains only. local-host-names is > empty. > > Restarted the processes and it's still routing the mail through the old > SMTP gateway instead of directly to the server I have configured. > > Right now this server is built on 7.3 on a desktop machine (the guy who > built it was having trouble getting RH8 downloaded, that's why it's > 7.3). We were trying to put this machine in as a pilot this weekend and > see how it ran. My tests were done on RH 8.0 and the Sendmail version it > comes with, and I want the final server also built with 8.0. Maybe the > next step is to rebuild this one as 8.0. That way I'm at least not > comparing apples to oranges. > > I appreciate your input. If you have any other ideas I'm all ears. > > Thanks, > James > > On Sun, 2002-11-24 at 11:05, Cowles, Steve wrote: > > > -----Original Message----- > > > From: James Pifer > > > Sent: Sunday, November 24, 2002 5:52 AM > > > Subject: mailertable being ignored > > > > > > > [stuff deleted...] > > > > > > > > The mailertable entry is: .mydomain.com esmtp:192.168.1.10 > > > > > > > I use sendmail to front-end our exchange server by using the mailertable > > feature. A couple of things to check: > > > > 1) Does your sendmail.cf support the mailertable feature? Look at the top > > portion of your sendmail.cf file for something similar to: > > > > ##### $Id: mailertable.m4,v 8.23 2001/03/16 00:51:26 gshapiro Exp $ ##### > > > > If is does not support the mailertable feature, then you will have to edit > > your sendmail.mc file and add the mailertable feature and then recreate > > sendmail.cf using m4. i.e. > > > > FEATURE(`mailertable',`hash /etc/mail/mailertable.db')dnl > > > > 2) The proper syntax for specifying an ip address in the mailertable is > > (Note the brackets): > > > > .mydomain.com esmtp:[192.168.1.10] > > > > 3) Recompile the mailertable database. I do this by typing "make" in the > > /etc/mail directory. Note: 1) Redhat typically recompiles these databases in > > the sendmail init script. 2) You might have to edit the /etc/mail/Makefile > > to include the mailertable. > > > > 4) To solve the mail loops by to self problem... make sure the domain name > > your trying to relay internally is not listed in the > > /etc/mail/local-host-names file. It needs to be listed in > > /etc/mail/relay-domains -or- /etc/mail/access. I use relay-domains. > > > > That's all I can think of. Good luck! > > > > BTW: The latest release of sendmail is 8.12.6. Consider upgrading > > > > Steve Cowles > > > > > > > > -- > > redhat-list mailing list > > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe > > https://listman.redhat.com/mailman/listinfo/redhat-list > > > > > -- > redhat-list mailing list > unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe > https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list