On Thu, 2003-06-05 at 11:57, Steve Cowles wrote: > On Thu, 2003-06-05 at 13:29, Patrick Nelson wrote: > > On Thu, 2003-06-05 at 03:29, Cowles, Steve wrote: > > > > -----Original Message----- > > > > From: Patrick Nelson > > > > Sent: Wednesday, June 04, 2003 8:32 PM > > > > Subject: sendmail relay a domain > > > > > > > > > > [snip...] > > > > > > > It seems that this is what the mailertable is for, but I can't seem to > > > > get it working... Anyone understand this better? O'Reily Sendmail is > > > > somewhat crytic on an answer. > > > > > > Based on your post, using the mailertable should be the proper solution. > > > > > > 1) How are you entering your mailertable entries? Please show examples. > > > For reference: > > > > > > thisdomian.com esmtp:mail.thisdomain.com > > > -or- by IP address > > > thisdomain.com esmtp:[192.168.1.5] > > > > local to the sendmail server is thisdomain.com and I want to send > > thisdomain.org to another sever. > > > > my entries are like: > > > > thisdomain.org esmtp:[mailserver2.neatech.com] > > > > I've also tried: > > > > thisdomain.org esmtp:[<server.ip>] > > Either one should have worked. If mailserver2 can be looked up through > DNS, then the brackets are not really needed. Typically, the brackets > are used when specifying IP addresses. > > > > > > 2) Did you create a new mailertable database after your added entries? i.e. > > > mailertable.db > > > > Yes I did a make mailertable.db in the /etc/mail subdir with no errors > > and the date and/or time changes. > > Good! > > > > > > 3) Does your sendmail.cf file support the use of the mailertable feature? > > > The first part of your sendmail.cf file should list all features. > > > > Yes I have an entry in the mc file like: > > > > FEATRUE(`mailertableq',`hash -o /etc/mail/mailertable.db')dnl > > I hope the above is just a type-o... I have: > FEATRUE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
Yep my keyboard threw an extra q in there. > > > > > 4) What do your logfiles show? > > > > Testing a manual inbound mail with telnet I get an error like: > > > > 550 5.7.1 [EMAIL PROTECTED] Relaying denied. IP name lookup > > failed [<External Interface IP of mailserver1q>] > > > > mailserver1 is the server I'm doing the mailertable entries on. That is > > what keeps happening. The log shows about the same info like: > > > > Jun 5 11:02:24 mailserver1 sendmail[12343]: h55I21412343: > > ruleset=check_rcpt, [EMAIL PROTECTED], relay=[<External > > Interface IP of mailserver1q>], reject=550 5.7.1 > > [EMAIL PROTECTED] Relaying denied. IP name lookup failed > > [<External Interface IP of mailserver1q>] > > > > The mailertable feature specifies which mailer to select. The file... > /etc/mail/relay-domains specifies which domains can be relayed. > Didn't think of the relay-domains because I already had the private domain in there... However while this was fine for local delivery I needed the external domain in there for relay to another system. Guessing it sees itself as a domain (none local) and was failing because I hadn't told him he could relay. Added it to relay-domains and it relays to the proper server. Thanks Steve! ----------------- Been noticing some strange return messages sent to the postmaster from my server to strange adresses... Any chance I've opened up a relay whole here? I'm trying to understand what how that could possibly be. Any ideas? -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list