Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 05-09-2011, 09:32 AM   #1
LQ Newbie
Registered: Dec 2005
Posts: 6

Rep: Reputation: 0
sendmail not using mailertable, or I've done something incorrect.

I'm having trouble getting my mailertable to work....

/etc/mail/ contains this line
FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl

/etc/mail/mailertable contains this line esmtp:[]

I ran these to "recompile" the settings...

makemap hash /etc/mail/mailertable.db < /etc/mail/mailertable
m4 /etc/mail/ > /etc/mail/
service sendmail restart

Then tried to send a test

$ mail -s "test email"

$ tail -f /var/log/maillog
May 9 10:03:14 npsetl005 sendmail[27779]: p49E3EG0027777: to=<>, ctladdr=<root@npsetl005.domain.domain1.pri> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120350, [], dsn=4.0.0, stat=Deferred: Connection refused by

We have this stupid problem on our internal network where DNS and MX records aren't really set up 100 percent correctly. Getting permission to change it, and test it are way beyond the scope of this question; So I just want sendmail to ignore what's in DNS and fire messages straight to our internal relay server (which works for dozens of other clients) - but it's not doing that. You can see that it's rewriting the addresses to because the parent * is a cname to (someone did this as a poor mans redirect. So if a user tries to go to a subdomain that doesn't exist, they go to the root website instead... I know. I know.)

What did I miss?
Old 05-09-2011, 09:45 AM   #2
LQ Newbie
Registered: Dec 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Also, this is the output from my mailertable.db file

root@npsetl005:/etc/mail$ strings mailertable.db



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail / mailertable question, FC 5 danrfxz Linux - Networking 0 11-02-2006 07:35 PM
sendmail mailertable nayabingi Linux - Networking 1 06-30-2006 09:09 AM
Sendmail and Mailertable lapthorn Linux - Software 0 02-24-2006 04:40 AM
sendmail mailertable RedHat123 Linux - Networking 5 04-09-2005 02:43 PM
Sendmail / Mailertable not working! topkart94 Linux - Networking 6 03-05-2004 11:27 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:52 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration