Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I installed Redhat Linux 9 with Sendmail. I want to use sendmail as a gateway. All mails that reach sendmail are send directly to the internet (by solving the mx records and being sent directly to the resposible mailserver) and for one particular domain (test.com) should be directed to an internal Ip on the network e.g. 172.16.130.3.
Outgoing emails work fine.
I made an entry in the mailer table (Domain Routing) which are like this:
though still, all emails sent to the domain test.com, sendmail is still trying to solve the mx records for them instead of forwarding them directly to the smarthost. Any ideas please?
sorry but i am a newbie to sendmail. I was making the configuration through webmin. If I edit the .mc file then how can i effect the changes of sendmail in .cf file pleaese? I just run this command "make -C /etc/mail"
could you please guide me?
Add your entries to /etc/mail/mailertable.
Generate the database by
$ makemap hash /etc/mail/mailertable </etc/mail/mailertable
This will create mailertable.db file.
That line you mentioned was in the mc file, therefore there was no need to recompile right?
Also, I edited maileirtable and run the command you gave me, but still without success. I tried deleting mailertable.db and recreating it again by running that command, but the mails are still trying to use DNS Server for delivery. Any ideas?
Btw what is the difference between SMTP and relay when setting up the mailer table?
It worked fine. I tried everything from scratch and it worked. I checked this document http://www.sendmail.org/m4/mailertables.html (as you told me exactly) and it worked. Thanks very much for your help
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.