divert(-1) dnl dnl This is only an old example. Proceed with caution sendmail hackers... dnl dnl This is the sendmail macro config file. If you make changes to this file, dnl you need the sendmail-cf rpm installed and then have to generate a dnl new /etc/sendmail.cf by running the following command: dnl dnl m4 /etc/mail/openisp.mc > /etc/openisp.cf dnl include(`/usr/share/sendmail-cf/m4/cf.m4') VERSIONID(`openisp.net small-isp($Id: openisp.mc,v 1.2 2003/12/17 22:25:00 ggw Exp $) linux/RH7.3')dnl dnl let's define our OS type. This one is mandatory. OSTYPE(`linux')dnl define(`confDEF_USER_ID',``8:12'') dnl the following line moves the default alias file location to /etc/mail Doing it this way dnl allows the newaliases command to function properly with the aliases file dnl once it's moved from the Red Hat default location in /etc. define(`ALIAS_FILE',`/etc/mail/aliases')dnl dnl if the net were a kinder gentler place we wouldn't need the next line. define(`confPRIVACY_FLAGS', `authwarnings,needmailhelo,noexpn,novrfy')dnl dnl if it's not immediately deliverable let us know in 4 hours and return it if it's dnl not been delivered after 4 days. define(`confTO_QUEUERETURN', `4d')dnl define(`confTO_QUEUEWARN', `4h')dnl dnl Let's tell the system where procmail lives define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl dnl we don't need either one of the next two entries so lets remove the default. undefine(`UUCP_RELAY')dnl undefine(`BITNET_RELAY') dnl dnl when people move on it will really help to give them an informative bounce FEATURE(`redirect')dnl dnl we are 'isp.net' after all. Let's make it so. FEATURE(`always_add_domain')dnl dnl let's set up class w as a text file. It's easier to manage that way. Since this host is dnl designed to relay be careful about what you put in this file FEATURE(`use_cw_file')dnl dnl we defined the path to procmail now let's implement it FEATURE(`local_procmail')dnl dnl we won't be doing any uucp dnl This has new options....figure out dnl FEATURE(`nouucp')dnl dnl with the mailertable we can redirect mail anywhere we want. Very handy. Particularly for an ISP. FEATURE(`mailertable', `hash -o /etc/mail/mailertable')dnl dnl with the virtusertable we can have multiple mail accounts with the same name FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable')dnl dnl the access file gives us fine grained control of our relay capability FEATURE(`access_db', `hash -o /etc/mail/access')dnl dnl Uncomment below if you want dnsbl (slow recommend spamassassin with procmail w/razor and dcc) dnl FEATURE(`blacklist_recipients')dnl dnl note that we patched our version of sendmail to be able to use more than one rbl entry dnl see section 2.3.2 of this document for more information and a HOWTO. These next 3 dnl entries are completely optional but recommended if you'd like to limit the amount dnl of spam you receive inbound to your domain dnl MAPS wants money! How dare they :) dnl Uncomment below dnl FEATURE(dnsbl,`relays.osirusoft.com',` Mail from $&{client_addr} rejected; see http://www.osirusoft.com/')dnl dnl Uncomment below dnl FEATURE(dnsbl,`orbs.dorkslayers.com',`Mail from $&{client_addr} rejected; see http://www.dorkslayers.com/')dnl dnl the default MDA with Red Hat Linux is procmail so let's use it. We need this line. MAILER(smtp)dnl MAILER(procmail)dnl