# $Id$ divert(-1) # sendmail.mc mail configuration for dumb clients: # Just forward all mail blindly to the central mail server and don't try # to resolve aliases or locally deliver mail to local accounts. # Make sure, that it relays local mail, only! To accomplish this, use # enable local delivery mode (i.e. sendmail's -bl option): # svccfg -s smtp:sendmail 'setprop config/local_only = true' # Have a look at sendmail(4) man page to find out, how one may let # SMF create the corresponding cf files on startup automagically. divert(0) OSTYPE(linux)dnl divert(-1) # Like the nullclient feature, but without any masquerade. # Define the name or IP of the central mail server where to forward all mail: divert(0) define(`_NULL_CLIENT_', `mail') define(`STATUS_FILE',`/var/log/sendmail.st') undefine(`ALIAS_FILE') define(`MAIL_HUB', _NULL_CLIENT_) define(`SMART_HOST', _NULL_CLIENT_) define(`confFORWARD_PATH', `') define(`confDONT_EXPAND_CNAMES', `True') define(`_DEF_LOCAL_MAILER_FLAGS', `lsDFM5q') dnl to enable IPv6 as well, remove or prefix the next 2 lines with a 'dnl ' undefine(`_NETINET6_') define(`NO_NETINET6',`1') FEATURE(`nouucp',`reject') FEATURE(`stickyhost') FEATURE(`nocanonify') FEATURE(`accept_unresolvable_domains') MAILER(`local') MAILER(`smtp')