How do I configure sendmail not to use DNS?

Boloq woq'

How do I configure sendmail not to use DNS?

Why we dont want DNS?
In situations where you're behind a firewall, or across a dial-up line, there are times when you need to make sure that programs (such as sendmail) do not use the DNS at all. Or I want to do an email relay but i dont want to put my machine as a dns servers locally.

And note that you'll need to forward all your outbound mail to another machine as a "relay" (one that does use DNS, and understands how to properly use MX records, etc...), otherwise you won't be able to get mail to any site(s) other than the one(s) you configure in your /etc/hosts file (or whatever). The use of a smart host is one way to do this; the following in your .mc will do:
define(`SMART_HOST', `name.of.smart.host')dnl
Also, starting with 8.9, it may help to include the following in your .mc file:
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`accept_unqualified_senders')dnl
And starting with 8.12, changes to submit.cf are required as well; the following in your submit.mc can minimize the problem:
define(`confDIRECT_SUBMISSION_MODIFIERS', `C')dnl

HOWEVER, i dont know THIS one also apply to which version of sendmail im not very sure but it works

Put this entry in /etc/mail/mailertable file
hostname {esmtp}:domain

DONE!!!!!!!!!!!!!!!!!!!!

p/s: Boloq Woq' dalam bahasa loghat percakapan terengganu bermaksud berkecamuk/serabut/tidak terurus

:D bukan maksud aku pun begitu ya..................



0 comments: