#divert(-1) # This configuration will set up sendmail in solaris 7+, to be a # mail GATEWAY for your domain. It will rewrite your hostnames to # yourdomain.com # # You probably want a 'nulclient' mc file for your non-gateway machines. # # Put this in /usr/lib/mail/cf/something.mc # EDIT IT and change all lines with "yourdomain.com" as appropriate # # Follow the directions in /usr/lib/mail/README to generate a .cf file, # (usually, "m4 ../m4/cf.m4 foo.mc > foo.cf" ) # then install in /etc/mail/sendmail.cf, and restart sendmail # You may also want to do # echo yourdomain.com >/etc/mail/sendmail.cw # # Feedback should go to phil@bolthole.com # divert(0)dnl VERSIONID(`quickie domain config from bolthole.com, v1.2') OSTYPE(solaris2.ml)dnl divert(-1)dnl # To be a little looser, you may substitute # solaris-generic instead of solaris-antispam # Either way, it seems to deny open relaying of email from bad # people outside. # # -=NOTE=- if you have solaris 2.6, you HAVE to use # the solaris-generic domain instead, because sun didnt do a full backport # of the latest sendmail configs # # if you are using sendmail v8.8.X, you should read # http://www.sendmail.org/antispam.html # divert(0)dnl DOMAIN(solaris-antispam)dnl # If you want to use this file to NOT be the gateway, but instead # deliver local stuff to an internal server, try these lines # #define(`MAIL_HUB',`smtp8:yourgateway.yourdomain.com')dnl #FEATURE(`stickyhost') MASQUERADE_AS(yourdomain.com)dnl FEATURE(masquerade_envelope) FEATURE(nocanonify) divert(-1)dnl # If you are setting up an outbound gateway for multiple private machines # to relay through, you probably want to add the featur relay_entire_domain. # Copy one of the above FEAT lines, and replace the arg with # relay_entire_domain, which actually means # "allow relaying by all machines in MY domain" divert(0)dnl MAILER(local)dnl MAILER(smtp)dnl LOCAL_RULE_3 # Just a bit of paranoid cleanup. It will replace "localhost" with your domain R$*<@localhost>$* $: $1<@$j>$2 LOCAL_CONFIG #Yes override specifically, just to be paranoid, because subdomaining #has historically been broken on sun-sendmail Djyourdomain.com # If you are having difficulties getting your machine to accept email # for the official domain, you may need this also # Cw yourdomain.com