divert(-1) # # Copyright (c) 1983 Eric P. Allman # Copyright (c) 1988, 1993 # The Regents of the University of California. All rights reserved. # # Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. # Portions Copyright 2014, Jens Elkner. # # This is a configuration file for SunOS 5.8 (a.k.a. Solaris 8) and later # subsidiary machines. It has support for local and SMTP mail. The # confFALLBACK_SMARTHOST macro is enabled, which means that messages will # be sent to that host (which is set to mailhost.$m [$m is the local domain]) # if MX records are unavailable. A short-cut rule is also defined, which # says if the recipient host is in the local domain, send to it directly # instead of the smart host. # # # If you want to customize this further, copy it to a name appropriate # for your environment and do the modifications there. # # As an alternative or example, have a look at the following mc files in # /usr/lib/mail/cf: server.mc client.mc linux-client.mc # # Furthermore 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)dnl VERSIONID(`sendmail.mc (Sun)') OSTYPE(`linux')dnl dnl to enable IPv6, remove or prefix the next 2 lines with a 'dnl ' undefine(`_NETINET6_') define(`NO_NETINET6',`1') DOMAIN(`solaris-generic')dnl define(`confFALLBACK_SMARTHOST', `mail$?m.$m$.')dnl MAILER(`local')dnl MAILER(`smtp')dnl LOCAL_NET_CONFIG R$* < @ $* .$m. > $* $#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3