> I am new to Red Hat, and I like this very much!!

Great!

> I have a question on mail setting, especially sendmail.cf.
> I would like to setup my server which can handle the mail not including
> machine name.

Try and avoid having to edit sendmail.cf if you can.  It is easier to use
m4 to generate the proper config file for you.  In
/usr/lib/sendmail-cf/README explains how to do masquerading.  You should
also be able to use something like this:

divert(-1)
include(`../m4/cf.m4')
define(`confDEF_USER_ID',``8:12'')
OSTYPE(`linux')
undefine(`UUCP_RELAY')
undefine(`BITNET_RELAY')
FEATURE(redirect)
FEATURE(always_add_domain)
FEATURE(use_cw_file)
FEATURE(masquerade_envelope)
MASQUERADE_AS(myisp.com)
MASQUERADE_DOMAIN(localdom.org)
FEATURE(allmasquerade)
FEATURE(masquerade_entire_domain)
FEATURE(local_procmail)
MAILER(procmail)
MAILER(smtp)

Edit `localdom.org' to be your local network domain, and `myisp.com' to be
the name you want remote receipients to see.. Put these commands in
/usr/lib/sendmail-cf/cf/mydomain.m4 and generate your /etc/sendmail.cf
with this: 

# cd /usr/lib/sendmail.cf/cf
# m4 ../m4/cf.m4 mydomain.m4 > /etc/sendmail.cf

Then restart sendmail and you should be all set..

Dave



-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to