Import Sendmail-8.7.2 as discussed on -current.
The conflict merge will happen shortly after.
This commit is contained in:
commit
58162a7314
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor/sendmail/dist-old/; revision=12571 svn path=/vendor/sendmail/8.7.2/; revision=12573; tag=vendor/sendmail/8.7.2
731
usr.sbin/sendmail/FAQ
Normal file
731
usr.sbin/sendmail/FAQ
Normal file
@ -0,0 +1,731 @@
|
||||
Newsgroups: comp.mail.sendmail,comp.mail.misc,comp.mail.smail,comp.answers,news.answers
|
||||
Subject: comp.mail.sendmail Frequently Asked Questions (FAQ)
|
||||
From: brad@birch.ims.disa.mil (Brad Knowles)
|
||||
Followup-to: comp.mail.sendmail
|
||||
Summary: This posting contains a list of Frequently Asked Questions
|
||||
(and their answers) about the program "sendmail", distributed
|
||||
with many versions of Unix (and available for some other
|
||||
operating systems). This FAQ is shared between
|
||||
comp.mail.sendmail and the Sendmail V8 distribution. It should
|
||||
be read by anyone who wishes to post to comp.mail.sendmail, or
|
||||
anyone having questions about the newsgroup itself.
|
||||
|
||||
Archive-name: mail/sendmail-faq
|
||||
Posting-Frequency: monthly (first Monday)
|
||||
|
||||
|
||||
[The most recent copy of this document can be obtained via anonymous
|
||||
FTP from rtfm.mit.edu in /pub/usenet/news.answers/mail/sendmail-faq.
|
||||
If you do not have access to anonymous FTP, you can retrieve it by
|
||||
sending email to mail-server@rtfm.mit.edu with the command "send
|
||||
usenet/news.answers/mail/sendmail-faq" in the message.]
|
||||
|
||||
|
||||
|
||||
Sendmail Version 8
|
||||
Frequently Asked Questions
|
||||
Last updated 9/17/95
|
||||
|
||||
|
||||
This FAQ is specific to Version 8.6.10 of sendmail. Other questions,
|
||||
particularly regarding compilation and configuration, are answered in
|
||||
src/READ_ME and cf/README (found in the V8 sendmail distribution).
|
||||
|
||||
This is also the official FAQ for the Usenet newsgroup
|
||||
comp.mail.sendmail.
|
||||
|
||||
======================================================================
|
||||
BEFORE YOU GO ANY FURTHER
|
||||
======================================================================
|
||||
|
||||
* What do you wish everyone would do before sending you mail or
|
||||
posting to comp.mail.sendmail?
|
||||
|
||||
Read this FAQ completely. Read src/READ_ME and cf/README
|
||||
completely. Read the books written to help with common
|
||||
problems such as compilation and installation, configuration,
|
||||
security issues, etc.... Ask themselves if their question
|
||||
hasn't already been answered.
|
||||
----------------------------------------------------------------------
|
||||
* How can I be sure if this is the right place to look for answers
|
||||
to my questions?
|
||||
|
||||
1. Do you know, for a fact, that the question is related to
|
||||
sendmail V8?
|
||||
|
||||
2. Do you know, for a fact, that the question is related to an
|
||||
older version of sendmail?
|
||||
|
||||
3. Is the question about a sendmail-like program (e.g., Smail,
|
||||
Zmailer, MMDF, etc...)?
|
||||
|
||||
4. Is the question about an SMTP Gateway product for a LAN
|
||||
mail package (e.g., cc:Mail, MS-Mail, WordPerfect
|
||||
Office/GroupWise, etc...)?
|
||||
|
||||
If you answered "yes" to the question #1, then this is the
|
||||
right place.
|
||||
|
||||
If you answered "yes" to questions #2 or #3, then you should
|
||||
seriously consider upgrading to the most recent version of
|
||||
sendmail V8.
|
||||
|
||||
For question #2, If you're going to continue using an older
|
||||
version of sendmail, you may not find much help and will
|
||||
probably get some responses that amount to "Get V8".
|
||||
Otherwise, this is probably the best place to look for
|
||||
answers.
|
||||
|
||||
If you answered "yes" to question #3 and are not going to
|
||||
upgrade to sendmail V8, then this is probably not the right
|
||||
place to look.
|
||||
|
||||
If you answered "yes" to question #4, then this is almost
|
||||
certainly not the right place to look.
|
||||
|
||||
For questions #3 and #4, try looking around elsewhere in the
|
||||
"comp.mail.*" hierarchy for a more appropriate newsgroup.
|
||||
For example, you might want to try posting to comp.mail.misc
|
||||
or comp.mail.smail.
|
||||
|
||||
If you couldn't answer "yes" to any of the above questions,
|
||||
then you're DEFINITELY in the wrong place. For the sake of
|
||||
your sanity and ego, not to mention avoiding the waste of
|
||||
your time and ours, try asking your System or E-Mail
|
||||
Administrator(s) before you post any questions publicly.
|
||||
----------------------------------------------------------------------
|
||||
* Where can I find the latest version of this FAQ?
|
||||
|
||||
It is included in the most recent Version 8 distribution of
|
||||
sendmail (described below), as well as via anonymous FTP from
|
||||
rtfm.mit.edu in /pub/usenet/news.answers/mail/sendmail-faq.
|
||||
If you do not have access to anonymous FTP, you can retrieve
|
||||
it by sending email to mail-server@rtfm.mit.edu with the
|
||||
command "send usenet/news.answers/mail/sendmail-faq" in the
|
||||
message.
|
||||
----------------------------------------------------------------------
|
||||
* I don't have access to Usenet news. Can I still get access to
|
||||
comp.mail.sendmail?
|
||||
|
||||
Yes. Send email to mxt@dl.ac.uk with the command "sub
|
||||
comp-news.comp.mail.sendmail <full-US-ordered-email-address>"
|
||||
in the message.
|
||||
|
||||
E-mail you want posted on comp.mail.sendmail should be sent
|
||||
to comp-mail-sendmail@dl.ac.uk
|
||||
----------------------------------------------------------------------
|
||||
* I have sendmail-related DNS questions. Where should I ask them?
|
||||
|
||||
Depending on how deeply they get into the DNS, they can be
|
||||
asked here. However, you'll probably be told that you should
|
||||
send them to the Info-BIND mailing list (if the question is
|
||||
specific to that program) or to the Usenet newsgroup
|
||||
comp.protocols.tcp-ip.domains (DNS in general).
|
||||
----------------------------------------------------------------------
|
||||
* How do I subscribe to either of these?
|
||||
|
||||
For comp.protocols.tcp-ip.domains, you have to be on Usenet.
|
||||
They don't have a news-to-mail gateway yet.
|
||||
|
||||
For the Info-BIND mailing list, send email to
|
||||
bind-request@uunet.uu.net with the command "subscribe" in the
|
||||
message. Submissions should be sent to bind@uunet.uu.net
|
||||
|
||||
======================================================================
|
||||
GENERAL QUESTIONS
|
||||
======================================================================
|
||||
|
||||
* Where can I get Version 8?
|
||||
|
||||
Via anonymous FTP from FTP.CS.Berkeley.EDU in /ucb/sendmail.
|
||||
----------------------------------------------------------------------
|
||||
* What are the differences between Version 8 and other versions?
|
||||
|
||||
See doc/changes/changes.me in the sendmail distribution.
|
||||
----------------------------------------------------------------------
|
||||
* What happened to sendmail 6.x and 7.x?
|
||||
|
||||
When a new (Alpha/Beta) version of sendmail was released, it
|
||||
was changed to Release 6. Development continued in that tree
|
||||
until 4.4BSD was released, when everything on the 4.4 tape
|
||||
was set to be version 8.1. Version 7.x never existed.
|
||||
----------------------------------------------------------------------
|
||||
* What books are available describing sendmail?
|
||||
|
||||
There is one book available devoted to sendmail:
|
||||
|
||||
Costales, Allman, and Rickert, _Sendmail_. O'Reilly &
|
||||
Associates.
|
||||
|
||||
Several books have sendmail chapters, for example:
|
||||
|
||||
Nemeth, Snyder, and Seebass, _Unix System Administration
|
||||
Handbook_. Prentice-Hall.
|
||||
Carl-Mitchell and Quarterman, _Practical Internetworking with
|
||||
TCP/IP and UNIX_. Addison-Wesley.
|
||||
Hunt, _TCP/IP Network Administration_. O'Reilly & Associates.
|
||||
|
||||
Another book about sendmail is due out "soon":
|
||||
|
||||
Avolio & Vixie, _Sendmail Theory and Practice_. Digital
|
||||
Press (release date unknown).
|
||||
|
||||
For details on sendmail-related DNS issues, consult:
|
||||
|
||||
Liu and Albitz, _DNS and BIND_. O'Reilly & Associates.
|
||||
|
||||
For details on UUCP, see:
|
||||
|
||||
O'Reilly and Todino, _Managing UUCP and Usenet_.
|
||||
O'Reilly & Associates.
|
||||
|
||||
======================================================================
|
||||
COMPILING AND INSTALLING SENDMAIL 8
|
||||
======================================================================
|
||||
|
||||
* Version 8 requires a new version of "make". Where can I get this?
|
||||
|
||||
Actually, Version 8 does not require a new version of "make".
|
||||
It includes a collection of Makefiles for different architectures,
|
||||
only one or two of which require the new "make". For a supported
|
||||
architecture, use ``sh makesendmail''. If you are porting to a
|
||||
new architecture, start with Makefile.dist.
|
||||
|
||||
If you really do want the new make, it is available on any of
|
||||
the BSD Net2 or 4.4-Lite distribution sites. These include:
|
||||
|
||||
ftp.uu.net /systems/unix/bsd-sources
|
||||
gatekeeper.dec.com /.0/BSD/net2
|
||||
ucquais.cba.uc.edu /pub/net2
|
||||
ftp.luth.se /pub/unix/4.3bsd/net2
|
||||
|
||||
Diffs and instructions for building this version of make
|
||||
under SunOS 4.1.x are available on ftp.css.itd.umich.edu in
|
||||
/pub/systems/sun/Net2-make.sun4.diff.Z. A patchkit for
|
||||
Ultrix is on ftp.vix.com in /pub/patches/pmake-for-ultrix.Z.
|
||||
Patches for AIX 3.2.4 are available on ftp.uni-stuttgart.de
|
||||
in /sw/src/patches/bsd-make-rus-patches.
|
||||
|
||||
There is also a Linux version available on the main Linux
|
||||
distribution sites as pmake; this version is included as
|
||||
standard with the current Slackware distributions.
|
||||
----------------------------------------------------------------------
|
||||
* What macro package do I use to format the V8 man pages?
|
||||
|
||||
The BSD group switched over the the ``mandoc'' macros for the
|
||||
4.4 release. These include more hooks designed for hypertext
|
||||
handling. However, new man pages won't format under the old
|
||||
man macros. Fortunately, old man pages will format under the
|
||||
new mandoc macros.
|
||||
|
||||
Get the new macros with the BSD Net2 or 4.4-Lite release (see
|
||||
above for locations; for example, on FTP.UU.NET the files
|
||||
/system/unix/bsd-sources/share/tmac/me/strip/sed and
|
||||
/system/unix/bsd-sources/share/tmac/* are what you need).
|
||||
|
||||
This macro set is also included with newer versions of groff.
|
||||
----------------------------------------------------------------------
|
||||
* What modes should be used when installing sendmail?
|
||||
|
||||
The sendmail binary should be owned by root, mode 4755.
|
||||
The queue directory should be owned by root, with a mode
|
||||
between 700 and 755. Under no circumstances should
|
||||
it be group or other writable!
|
||||
The sendmail config file should be owned by root, mode 644.
|
||||
The aliases file should generally be owned by one trusted
|
||||
user and writable only by that user, although it is
|
||||
not unreasonable to have it group writable by a
|
||||
"sysadmin" group. It should not be world writable.
|
||||
The aliases database files (aliases.db or aliases.{pag,dir}
|
||||
depending on what database format you compile with)
|
||||
should be owned by root, mode 644.
|
||||
|
||||
======================================================================
|
||||
CONFIGURATION QUESTIONS
|
||||
======================================================================
|
||||
|
||||
* How do I make all my addresses appear to be from a single host?
|
||||
|
||||
Using the V8 configuration macros, use:
|
||||
|
||||
MASQUERADE_AS(my.dom.ain)
|
||||
|
||||
This will cause all addresses to be sent out as being from
|
||||
the indicated domain.
|
||||
----------------------------------------------------------------------
|
||||
* How do I rewrite my From: lines to read ``First_Last@My.Domain''?
|
||||
|
||||
There are a couple of ways of doing this. This describes
|
||||
using the "user database" code. This is still experimental,
|
||||
and was intended for a different purpose -- however, it does
|
||||
work with a bit of care. It does require that you have the
|
||||
Berkeley "db" package installed (it won't work with DBM).
|
||||
|
||||
First, create your input file. This should have lines like:
|
||||
|
||||
loginname:mailname First_Last
|
||||
First_Last:maildrop loginname
|
||||
|
||||
Install it in (say) /etc/userdb. Create the database:
|
||||
|
||||
makemap btree /etc/userdb.db < /etc/userdb
|
||||
|
||||
You can then create a config file that uses this. You will
|
||||
have to include the following in your .mc file:
|
||||
|
||||
define(confUSERDB_SPEC, /etc/userdb.db)
|
||||
FEATURE(notsticky)
|
||||
----------------------------------------------------------------------
|
||||
* So what was the user database feature intended for?
|
||||
|
||||
The intent was to have all information for a given user
|
||||
(where the user is the unique login name, not an inherently
|
||||
non-unique full name) in one place. This would include phone
|
||||
numbers, addresses, and so forth. The "maildrop" feature is
|
||||
because Berkeley does not use a centralized mail server
|
||||
(there are a number of reasons for this that are mostly
|
||||
historic), and so we need to know where each user gets his or
|
||||
her mail delivered -- i.e., the mail drop.
|
||||
|
||||
We are in the process of setting up our environment so that
|
||||
mail sent to an unqualified "name" goes to that person's
|
||||
preferred maildrop; mail sent to "name@host" goes to that
|
||||
host. The purpose of "FEATURE(notsticky)" is to cause
|
||||
"name@host" to be looked up in the user database for delivery
|
||||
to the maildrop.
|
||||
----------------------------------------------------------------------
|
||||
* Why are you so hostile to using full names for e-mail addresses?
|
||||
|
||||
Because full names are not unique. For example, the computer
|
||||
community has two Andy Tannenbaums and two Peter Deutsches.
|
||||
At one time, Bell Labs had two Stephen R. Bournes with
|
||||
offices a few doors apart. You can create alternative
|
||||
addresses (e.g., Stephen_R_Bourne_2), but that's even worse
|
||||
-- which one of them has to have their name desecrated in
|
||||
this way? And you can bet that one of them will get most of
|
||||
the other person's e-mail.
|
||||
|
||||
So called "full names" are just an attempt to create longer
|
||||
versions of unique names. Rather that lulling people into a
|
||||
sense of security, I'd rather that it be clear that these
|
||||
handles are arbitrary. People should use good user agents
|
||||
that have alias mappings so that they can attach arbitrary
|
||||
names for their personal use to those with whom they
|
||||
correspond (such as the MH alias file).
|
||||
|
||||
Even worse is fuzzy matching in e-mail -- this can make good
|
||||
addresses turn bad. For example, Eric Allman is currently
|
||||
(to the best of our knowledge) the only ``Allman'' at
|
||||
Berkeley, so mail sent to "Allman@Berkeley.EDU" should get to
|
||||
him. But if another Allman ever appears, this address could
|
||||
suddenly become ambiguous. He's been the only Allman at
|
||||
Berkeley for over fifteen years -- to suddenly have this
|
||||
"good address" bounce mail because it is ambiguous would be a
|
||||
heinous wrong.
|
||||
|
||||
Finger services should be as fuzzy as possible (within
|
||||
reason, of course). Mail services should be unique.
|
||||
----------------------------------------------------------------------
|
||||
* Should I use a wildcard MX for my domain?
|
||||
|
||||
If at all possible, no.
|
||||
|
||||
Wildcard MX records have lots of semantic "gotcha"s. For
|
||||
example, they will match a host "unknown.your.domain" -- if
|
||||
you don't explicitly test for unknown hosts in your domain,
|
||||
you will get "config error: mail loops back to myself"
|
||||
errors.
|
||||
|
||||
See RFCs 1535-1537 for more detail and other related (or
|
||||
common) problems.
|
||||
----------------------------------------------------------------------
|
||||
* How can I get sendmail to process messages sent to an account and
|
||||
send the results back to the originator?
|
||||
|
||||
This is a local mailer issue, not a sendmail issue.
|
||||
Depending on what you're doing, look at procmail (mentioned
|
||||
again below), ftpmail, or Majordomo.
|
||||
|
||||
Check your local archie server to see what machine(s) nearest
|
||||
you have the most recent versions of these programs.
|
||||
----------------------------------------------------------------------
|
||||
* How can I get sendmail to deliver local mail to $HOME/.mail
|
||||
instead of into /usr/spool/mail (or /usr/mail)?
|
||||
|
||||
Again, this is a local mailer issue, not a sendmail issue.
|
||||
Either modify your local mailer (source code will be
|
||||
required) or change the program called in the "local" mailer
|
||||
configuration description to be a new program that does this
|
||||
local delivery. One program that is capable of doing this is
|
||||
"procmail", although there are probably many others as well.
|
||||
|
||||
You might be interested in reading the paper ``HLFSD:
|
||||
Delivering Email to your $HOME'' available in the Proceedings
|
||||
of the USENIX System Administration (LISA VII) Conference
|
||||
(November 1993). This is also available via public FTP from
|
||||
ftp.cs.columbia.edu in /pub/hlfsd/{README.hlfsd,hlfsd.ps}.
|
||||
----------------------------------------------------------------------
|
||||
* I'm trying to to get my mail to go into queue only mode, and it
|
||||
delivers the mail interactively anyway. (Or, I'm trying to use
|
||||
the "don't deliver to expensive mailer" flag, and it delivers the
|
||||
mail interactively anyway.) I can see it does it: here's the
|
||||
output of "sendmail -v foo@somehost" (or Mail -v or equivalent).
|
||||
|
||||
The -v flag to sendmail (which is implied by the -v flag to
|
||||
Mail and other programs in that family) tells sendmail to
|
||||
watch the transaction. Since you have explicitly asked to
|
||||
see what's going on, it assumes that you do not want to to
|
||||
auto-queue, and turns that feature off. Remove the -v flag
|
||||
and use a "tail -f" of the log instead to see what's going
|
||||
on.
|
||||
|
||||
If you are trying to use the "don't deliver to expensive
|
||||
mailer" flag (mailer flag "e"), be sure you also turn on
|
||||
global option "c" -- otherwise it ignores the mailer flag.
|
||||
----------------------------------------------------------------------
|
||||
* There are four UUCP mailers listed in the configuration files.
|
||||
Which one should I use?
|
||||
|
||||
The choice is partly a matter of local preferences and what
|
||||
is running at the other end of your UUCP connection. Unlike
|
||||
good protocols that define what will go over the wire, UUCP
|
||||
uses the policy that you should do what is right for the
|
||||
other end; if they change, you have to change. This makes it
|
||||
hard to do the right thing, and discourages people from
|
||||
updating their software. In general, if you can avoid UUCP,
|
||||
please do.
|
||||
|
||||
If you can't avoid it, you'll have to find the version that
|
||||
is closest to what the other end accepts. Following is a
|
||||
summary of the UUCP mailers available.
|
||||
|
||||
uucp-old (obsolete name: "uucp")
|
||||
This is the oldest, the worst (but the closest to UUCP) way
|
||||
of sending messages across UUCP connections. It does
|
||||
bangify everything and prepends $U (your UUCP name) to the
|
||||
sender's address (which can already be a bang path
|
||||
itself). It can only send to one address at a time, so it
|
||||
spends a lot of time copying duplicates of messages. Avoid
|
||||
this if at all possible.
|
||||
|
||||
uucp-new (obsolete name: "suucp")
|
||||
The same as above, except that it assumes that in one rmail
|
||||
command you can specify several recipients. It still has a
|
||||
lot of other problems.
|
||||
|
||||
uucp-dom
|
||||
This UUCP mailer keeps everything as domain addresses.
|
||||
Basically, it uses the SMTP mailer rewriting rules.
|
||||
|
||||
Unfortunately, a lot of UUCP mailer transport agents
|
||||
require bangified addresses in the envelope, although you
|
||||
can use domain-based addresses in the message header. (The
|
||||
envelope shows up as the From_ line on UNIX mail.) So....
|
||||
|
||||
uucp-uudom
|
||||
This is a cross between uucp-new (for the envelope
|
||||
addresses) and uucp-dom (for the header addresses). It
|
||||
bangifies the envelope sender (From_ line in messages)
|
||||
without adding the local hostname, unless there is no host
|
||||
name on the address at all (e.g., "wolf") or the host
|
||||
component is a UUCP host name instead of a domain name
|
||||
("somehost!wolf" instead of "some.dom.ain!wolf").
|
||||
|
||||
Examples:
|
||||
|
||||
We are on host grasp.insa-lyon.fr (UUCP host name "grasp").
|
||||
The following summarizes the sender rewriting for various
|
||||
mailers.
|
||||
|
||||
Mailer sender rewriting in the envelope
|
||||
------ ------ -------------------------
|
||||
uucp-{old,new} wolf grasp!wolf
|
||||
uucp-dom wolf wolf@grasp.insa-lyon.fr
|
||||
uucp-uudom wolf grasp.insa-lyon.fr!wolf
|
||||
|
||||
uucp-{old,new} wolf@fr.net grasp!fr.net!wolf
|
||||
uucp-dom wolf@fr.net wolf@fr.net
|
||||
uucp-uudom wolf@fr.net fr.net!wolf
|
||||
|
||||
uucp-{old,new} somehost!wolf grasp!somehost!wolf
|
||||
uucp-dom somehost!wolf somehost!wolf@grasp.insa-lyon.fr
|
||||
uucp-uudom somehost!wolf grasp.insa-lyon.fr!somehost!wolf
|
||||
|
||||
======================================================================
|
||||
RESOLVING PROBLEMS
|
||||
======================================================================
|
||||
|
||||
* When I compile, I get "undefined symbol inet_aton" messages.
|
||||
|
||||
You've probably replaced your resolver with the version from
|
||||
BIND 4.9.3. You need to compile with -l44bsd in order to get
|
||||
the additional routines.
|
||||
----------------------------------------------------------------------
|
||||
* I'm getting "Local configuration error" messages, such as:
|
||||
|
||||
553 relay.domain.net config error: mail loops back to myself
|
||||
554 <user@domain.net>... Local configuration error
|
||||
|
||||
How can I solve this problem?
|
||||
|
||||
You have asked mail to the domain (e.g., domain.net) to be
|
||||
forwarded to a specific host (in this case, relay.domain.net)
|
||||
by using an MX record, but the relay machine doesn't
|
||||
recognize itself as domain.net. Add domain.net to
|
||||
/etc/sendmail.cw (if you are using FEATURE(use_cw_file)) or
|
||||
add "Cw domain.net" to your configuration file.
|
||||
|
||||
IMPORTANT: Be sure you kill and restart the sendmail daemon
|
||||
after you change the configuration file (for ANY change in
|
||||
the configuration, not just this one):
|
||||
|
||||
kill `head -1 /etc/sendmail.pid`
|
||||
sh -c "`tail -1 /etc/sendmail.pid`"
|
||||
|
||||
NOTA BENE: kill -1 does not work!
|
||||
----------------------------------------------------------------------
|
||||
* When I use sendmail V8 with a Sun config file I get lines like:
|
||||
|
||||
/etc/sendmail.cf: line 273: replacement $3 out of bounds
|
||||
|
||||
the line in question reads:
|
||||
|
||||
R$*<@$%y>$* $1<@$2.LOCAL>$3 user@ether
|
||||
|
||||
what does this mean? How do I fix it?
|
||||
|
||||
V8 doesn't recognize the Sun "$%y" syntax, so as far as it is
|
||||
concerned, there is only a $1 and a $2 (but no $3) in this
|
||||
line. Read Rick McCarty's paper on "Converting Standard Sun
|
||||
Config Files to Sendmail Version 8", in the contrib directory
|
||||
(file "converting.sun.configs") on the sendmail distribution
|
||||
for a full discussion of how to do this.
|
||||
----------------------------------------------------------------------
|
||||
* When I use sendmail V8 on a Sun, I sometimes get lines like:
|
||||
|
||||
/etc/sendmail.cf: line 445: bad ruleset 96 (50 max)
|
||||
|
||||
what does this mean? How do I fix it?
|
||||
|
||||
You're somehow trying to start up the old Sun sendmail (or
|
||||
sendmail.mx) with a sendmail V8 config file, which Sun's
|
||||
sendmail doesn't like. Check your /etc/rc.local, any
|
||||
procedures that have been created to stop and re-start the
|
||||
sendmail processes, etc.... Make sure that you've switched
|
||||
everything over to using the new sendmail. To keep this
|
||||
problem from ever happening again, try the following:
|
||||
|
||||
mv /usr/lib/sendmail /usr/lib/sendmail.old
|
||||
ln -s /usr/local/lib/sendmail.v8 /usr/lib/sendmail
|
||||
mv /usr/lib/sendmail.mx /usr/lib/sendmail.mx.old
|
||||
ln -s /usr/local/lib/sendmail.v8 /usr/lib/sendmail.mx
|
||||
chmod 0000 /usr/lib/sendmail.old
|
||||
chmod 0000 /usr/lib/sendmail.mx.old
|
||||
|
||||
Assuming you have installed sendmail V8 in /usr/local/lib.
|
||||
----------------------------------------------------------------------
|
||||
* When I use sendmail V8 on an IBM RS/6000 running AIX, the system
|
||||
resource controller always reports sendmail as "inoperative" even
|
||||
though it is running. What's wrong?
|
||||
|
||||
IBM's system resource controller is one of their "value
|
||||
added" features to AIX -- it's not a Unix standard. You'll
|
||||
need to either redefine the subsystem to use signals (see
|
||||
chssys(1)) or dump the entire subsystem and invoke sendmail
|
||||
in /etc/rc.tcpip or some other boot script.
|
||||
----------------------------------------------------------------------
|
||||
* When I use sendmail V8 on an Intel x86 machine running Linux, I
|
||||
have some problems. Specifically, I have....
|
||||
|
||||
The current versions of Linux are generally considered to be
|
||||
great for hobbyists and anyone else who wants to learn Unix
|
||||
inside and out, or wants to always have something to do, or
|
||||
wants a machine for light-duty mostly personal use and not
|
||||
high-volume multi-user purposes.
|
||||
|
||||
However, for those who want a system that will just sit in
|
||||
the background and work without a fuss handling thousands of
|
||||
mail messages a day for lots of different users, it's not
|
||||
(yet) stable enough to fit the bill.
|
||||
|
||||
Unfortunately, there are no known shareware/freeware
|
||||
implementations of any operating system that provides the
|
||||
level of stability necessary to handle that kind of load
|
||||
(i.e., there are no free lunches).
|
||||
|
||||
If you're wedded to the Intel x86 platform and want to run
|
||||
sendmail, we suggest you look at commercial implementations
|
||||
of Unix such as Interactive, UnixWare, Solaris, or BSD/386
|
||||
(just a sample of the dozens of different versions of Unix
|
||||
for Intel x86).
|
||||
|
||||
Of all known vendor supported versions of Unix for Intel x86,
|
||||
BSDI's BSD/386 is least expensive and the only one known to
|
||||
currently ship with sendmail V8 pre-installed. Since sendmail
|
||||
V8 is continuing to be developed at UC Berkeley, and BSD/386
|
||||
is a full BSD 4.4 implementation, this is obviously be the most
|
||||
"native" sendmail V8 environment.
|
||||
----------------------------------------------------------------------
|
||||
* When I use sendmail on an Intel x86 machine running OS/2, I have
|
||||
some problems. Specifically, I have....
|
||||
|
||||
The OS/2 port of sendmail is known to have left out huge
|
||||
chunks of the code and functionality of even much older
|
||||
versions of sendmail, in large part because the underlying OS
|
||||
just doesn't have the necessary hooks to make it happen.
|
||||
This port is so broken that we make no attempt to provide any
|
||||
kind of support for it. Try BSDI's BSD/386 instead.
|
||||
----------------------------------------------------------------------
|
||||
* I'm connected to the network via a SLIP/PPP link. Sometimes my
|
||||
sendmail process hangs (although it looks like part of the
|
||||
message has been transfered). Everything else works. What's
|
||||
wrong?
|
||||
|
||||
Most likely, the problem isn't sendmail at all, but the low
|
||||
level network connection. It's important that the MTU
|
||||
(Maximum Transfer Unit) for the SLIP connection be set
|
||||
properly at both ends. If they disagree, large packets will
|
||||
be trashed and the connection will hang.
|
||||
----------------------------------------------------------------------
|
||||
* I just upgraded to 8.x and suddenly I'm getting messages in my
|
||||
syslog of the form "collect: I/O error on connection". What is
|
||||
going wrong?
|
||||
|
||||
Nothing. This is just a diagnosis of a condition that had
|
||||
not been diagnosed before. If you are getting a lot of these
|
||||
from a single host, there is probably some incompatibility
|
||||
between 8.x and that host. If you get a lot of them in
|
||||
general, you may have network problems that are causing
|
||||
connections to get reset.
|
||||
----------------------------------------------------------------------
|
||||
* I just upgraded to 8.x and now when my users try to forward their
|
||||
mail to a program they get an "illegal shell" message and their
|
||||
mail is not delivered. What's wrong?
|
||||
|
||||
In order for people to be able to run a program from their
|
||||
.forward file, 8.x insists that their shell (that is, the
|
||||
shell listed for that user in the passwd entry) be a "valid"
|
||||
shell, meaning a shell listed in /etc/shells. If /etc/shells
|
||||
does not exist, a default list is used, typically consisting
|
||||
of /bin/sh and /bin/csh.
|
||||
|
||||
This is to support environments that may have NFS-shared
|
||||
directories mounted on machines on which users do not have
|
||||
login permission. For example, many people make their
|
||||
file server inaccessible for performance or security
|
||||
reasons; although users have directories, their shell on
|
||||
the server is /usr/local/etc/nologin or some such. If you
|
||||
allowed them to run programs anyway you might as well let
|
||||
them log in.
|
||||
|
||||
If you are willing to let users run programs from their
|
||||
.forward file even though they cannot telnet or rsh in (as
|
||||
might be reasonable if you run smrsh to control the list of
|
||||
programs they can run) then add the line
|
||||
|
||||
/SENDMAIL/ANY/SHELL/
|
||||
|
||||
to /etc/shells. This must be typed exactly as indicated,
|
||||
in caps, with the trailing slash. NOTA BENE: DO NOT
|
||||
list /usr/local/etc/nologin in /etc/shells -- this will
|
||||
open up other security problems.
|
||||
----------------------------------------------------------------------
|
||||
* I just upgraded to 8.x and suddenly connections to the SMTP port
|
||||
take a long time. What is going wrong?
|
||||
|
||||
It's probably something weird in your TCP implementation that
|
||||
makes the IDENT code act oddly. On most systems V8 tries to
|
||||
do a ``callback'' to the connecting host to get a validated
|
||||
user name (see RFC 1413 for detail). If the connecting host
|
||||
does not support such a service it will normally fail quickly
|
||||
with "Connection refused", but certain kinds of packet
|
||||
filters and certain TCP implementations just time out.
|
||||
|
||||
To test this, set the IDENT timeout to zero using
|
||||
``OrIdent=0'' in the configuration file. This will
|
||||
completely disable all use of the IDENT protocol.
|
||||
|
||||
Another possible problem is that you have your name server
|
||||
and/or resolver configured improperly. Make sure that all
|
||||
"nameserver" entries in /etc/resolv.conf point to functional
|
||||
servers. If you are running your own server make certain
|
||||
that all the servers listed in your root cache (usually
|
||||
called something like "/var/namedb/root.cache"; see your
|
||||
/etc/named.boot file to get your value) are up to date.
|
||||
Either of these can cause long delays.
|
||||
----------------------------------------------------------------------
|
||||
* I just upgraded to 8.x and suddenly I get errors such as ``unknown
|
||||
mailer error 5 -- mail: options MUST PRECEDE recipients.'' What is
|
||||
going wrong?
|
||||
|
||||
You need OSTYPE(systype) in your .mc file -- otherwise the
|
||||
configurations use a default that probably disagrees with
|
||||
your local mail system. See cf/README for details.
|
||||
----------------------------------------------------------------------
|
||||
* Under V8, the "From " header gets mysteriously munged when I send
|
||||
to an alias.
|
||||
|
||||
``It's not a bug, it's a feature.'' This happens when you
|
||||
have a "owner-list" alias and you send to "list". V8
|
||||
propagates the owner information into the envelope sender
|
||||
field (which appears as the "From " header on UNIX mail or as
|
||||
the Return-Path: header) so that downstream errors are
|
||||
properly returned to the mailing list owner instead of to the
|
||||
sender. In order to make this appear as sensible as possible
|
||||
to end users, I recommend making the owner point to a
|
||||
"request" address -- for example:
|
||||
|
||||
list: :include:/path/name/list.list
|
||||
owner-list: list-request
|
||||
list-request: eric
|
||||
|
||||
This will make message sent to "list" come out as being "From
|
||||
list-request" instead of "From eric".
|
||||
----------------------------------------------------------------------
|
||||
* I am trying to use MASQUERADE_AS (or the user database) to
|
||||
rewrite from addresses, and although it works in the From: header
|
||||
line, it doesn't work in the envelope (e.g., the "From " line).
|
||||
|
||||
Believe it or not, this is intentional. The interpretation
|
||||
of the standards by the V8 development group was that this
|
||||
was an inappropriate rewriting, and that if the rewriting
|
||||
were incorrect at least the envelope would contain a valid
|
||||
return address. Other people have since described scenarios
|
||||
where the envelope cannot be correct without this rewriting,
|
||||
so 8.7 will have an option to rewrite both header and
|
||||
envelope.
|
||||
----------------------------------------------------------------------
|
||||
* I want to run Sendmail version 8 on my DEC system, but you don't
|
||||
have MAIL11V3 support in sendmail. How do I handle this?
|
||||
|
||||
Get Paul Vixie's reimplementation of the mail11 protocol from
|
||||
gatekeeper.dec.com in /pub/DEC/gwtools.
|
||||
|
||||
Rumour has it that he will be fully integrating into sendmail
|
||||
V8 what little is left of IDA sendmail that is not handled
|
||||
(or handled as well) by V8. No additional information on
|
||||
this project is currently available.
|
||||
----------------------------------------------------------------------
|
||||
* Messages seem to disappear from my queue unsent. When I look in
|
||||
the queue directory I see that they have been renamed from qf* to
|
||||
Qf*, and sendmail doesn't see these.
|
||||
|
||||
If you look closely you should find that the Qf files are
|
||||
owned by users other than root. Since sendmail runs as root
|
||||
it refuses to believe information in non-root-owned qf files,
|
||||
and it renames them to Qf to get them out of the way and make
|
||||
it easy for you to find. The usual cause of this is
|
||||
twofold: first, you have the queue directory world writable
|
||||
(which is probably a mistake -- this opens up other security
|
||||
problems) and someone is calling sendmail with an "unsafe"
|
||||
flag, usually a -o flag that sets an option that could
|
||||
compromise security. When sendmail sees this it gives up
|
||||
setuid root permissions.
|
||||
|
||||
The usual solution is to not use the problematic flags. If
|
||||
you must use them, you have to write a special queue
|
||||
directory and have them processed by the same uid that
|
||||
submitted the job in the first place.
|
||||
----------------------------------------------------------------------
|
||||
@(#)FAQ 8.16 (Berkeley) 9/17/95
|
||||
Send updates to sendmail@sendmail.ORG.
|
119
usr.sbin/sendmail/KNOWNBUGS
Normal file
119
usr.sbin/sendmail/KNOWNBUGS
Normal file
@ -0,0 +1,119 @@
|
||||
|
||||
|
||||
K N O W N B U G S I N S E N D M A I L
|
||||
(for 8.7)
|
||||
|
||||
|
||||
The following are bugs or deficiencies in sendmail that I am aware of
|
||||
but which have not been fixed in the current release. You probably
|
||||
want to get the most up to date version of this from FTP.CS.Berkeley.EDU
|
||||
in /ucb/sendmail/KNOWNBUGS. For descriptions of bugs that have been
|
||||
fixed, see the file RELEASE_NOTES (in the root directory of the sendmail
|
||||
distribution).
|
||||
|
||||
This list is not guaranteed to be complete.
|
||||
|
||||
|
||||
* Null bytes are not handled properly in headers.
|
||||
|
||||
Sendmail should handle full binary data. As it stands, it handles
|
||||
all values in the body, but only 0x01-0x80 and 0xA0-0xFF in
|
||||
the header. Notably missing is 0x00, which would require a major
|
||||
restructuring of the code -- for example, almost no C library support
|
||||
could be used to handle strings.
|
||||
|
||||
* Duplicate error messages.
|
||||
|
||||
Sometimes identical, duplicate error messages can be generated. As
|
||||
near as I can tell, this is rare and relatively innocuous.
|
||||
|
||||
* $c (hop count) macro improperly set.
|
||||
|
||||
The $c macro is supposed to contain the current hop count, for use
|
||||
when calling a mailer. This macro is initialized too early, and
|
||||
is always zero (or the value of the -c command line flag, if any).
|
||||
This macro will probably be removed entirely in a future release;
|
||||
I don't believe there are any mailers left that require it.
|
||||
|
||||
* If you EXPN a list or user that has a program mailer, the output of
|
||||
EXPN will include ``@local.host.name''. You can't actually mail to
|
||||
this address. It's not clear what the right behaviour is in this
|
||||
circumstance.
|
||||
|
||||
* MX records that point at non-existent hosts work strangly.
|
||||
|
||||
Consider the DNS records:
|
||||
|
||||
hostH MX 1 hostA
|
||||
MX 2 hostB
|
||||
hostA A 128.32.8.9
|
||||
|
||||
(note that there is no A record for hostB). If hostA is down,
|
||||
an attempt to send to hostH gives "host unknown" -- that is, it
|
||||
reflects out the status on the last host it tries, which in this
|
||||
case is hostB, which is unknown. It probably ought to eliminate
|
||||
hostB early in processing.
|
||||
|
||||
* \231 considered harmful.
|
||||
|
||||
Header addresses that have the \231 character (and possibly others
|
||||
in the range \201 - \237) behave in odd and usually unexpected ways.
|
||||
|
||||
* accept() problem on SVR4.
|
||||
|
||||
Apparently, the sendmail daemon loop (doing accept()s on the network)
|
||||
can get into a wierd state on SVR4; it starts logging ``SYSERR:
|
||||
getrequests: accept: Protocol Error''. The workaround is to kill
|
||||
and restart the sendmail daemon. We don't have an SVR4 system at
|
||||
Berkeley that carries more than token mail load, so I can't validate
|
||||
this. It is likely to be a glitch in the sockets emulation, since
|
||||
"Protocol Error" is not possible error code with Berkeley TCP/IP.
|
||||
|
||||
I've also had someone report the message ``sendmail: accept:
|
||||
SIOCGPGRP failed errno 22'' on an SVR4 system. This message is
|
||||
not in the sendmail source code, so I assume it is also a bug
|
||||
in the sockets emulation. (Errno 22 is EINVAL "Invalid Argument"
|
||||
on all the systems I have available, including Solaris 2.x.)
|
||||
|
||||
* Sending user deletion not done properly in :include: lists.
|
||||
|
||||
If you don't have the "m" (me too) option set, then a person
|
||||
sending to a list that contains themselves should not get a copy
|
||||
of the message. However, if that list points to a :include: file
|
||||
that has one address per line, this will break, and the sender
|
||||
will always get a copy of their own message, just as though the
|
||||
"m" option were set.
|
||||
|
||||
You can eliminate this by adding commas at the end of each line
|
||||
of the :include: file.
|
||||
|
||||
* Excessive mailing list nesting can run out of file descriptors.
|
||||
|
||||
If you have a mailing list that includes lots of other mailing
|
||||
lists, each of which has a separate owner, you can run out of
|
||||
file descriptors. Each mailing list with a separate owner uses
|
||||
one open file descriptor (prior to 8.6.6 it was three open
|
||||
file descriptors per list). This is particularly egregious if
|
||||
you have your connection cache set to be large.
|
||||
|
||||
* Connection caching breaks if you pass the port number as an argument.
|
||||
|
||||
If you have a definition such as:
|
||||
|
||||
Mport, P=[IPC], F=kmDFMuX, S=11/31, R=21,
|
||||
M=2100000, T=DNS/RFC822/SMTP,
|
||||
A=IPC [127.0.0.1] $h
|
||||
|
||||
(i.e., where $h is the port number instead of the host name) the
|
||||
connection caching code will break because it won't notice that
|
||||
two messages addressed to different ports should use different
|
||||
connections.
|
||||
|
||||
* ESMTP SIZE underestimates the size of a message
|
||||
|
||||
Sendmail makes no allowance for headers that it adds, nor does it
|
||||
account for the SMTP on-the-wire \r\n expansion. It probably doesn't
|
||||
allow for 8->7 bit MIME conversions either.
|
||||
|
||||
|
||||
(Version 8.21, last updated 8/27/95)
|
45
usr.sbin/sendmail/Makefile
Normal file
45
usr.sbin/sendmail/Makefile
Normal file
@ -0,0 +1,45 @@
|
||||
# @(#)Makefile 8.12 (Berkeley) 5/29/95
|
||||
|
||||
VER= XX
|
||||
SUBDIR= src mailstats makemap praliases cf/cf
|
||||
FTPDIR= mastodon:/disks/barad-dur/ftp/sendmail/.
|
||||
DISTFILES=sendmail.${VER}.tar.Z sendmail.${VER}.tar.gz \
|
||||
RELEASE_NOTES FAQ KNOWNBUGS
|
||||
FILES= Files.base Files.cf Files.misc Files.xdoc
|
||||
|
||||
tar: sccs-check compile-world run-pax
|
||||
|
||||
sccs-check:
|
||||
sccs check
|
||||
(cd src; sccs check)
|
||||
(cd doc/op; sccs check)
|
||||
(cd doc/intro; sccs check)
|
||||
(cd doc/usenix; sccs check)
|
||||
(cd cf; sccs check)
|
||||
(cd cf/m4; sccs check)
|
||||
(cd cf/mailer; sccs check)
|
||||
(cd cf/feature; sccs check)
|
||||
(cd cf/cf; sccs check)
|
||||
(cd cf/ostype; sccs check)
|
||||
(cd cf/domain; sccs check)
|
||||
|
||||
compile-world:
|
||||
(cd src; ${MAKE})
|
||||
(cd doc; PRINTER=ps ${MAKE})
|
||||
(cd doc; chmod 444 op/op.ps intro/intro.ps usenix/usenix.ps)
|
||||
(cd cf/cf; ${MAKE})
|
||||
|
||||
run-pax: Files.base Files.cf Files.misc Files.xdoc
|
||||
chmod +x src/makesendmail
|
||||
pax -w -x tar -L \
|
||||
-s ",cf/domain/unspecified-domain,sendmail-${VER}/cf/domain/berkeley-only,p" \
|
||||
-s ",^,sendmail-${VER}/," \
|
||||
-f sendmail.${VER}.tar \
|
||||
`cat ${FILES} | grep -v ^#`
|
||||
gzip -c sendmail.${VER}.tar > sendmail.${VER}.tar.gz
|
||||
compress sendmail.${VER}.tar
|
||||
|
||||
ftp: sendmail.${VER}.tar.Z
|
||||
rcp ${DISTFILES} ${FTPDIR}
|
||||
|
||||
.include <bsd.subdir.mk>
|
288
usr.sbin/sendmail/READ_ME
Normal file
288
usr.sbin/sendmail/READ_ME
Normal file
@ -0,0 +1,288 @@
|
||||
/*-
|
||||
* @(#)READ_ME 8.25 (Berkeley) 11/19/95
|
||||
*/
|
||||
|
||||
SENDMAIL RELEASE 8
|
||||
|
||||
This directory has the latest sendmail software from Berkeley. See
|
||||
doc/changes/changes.me for a summary of changes since 5.67.
|
||||
|
||||
Report any bugs to sendmail-bugs@sendmail.ORG
|
||||
|
||||
******************************************************************
|
||||
** DO NOT USE MAKE to compile sendmail. Instead, cd src and **
|
||||
** use the "makesendmail" shell script. On many environments **
|
||||
** this will do everything for you, no fuss, no muss. See **
|
||||
** src/READ_ME for more details of compilation. See cf/README **
|
||||
** for details about building a runtime configuration file. **
|
||||
******************************************************************
|
||||
|
||||
|
||||
+--------------+
|
||||
| MANUAL PAGES |
|
||||
+--------------+
|
||||
|
||||
The sendmail manual pages use contemporary Berkeley troff macros. If
|
||||
your system does not process these manual pages, you can pick up the
|
||||
new macros in a BSD Net/2 FTP site (e.g. on FTP.UU.NET, the files
|
||||
/systems/unix/bsd-sources/share/tmac/me/strip.sed and
|
||||
/systems/unix/bsd-sources/share/tmac/*).
|
||||
|
||||
The strip.sed file is only used in installation.
|
||||
|
||||
After installation, edit tmac.doc and tmac.andoc to reflect the
|
||||
installation path of the tmac files. Those files contain pointers to
|
||||
/usr/share/tmac/, and those pointers are not changed by the `make
|
||||
install` process. There's also a bug in those files -- make the
|
||||
following patch:
|
||||
|
||||
*** tmac.an~ Tue Jul 12 14:29:09 1994
|
||||
--- tmac.an Fri Jul 15 13:17:54 1994
|
||||
***************
|
||||
*** 50,55 ****
|
||||
.de TH
|
||||
.rn TH xX
|
||||
.so /usr/share/lib/tmac/tmac.an.old
|
||||
! .TH \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8
|
||||
.rm xX
|
||||
..
|
||||
--- 50,55 ----
|
||||
.de TH
|
||||
.rn TH xX
|
||||
.so /usr/share/lib/tmac/tmac.an.old
|
||||
! .TH "\\$1" "\\$2" "\\$3" "\\$4" "\\$5" "\\$6" "\\$7" "\\$8"
|
||||
.rm xX
|
||||
..
|
||||
|
||||
Rename the existing tmac.an to be tmac.an.old, and rename tmac.andoc
|
||||
to be tmac.an.
|
||||
|
||||
tmac.an will choose between tmac.an.old, your old macros, or tmac.doc,
|
||||
which are the new macros, so that both the new man pages and the
|
||||
existing man pages will be translated properly.
|
||||
|
||||
I'm also told that the groff distribution from MIT has a tmac.doc
|
||||
macro set that is compatible with these macros.
|
||||
|
||||
|
||||
+-----------------------+
|
||||
| RELATED DOCUMENTATION |
|
||||
+-----------------------+
|
||||
|
||||
There are other files you should read. Rooted in this directory are:
|
||||
|
||||
CHANGES-R5-R8
|
||||
Describes changes between Release 5 and Release 8 of sendmail.
|
||||
There are some things that may behave somewhat differently.
|
||||
For example, the rules governing when :include: files will
|
||||
be read have been tightened up for security reasons.
|
||||
FAQ
|
||||
Answers to Frequently Asked Questions.
|
||||
KNOWNBUGS
|
||||
Known bugs in the current release. I try to keep this up
|
||||
to date -- get the latest version from FTP.CS.Berkeley.EDU
|
||||
in /ucb/sendmail/KNOWNBUGS.
|
||||
RELEASE_NOTES
|
||||
A detailed description of the changes in each version. This
|
||||
is quite long, but informative.
|
||||
src/READ_ME
|
||||
Details on compiling and installing sendmail.
|
||||
cf/README
|
||||
Details on configuring sendmail.
|
||||
doc/op/op.me
|
||||
The sendmail Installation & Operations Guide. Be warned: if
|
||||
you are running this off on SunOS or some other system with an
|
||||
old version of -me, you need to add the following macro to the
|
||||
macros:
|
||||
|
||||
.de sm
|
||||
\s-1\\$1\\s0\\$2
|
||||
..
|
||||
|
||||
This sets a word in a smaller pointsize.
|
||||
|
||||
|
||||
+--------------+
|
||||
| RELATED RFCS |
|
||||
+--------------+
|
||||
|
||||
There are several related RFCs that you may wish to read -- they are
|
||||
available via anonymous FTP to several sites, including nic.ddn.mil
|
||||
(directory rfc), ftp.nisc.sri.com (rfc), nis.nsf.net (RFC),
|
||||
nisc.jvnc.net (rfc), venera.isi.edu (in-notes), and wuarchive.wustl.edu
|
||||
(info/rfc). They can also be retrieved via electronic mail by sending
|
||||
email to one of:
|
||||
|
||||
mail-server@nisc.sri.com
|
||||
Put "send rfcNNN" in message body
|
||||
nis-info@nis.nsf.net
|
||||
Put "send RFCnnn.TXT-1" in message body
|
||||
sendrfc@jvnc.net
|
||||
Put "RFCnnn" as Subject: line
|
||||
|
||||
Important RFCs for electronic mail are:
|
||||
|
||||
RFC821 SMTP protocol
|
||||
RFC822 Mail header format
|
||||
RFC974 MX routing
|
||||
RFC976 UUCP mail format
|
||||
RFC1123 Host requirements (modifies 821, 822, and 974)
|
||||
RFC1413 Identification server
|
||||
RFC1425 SMTP Service Extensions (ESMTP spec)
|
||||
RFC1426 SMTP Service Extension for 8bit-MIMEtransport
|
||||
RFC1427 SMTP Service Extension for Message Size Declaration
|
||||
RFC1521 MIME: Multipurpose Internet Mail Extensions
|
||||
RFC1344 Implications of MIME for Internet Mail Gateways
|
||||
RFC1428 Transition of Internet Mail from Just-Send-8 to
|
||||
8-bit SMTP/MIME
|
||||
|
||||
Other standards that may be of interest (but which are less directly
|
||||
relevant to sendmail) are:
|
||||
|
||||
RFC987 Mapping between RFC822 and X.400
|
||||
RFC1049 Content-Type header field (extension to RFC822)
|
||||
|
||||
Warning to AIX users: this version of sendmail does not implement
|
||||
MB, MR, or MG DNS resource records, as defined (as experiments) in
|
||||
RFC1035.
|
||||
|
||||
|
||||
+-------------------+
|
||||
| DATABASE ROUTINES |
|
||||
+-------------------+
|
||||
|
||||
IF YOU WANT TO RUN THE NEW BERKELEY DB SOFTWARE: **** DO NOT ****
|
||||
use the version that was on the Net2 tape -- it has a number of
|
||||
nefarious bugs that were bad enough when I got them; you shouldn't have
|
||||
to go through the same thing. Instead, get a new version via public
|
||||
FTP from ftp.CS.Berkeley.EDU, file ucb/4bsd/db.tar.Z. This software
|
||||
is highly recommended; it gets rid of several stupid limits, it's much
|
||||
faster, and the interface is nicer to animals and plants. You will
|
||||
also probably find that you have to add -I/where/you/put/db/include
|
||||
to the sendmail makefile to get db.h to work properly.
|
||||
|
||||
Be sure you remove ndbm.h and ndbm.o from the db distribution. These
|
||||
will cause problems with sendmail because sendmail already understands
|
||||
about NEWDB and NDBM coexisting.
|
||||
|
||||
|
||||
+--------------------+
|
||||
| HOST NAME SERVICES |
|
||||
+--------------------+
|
||||
|
||||
If you are using NIS or /etc/hosts, it is critical that you
|
||||
list the long (fully qualified) name somewhere (preferably first) in
|
||||
the /etc/hosts file used to build the NIS database. For example, the
|
||||
line should read
|
||||
|
||||
128.32.149.68 mastodon.CS.Berkeley.EDU mastodon
|
||||
|
||||
**** NOT ****
|
||||
|
||||
128.32.149.68 mastodon
|
||||
|
||||
If you do not include the long name, sendmail will complain loudly
|
||||
about ``unable to qualify my own domain name (mastodon) -- using
|
||||
short name'' and conclude that your canonical name is the short
|
||||
version and use that in messages. The name "mastodon" doesn't mean
|
||||
much outside of Berkeley, and so this creates incorrect and unreplyable
|
||||
messages.
|
||||
|
||||
|
||||
+-------------+
|
||||
| USE WITH MH |
|
||||
+-------------+
|
||||
|
||||
This version of sendmail notices and reports certain kinds of SMTP
|
||||
protocol violations that were ignored by older versions. If you
|
||||
are running MH you may wish to install the patch in contrib/mh.patch
|
||||
that will prevent these warning reports. This patch also works
|
||||
with the old version of sendmail, so it's safe to go ahead and
|
||||
install it.
|
||||
|
||||
|
||||
+----------------+
|
||||
| USE WITH IDENT |
|
||||
+----------------+
|
||||
|
||||
Sendmail 8 supports the IDENT protocol, as defined by RFC 1413.
|
||||
No ident server is included with this distribution. I have found
|
||||
copies available on:
|
||||
|
||||
ftp.lysator.liu.se /pub/ident/servers
|
||||
romulus.ucs.uoknor.edu /networking/ident/servers
|
||||
ftp.cyf-kr.edu.pl /agh/uciagh/network/ident
|
||||
|
||||
If you want to run an IDENT server, I suggest getting a copy from
|
||||
one of those sites. Versions are available for several different
|
||||
systems, including Apollo, BSD, NeXT, AIX, TOPS20, and VMS.
|
||||
|
||||
|
||||
+-----------+
|
||||
| MAKEFILES |
|
||||
+-----------+
|
||||
|
||||
The Makefiles in this release use the new Berkeley "make" that is
|
||||
available in BSD Net/2 and 4.4BSD. If you are using this version
|
||||
of make, you may notice one or two places where the Makefile includes
|
||||
"../../Makefile.inc". This file is not included with the sendmail
|
||||
distribution because it's not part of sendmail. However, it is,
|
||||
in toto:
|
||||
|
||||
# @(#)Makefile.inc 8.1 (Berkeley) 6/6/93
|
||||
|
||||
BINDIR?= /usr/sbin
|
||||
|
||||
The other directories should all have Makefile.dist files that work
|
||||
on the old make, albeit without all the niceties included.
|
||||
|
||||
You can also get a new Berkeley make from the Net2 release (available
|
||||
on many public FTP archives). This version should also interpret old
|
||||
Makefiles, so you could drop it in as your default make.
|
||||
|
||||
For more details, see src/READ_ME.
|
||||
|
||||
|
||||
+---------------------+
|
||||
| DIRECTORY STRUCTURE |
|
||||
+---------------------+
|
||||
|
||||
The structure of this directory tree is:
|
||||
|
||||
cf Source for Berkeley configuration files. These are
|
||||
different than what you've seen before. They are a
|
||||
fairly dramatic rewrite, requiring the new sendmail
|
||||
(since they use new features).
|
||||
contrib Some contributed tools to help with sendmail. THESE
|
||||
ARE NOT SUPPORTED by Berkeley -- contact the original
|
||||
authors if you have problems. (This directory is not
|
||||
on the 4.4BSD tape.)
|
||||
doc Documentation. If you are getting source, read
|
||||
op.me -- it's long, but worth it.
|
||||
mail.local The source for the local delivery agent used for 4.4BSD.
|
||||
THIS IS NOT PART OF SENDMAIL! and may not compile
|
||||
everywhere, since it depends on some 4.4-isms. Warning:
|
||||
it does mailbox locking differently than other systems.
|
||||
mailstats Statistics printing program. It has the pathname of
|
||||
sendmail.st compiled in, so if you've changed that,
|
||||
beware. This isn't all that useful.
|
||||
makemap A program that creates the keyed maps used by the $( ... $)
|
||||
construct in sendmail. It is primitive but effective.
|
||||
It takes a very simple input format, so you will probably
|
||||
expect to preprocess must human-convenient formats
|
||||
using sed scripts before this program will like them.
|
||||
But it should be functionally complete.
|
||||
praliases A program to print the DBM or NEWDB version of the
|
||||
aliases file.
|
||||
rmail Source for rmail(8). This is used as a delivery
|
||||
agent for for UUCP, and could presumably be used by
|
||||
other non-socket oriented mailers. Older versions of
|
||||
rmail are probably deficient. RMAIL IS NOT PART OF
|
||||
SENDMAIL!!! The 4.4BSD source is included for you to
|
||||
look at or try to port to your system. I know it doesn't
|
||||
compile on {SunOS, HP-UX, OSF/1, other} (pick one).
|
||||
smrsh The "sendmail restricted shell", which can be used as
|
||||
a replacement for /bin/sh in the prog mailer to provide
|
||||
increased security control. NOT PART OF SENDMAIL!
|
||||
src Source for the sendmail program itself.
|
||||
test Some test scripts (currently only for compilation aids).
|
4003
usr.sbin/sendmail/RELEASE_NOTES
Normal file
4003
usr.sbin/sendmail/RELEASE_NOTES
Normal file
File diff suppressed because it is too large
Load Diff
1740
usr.sbin/sendmail/cf/README
Normal file
1740
usr.sbin/sendmail/cf/README
Normal file
File diff suppressed because it is too large
Load Diff
111
usr.sbin/sendmail/cf/cf/Makefile
Normal file
111
usr.sbin/sendmail/cf/cf/Makefile
Normal file
@ -0,0 +1,111 @@
|
||||
# @(#)Makefile 8.17 (Berkeley) 9/12/95
|
||||
|
||||
#
|
||||
# This Makefile uses the new Berkeley "make" program. See Makefile.dist
|
||||
# for a more vanilla version.
|
||||
#
|
||||
# Configuration files are created using "m4 file.mc > file.cf";
|
||||
# this may be easier than tweaking the Makefile. You do need to
|
||||
# have a fairly modern M4 available (GNU m4 works). On SunOS, use
|
||||
# /usr/5bin/m4.
|
||||
#
|
||||
|
||||
M4= m4
|
||||
#M4= /usr/src/usr.bin/m4/obj/m4
|
||||
CFDIR= ..
|
||||
CHMOD= chmod
|
||||
ROMODE= 444
|
||||
RM= rm -f
|
||||
|
||||
.SUFFIXES: .mc .cf
|
||||
|
||||
.mc.cf:
|
||||
$(RM) $@
|
||||
(cd ${.CURDIR} && $(M4) ${CFDIR}/m4/cf.m4 ${@:R}.mc > obj/$@)
|
||||
$(CHMOD) $(ROMODE) $@
|
||||
|
||||
ALL= generic-bsd4.4.cf generic-hpux9.cf generic-hpux10.cf \
|
||||
generic-osf1.cf generic-solaris2.cf \
|
||||
generic-sunos4.1.cf generic-ultrix4.cf \
|
||||
cs-hpux9.cf cs-osf1.cf cs-solaris2.cf \
|
||||
cs-sunos4.1.cf cs-ultrix4.cf \
|
||||
s2k-osf1.cf s2k-ultrix4.cf \
|
||||
chez.cs.cf huginn.cs.cf mail.cs.cf mail.eecs.cf mailspool.cs.cf \
|
||||
python.cs.cf ucbarpa.cf ucbvax.cf vangogh.cs.cf
|
||||
|
||||
all: $(ALL)
|
||||
|
||||
clean cleandir:
|
||||
$(RM) $(ALL) core
|
||||
|
||||
depend install:
|
||||
|
||||
# this is overkill, but....
|
||||
M4FILES=\
|
||||
${CFDIR}/domain/Berkeley.EDU.m4 \
|
||||
${CFDIR}/domain/CS.Berkeley.EDU.m4 \
|
||||
${CFDIR}/domain/EECS.Berkeley.EDU.m4 \
|
||||
${CFDIR}/domain/S2K.Berkeley.EDU.m4 \
|
||||
${CFDIR}/feature/allmasquerade.m4 \
|
||||
${CFDIR}/feature/always_add_domain.m4 \
|
||||
${CFDIR}/feature/bestmx_is_local.m4 \
|
||||
${CFDIR}/feature/bitdomain.m4 \
|
||||
${CFDIR}/feature/domaintable.m4 \
|
||||
${CFDIR}/feature/local_procmail.m4 \
|
||||
${CFDIR}/feature/mailertable.m4 \
|
||||
${CFDIR}/feature/nocanonify.m4 \
|
||||
${CFDIR}/feature/nodns.m4 \
|
||||
${CFDIR}/feature/notsticky.m4 \
|
||||
${CFDIR}/feature/nouucp.m4 \
|
||||
${CFDIR}/feature/nullclient.m4 \
|
||||
${CFDIR}/feature/redirect.m4 \
|
||||
${CFDIR}/feature/smrsh.m4 \
|
||||
${CFDIR}/feature/stickyhost.m4 \
|
||||
${CFDIR}/feature/use_cw_file.m4 \
|
||||
${CFDIR}/feature/uucpdomain.m4 \
|
||||
${CFDIR}/hack/cssubdomain.m4 \
|
||||
${CFDIR}/m4/cf.m4 \
|
||||
${CFDIR}/m4/cfhead.m4 \
|
||||
${CFDIR}/m4/nullrelay.m4 \
|
||||
${CFDIR}/m4/proto.m4 \
|
||||
${CFDIR}/m4/version.m4 \
|
||||
${CFDIR}/mailer/cyrus.m4 \
|
||||
${CFDIR}/mailer/fax.m4 \
|
||||
${CFDIR}/mailer/local.m4 \
|
||||
${CFDIR}/mailer/mail11.m4 \
|
||||
${CFDIR}/mailer/pop.m4 \
|
||||
${CFDIR}/mailer/procmail.m4 \
|
||||
${CFDIR}/mailer/smtp.m4 \
|
||||
${CFDIR}/mailer/usenet.m4 \
|
||||
${CFDIR}/mailer/uucp.m4 \
|
||||
${CFDIR}/ostype/aix3.m4 \
|
||||
${CFDIR}/ostype/amdahl-uts.m4 \
|
||||
${CFDIR}/ostype/aux.m4 \
|
||||
${CFDIR}/ostype/bsd4.3.m4 \
|
||||
${CFDIR}/ostype/bsd4.4.m4 \
|
||||
${CFDIR}/ostype/bsdi1.0.m4 \
|
||||
${CFDIR}/ostype/dgux.m4 \
|
||||
${CFDIR}/ostype/domainos.m4 \
|
||||
${CFDIR}/ostype/dynix3.2.m4 \
|
||||
${CFDIR}/ostype/hpux9.m4 \
|
||||
${CFDIR}/ostype/irix4.m4 \
|
||||
${CFDIR}/ostype/irix5.m4 \
|
||||
${CFDIR}/ostype/linux.m4 \
|
||||
${CFDIR}/ostype/nextstep.m4 \
|
||||
${CFDIR}/ostype/osf1.m4 \
|
||||
${CFDIR}/ostype/ptx2.m4 \
|
||||
${CFDIR}/ostype/riscos4.5.m4 \
|
||||
${CFDIR}/ostype/sco3.2.m4 \
|
||||
${CFDIR}/ostype/solaris2.m4 \
|
||||
${CFDIR}/ostype/sunos3.5.m4 \
|
||||
${CFDIR}/ostype/sunos4.1.m4 \
|
||||
${CFDIR}/ostype/svr4.m4 \
|
||||
${CFDIR}/ostype/ultrix4.m4 \
|
||||
${CFDIR}/siteconfig/uucp.cogsci.m4 \
|
||||
${CFDIR}/siteconfig/uucp.old.arpa.m4 \
|
||||
${CFDIR}/siteconfig/uucp.ucbarpa.m4 \
|
||||
${CFDIR}/siteconfig/uucp.ucbvax.m4 \
|
||||
|
||||
$(ALL): $(M4FILES)
|
||||
|
||||
.include <bsd.prog.mk>
|
54
usr.sbin/sendmail/cf/cf/chez.cs.mc
Normal file
54
usr.sbin/sendmail/cf/cf/chez.cs.mc
Normal file
@ -0,0 +1,54 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a Berkeley-specific configuration file for a specific
|
||||
# machine in the Computer Science Division at Berkeley, and should
|
||||
# not be used elsewhere. It is provided on the sendmail distribution
|
||||
# as a sample only.
|
||||
#
|
||||
# This file is for a home machine that wants to masquerade as an
|
||||
# on-campus machine. Additionally, all addresses without a hostname
|
||||
# will be forwarded to that machine.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)chez.cs.mc 8.5 (Berkeley) 8/6/95')
|
||||
OSTYPE(bsd4.4)dnl
|
||||
DOMAIN(CS.Berkeley.EDU)dnl
|
||||
define(`LOCAL_RELAY', vangogh.CS.Berkeley.EDU)dnl
|
||||
MASQUERADE_AS(vangogh.CS.Berkeley.EDU)dnl
|
||||
FEATURE(use_cw_file)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
54
usr.sbin/sendmail/cf/cf/clientproto.mc
Normal file
54
usr.sbin/sendmail/cf/cf/clientproto.mc
Normal file
@ -0,0 +1,54 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This the prototype for a "null client" -- that is, a client that
|
||||
# does nothing except forward all mail to a mail hub. IT IS NOT
|
||||
# USABLE AS IS!!!
|
||||
#
|
||||
# To use this, you MUST use the nullclient feature with the name of
|
||||
# the mail hub as its argument. You MUST also define an `OSTYPE' to
|
||||
# define the location of the queue directories and the like.
|
||||
# In addition, you MAY select the nocanonify feature. This causes
|
||||
# addresses to be sent unqualified via the SMTP connection; normally
|
||||
# they are qualifed with the masquerade name, which defaults to the
|
||||
# name of the hub machine.
|
||||
# Other than these, it should never contain any other lines.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)clientproto.mc 8.6 (Berkeley) 8/16/95')
|
||||
|
||||
OSTYPE(unknown)
|
||||
FEATURE(nullclient, mailhost.$m)
|
51
usr.sbin/sendmail/cf/cf/cs-hpux10.mc
Normal file
51
usr.sbin/sendmail/cf/cf/cs-hpux10.mc
Normal file
@ -0,0 +1,51 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a Berkeley-specific configuration file for HP-UX 9.x.
|
||||
# It applies only the the Computer Science Division at Berkeley,
|
||||
# and should not be used elsewhere. It is provided on the sendmail
|
||||
# distribution as a sample only. To create your own configuration
|
||||
# file, create an appropriate domain file in ../domain, change the
|
||||
# `DOMAIN' macro below to reference that file, and copy the result
|
||||
# to a name of your own choosing.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)cs-hpux10.mc 8.3 (Berkeley) 8/6/95')
|
||||
OSTYPE(hpux10)dnl
|
||||
DOMAIN(CS.Berkeley.EDU)dnl
|
||||
define(`MAIL_HUB', mailspool.CS.Berkeley.EDU)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
51
usr.sbin/sendmail/cf/cf/cs-hpux9.mc
Normal file
51
usr.sbin/sendmail/cf/cf/cs-hpux9.mc
Normal file
@ -0,0 +1,51 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a Berkeley-specific configuration file for HP-UX 9.x.
|
||||
# It applies only the the Computer Science Division at Berkeley,
|
||||
# and should not be used elsewhere. It is provided on the sendmail
|
||||
# distribution as a sample only. To create your own configuration
|
||||
# file, create an appropriate domain file in ../domain, change the
|
||||
# `DOMAIN' macro below to reference that file, and copy the result
|
||||
# to a name of your own choosing.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)cs-hpux9.mc 8.4 (Berkeley) 8/6/95')
|
||||
OSTYPE(hpux9)dnl
|
||||
DOMAIN(CS.Berkeley.EDU)dnl
|
||||
define(`MAIL_HUB', mailspool.CS.Berkeley.EDU)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
50
usr.sbin/sendmail/cf/cf/cs-osf1.mc
Normal file
50
usr.sbin/sendmail/cf/cf/cs-osf1.mc
Normal file
@ -0,0 +1,50 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a Berkeley-specific configuration file for OSF/1.
|
||||
# It applies only the the Computer Science Division at Berkeley,
|
||||
# and should not be used elsewhere. It is provided on the sendmail
|
||||
# distribution as a sample only. To create your own configuration
|
||||
# file, create an appropriate domain file in ../domain, change the
|
||||
# `DOMAIN' macro below to reference that file, and copy the result
|
||||
# to a name of your own choosing.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)cs-osf1.mc 8.3 (Berkeley) 8/6/95')
|
||||
OSTYPE(osf1)dnl
|
||||
DOMAIN(CS.Berkeley.EDU)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
50
usr.sbin/sendmail/cf/cf/cs-solaris2.mc
Normal file
50
usr.sbin/sendmail/cf/cf/cs-solaris2.mc
Normal file
@ -0,0 +1,50 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a Berkeley-specific configuration file for Solaris 2.x.
|
||||
# It applies only the the Computer Science Division at Berkeley,
|
||||
# and should not be used elsewhere. It is provided on the sendmail
|
||||
# distribution as a sample only. To create your own configuration
|
||||
# file, create an appropriate domain file in ../domain, change the
|
||||
# `DOMAIN' macro below to reference that file, and copy the result
|
||||
# to a name of your own choosing.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)cs-solaris2.mc 8.2 (Berkeley) 8/6/95')
|
||||
OSTYPE(solaris2)dnl
|
||||
DOMAIN(CS.Berkeley.EDU)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
50
usr.sbin/sendmail/cf/cf/cs-sunos4.1.mc
Normal file
50
usr.sbin/sendmail/cf/cf/cs-sunos4.1.mc
Normal file
@ -0,0 +1,50 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a Berkeley-specific configuration file for SunOS 4.1.x.
|
||||
# It applies only the the Computer Science Division at Berkeley,
|
||||
# and should not be used elsewhere. It is provided on the sendmail
|
||||
# distribution as a sample only. To create your own configuration
|
||||
# file, create an appropriate domain file in ../domain, change the
|
||||
# `DOMAIN' macro below to reference that file, and copy the result
|
||||
# to a name of your own choosing.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)cs-sunos4.1.mc 8.3 (Berkeley) 8/6/95')
|
||||
OSTYPE(sunos4.1)dnl
|
||||
DOMAIN(CS.Berkeley.EDU)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
50
usr.sbin/sendmail/cf/cf/cs-ultrix4.mc
Normal file
50
usr.sbin/sendmail/cf/cf/cs-ultrix4.mc
Normal file
@ -0,0 +1,50 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a Berkeley-specific configuration file for Ultrix 4.x.
|
||||
# It applies only the the Computer Science Division at Berkeley,
|
||||
# and should not be used elsewhere. It is provided on the sendmail
|
||||
# distribution as a sample only. To create your own configuration
|
||||
# file, create an appropriate domain file in ../domain, change the
|
||||
# `DOMAIN' macro below to reference that file, and copy the result
|
||||
# to a name of your own choosing.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)cs-ultrix4.mc 8.3 (Berkeley) 8/6/95')
|
||||
OSTYPE(ultrix4)dnl
|
||||
DOMAIN(CS.Berkeley.EDU)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
40
usr.sbin/sendmail/cf/cf/cyrusproto.mc
Normal file
40
usr.sbin/sendmail/cf/cf/cyrusproto.mc
Normal file
@ -0,0 +1,40 @@
|
||||
divert(-1)
|
||||
#
|
||||
# (C) Copyright 1995 by Carnegie Mellon University
|
||||
#
|
||||
# All Rights Reserved
|
||||
#
|
||||
# Permission to use, copy, modify, and distribute this software and its
|
||||
# documentation for any purpose and without fee is hereby granted,
|
||||
# provided that the above copyright notice appear in all copies and that
|
||||
# both that copyright notice and this permission notice appear in
|
||||
# supporting documentation, and that the name of CMU not be
|
||||
# used in advertising or publicity pertaining to distribution of the
|
||||
# software without specific, written prior permission.
|
||||
#
|
||||
# CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
||||
# ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
||||
# CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
|
||||
# ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||
# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||
# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
# SOFTWARE.
|
||||
#
|
||||
# Contributed to Berkeley by John Gardiner Myers <jgm+@CMU.EDU>.
|
||||
#
|
||||
# This sample mc file is for a site that uses the Cyrus IMAP server
|
||||
# exclusively for local mail.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)cyrusproto.mc 8.2 (Carnegie Mellon) @(#)cyrusproto.mc 8.2')
|
||||
define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')
|
||||
FEATURE(nouucp)
|
||||
FEATURE(nocanonify)
|
||||
FEATURE(always_add_domain)
|
||||
MAILER(smtp)
|
||||
MAILER(cyrus)
|
||||
|
||||
define(`confLOCAL_MAILER',`cyrus')
|
||||
|
||||
LOCAL_RULE_0
|
||||
Rbb + $+ < @ $=w . > $#cyrusbb $: $1
|
48
usr.sbin/sendmail/cf/cf/generic-bsd4.4.mc
Normal file
48
usr.sbin/sendmail/cf/cf/generic-bsd4.4.mc
Normal file
@ -0,0 +1,48 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a generic configuration file for 4.4 BSD-based systems,
|
||||
# including 4.4-Lite, BSDi, NetBSD, and FreeBSD.
|
||||
# It has support for local and SMTP mail only. If you want to
|
||||
# customize it, copy it to a name appropriate for your environment
|
||||
# and do the modifications there.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)generic-bsd4.4.mc 8.1 (Berkeley) 9/12/95')
|
||||
OSTYPE(bsd4.4)dnl
|
||||
DOMAIN(generic)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
47
usr.sbin/sendmail/cf/cf/generic-hpux10.mc
Normal file
47
usr.sbin/sendmail/cf/cf/generic-hpux10.mc
Normal file
@ -0,0 +1,47 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a generic configuration file for HP-UX 9.x.
|
||||
# It has support for local and SMTP mail only. If you want to
|
||||
# customize it, copy it to a name appropriate for your environment
|
||||
# and do the modifications there.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)generic-hpux10.mc 8.2 (Berkeley) 8/6/95')
|
||||
OSTYPE(hpux10)dnl
|
||||
DOMAIN(generic)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
47
usr.sbin/sendmail/cf/cf/generic-hpux9.mc
Normal file
47
usr.sbin/sendmail/cf/cf/generic-hpux9.mc
Normal file
@ -0,0 +1,47 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a generic configuration file for HP-UX 9.x.
|
||||
# It has support for local and SMTP mail only. If you want to
|
||||
# customize it, copy it to a name appropriate for your environment
|
||||
# and do the modifications there.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)generic-hpux9.mc 8.2 (Berkeley) 8/6/95')
|
||||
OSTYPE(hpux9)dnl
|
||||
DOMAIN(generic)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
47
usr.sbin/sendmail/cf/cf/generic-osf1.mc
Normal file
47
usr.sbin/sendmail/cf/cf/generic-osf1.mc
Normal file
@ -0,0 +1,47 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a generic configuration file for OSF/1.
|
||||
# It has support for local and SMTP mail only. If you want to
|
||||
# customize it, copy it to a name appropriate for your environment
|
||||
# and do the modifications there.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)generic-osf1.mc 8.2 (Berkeley) 8/6/95')
|
||||
OSTYPE(osf1)dnl
|
||||
DOMAIN(generic)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
47
usr.sbin/sendmail/cf/cf/generic-solaris2.mc
Normal file
47
usr.sbin/sendmail/cf/cf/generic-solaris2.mc
Normal file
@ -0,0 +1,47 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a generic configuration file for SunOS 5.x (a.k.a. Solaris 2.x)
|
||||
# It has support for local and SMTP mail only. If you want to
|
||||
# customize it, copy it to a name appropriate for your environment
|
||||
# and do the modifications there.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)generic-solaris2.mc 8.2 (Berkeley) 8/6/95')
|
||||
OSTYPE(solaris2)dnl
|
||||
DOMAIN(generic)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
47
usr.sbin/sendmail/cf/cf/generic-sunos4.1.mc
Normal file
47
usr.sbin/sendmail/cf/cf/generic-sunos4.1.mc
Normal file
@ -0,0 +1,47 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a generic configuration file for SunOS 4.1.x.
|
||||
# It has support for local and SMTP mail only. If you want to
|
||||
# customize it, copy it to a name appropriate for your environment
|
||||
# and do the modifications there.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)generic-sunos4.1.mc 8.2 (Berkeley) 8/6/95')
|
||||
OSTYPE(sunos4.1)dnl
|
||||
DOMAIN(generic)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
47
usr.sbin/sendmail/cf/cf/generic-ultrix4.mc
Normal file
47
usr.sbin/sendmail/cf/cf/generic-ultrix4.mc
Normal file
@ -0,0 +1,47 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a generic configuration file for Ultrix 4.x.
|
||||
# It has support for local and SMTP mail only. If you want to
|
||||
# customize it, copy it to a name appropriate for your environment
|
||||
# and do the modifications there.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)generic-ultrix4.mc 8.2 (Berkeley) 8/6/95')
|
||||
OSTYPE(ultrix4)dnl
|
||||
DOMAIN(generic)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
63
usr.sbin/sendmail/cf/cf/huginn.cs.mc
Normal file
63
usr.sbin/sendmail/cf/cf/huginn.cs.mc
Normal file
@ -0,0 +1,63 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a Berkeley-specific configuration file for a specific
|
||||
# machine in the Computer Science Division at Berkeley, and should
|
||||
# not be used elsewhere. It is provided on the sendmail distribution
|
||||
# as a sample only.
|
||||
#
|
||||
# This file is for the backup CS Division mail server.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)huginn.cs.mc 8.6 (Berkeley) 8/25/95')
|
||||
OSTYPE(hpux9)dnl
|
||||
DOMAIN(CS.Berkeley.EDU)dnl
|
||||
MASQUERADE_AS(CS.Berkeley.EDU)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
||||
|
||||
LOCAL_CONFIG
|
||||
DDBerkeley.EDU
|
||||
|
||||
# hosts for which we accept and forward mail (must be in .Berkeley.EDU)
|
||||
CF CS
|
||||
FF/etc/sendmail.cw
|
||||
|
||||
LOCAL_RULE_0
|
||||
R< @ $=F . $D . > : $* $@ $>7 $2 @here:... -> ...
|
||||
R$* $=O $* < @ $=F . $D . > $@ $>7 $1 $2 $3 ...@here -> ...
|
||||
|
||||
R$* < @ $=F . $D . > $#local $: $1 use UDB
|
64
usr.sbin/sendmail/cf/cf/mail.cs.mc
Normal file
64
usr.sbin/sendmail/cf/cf/mail.cs.mc
Normal file
@ -0,0 +1,64 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a Berkeley-specific configuration file for a specific
|
||||
# machine in the Computer Science Division at Berkeley, and should
|
||||
# not be used elsewhere. It is provided on the sendmail distribution
|
||||
# as a sample only.
|
||||
#
|
||||
# This file is for the primary CS Division mail server.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)mail.cs.mc 8.9 (Berkeley) 8/25/95')
|
||||
OSTYPE(ultrix4)dnl
|
||||
DOMAIN(Berkeley.EDU)dnl
|
||||
MASQUERADE_AS(CS.Berkeley.EDU)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
||||
define(`confUSERDB_SPEC', ``/usr/local/lib/users.cs.db,/usr/local/lib/users.eecs.db'')dnl
|
||||
|
||||
LOCAL_CONFIG
|
||||
DDBerkeley.EDU
|
||||
|
||||
# hosts for which we accept and forward mail (must be in .Berkeley.EDU)
|
||||
CF CS
|
||||
FF/etc/sendmail.cw
|
||||
|
||||
LOCAL_RULE_0
|
||||
R< @ $=F . $D . > : $* $@ $>7 $2 @here:... -> ...
|
||||
R$* $=O $* < @ $=F . $D . > $@ $>7 $1 $2 $3 ...@here -> ...
|
||||
|
||||
R$* < @ $=F . $D . > $#local $: $1 use UDB
|
64
usr.sbin/sendmail/cf/cf/mail.eecs.mc
Normal file
64
usr.sbin/sendmail/cf/cf/mail.eecs.mc
Normal file
@ -0,0 +1,64 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a Berkeley-specific configuration file for a specific
|
||||
# machine in Electrical Engineering and Computer Sciences at Berkeley,
|
||||
# and should not be used elsewhere. It is provided on the sendmail
|
||||
# distribution as a sample only.
|
||||
#
|
||||
# This file is for the primary EECS mail server.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)mail.eecs.mc 8.9 (Berkeley) 8/25/95')
|
||||
OSTYPE(ultrix4)dnl
|
||||
DOMAIN(EECS.Berkeley.EDU)dnl
|
||||
MASQUERADE_AS(EECS.Berkeley.EDU)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
||||
define(`confUSERDB_SPEC', `/usr/local/lib/users.eecs.db,/usr/local/lib/users.cs.db,/usr/local/lib/users.coe.db')dnl
|
||||
|
||||
LOCAL_CONFIG
|
||||
DDBerkeley.EDU
|
||||
|
||||
# hosts for which we accept and forward mail (must be in .Berkeley.EDU)
|
||||
CF EECS
|
||||
FF/etc/sendmail.cw
|
||||
|
||||
LOCAL_RULE_0
|
||||
R< @ $=F . $D . > : $* $@ $>7 $2 @here:... -> ...
|
||||
R$* $=O $* < @ $=F . $D . > $@ $>7 $1 $2 $3 ...@here -> ...
|
||||
|
||||
R$* < @ $=F . $D . > $#local $: $1 use UDB
|
57
usr.sbin/sendmail/cf/cf/mailspool.cs.mc
Normal file
57
usr.sbin/sendmail/cf/cf/mailspool.cs.mc
Normal file
@ -0,0 +1,57 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a Berkeley-specific configuration file for a specific
|
||||
# machine in the Computer Science Division at Berkeley, and should
|
||||
# not be used elsewhere. It is provided on the sendmail distribution
|
||||
# as a sample only.
|
||||
#
|
||||
# This file is for our mail spool machine. For a while we were using
|
||||
# "root.machinename" instead of "root+machinename", so this is included
|
||||
# for back compatibility.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)mailspool.cs.mc 8.3 (Berkeley) 8/6/95')
|
||||
OSTYPE(sunos4.1)dnl
|
||||
DOMAIN(CS.Berkeley.EDU)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
||||
|
||||
LOCAL_CONFIG
|
||||
CDroot sys-custodian
|
||||
|
||||
LOCAL_RULE_3
|
||||
R$=D . $+ $1 + $2
|
62
usr.sbin/sendmail/cf/cf/python.cs.mc
Normal file
62
usr.sbin/sendmail/cf/cf/python.cs.mc
Normal file
@ -0,0 +1,62 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a Berkeley-specific configuration file for a specific
|
||||
# machine in the Computer Science Division at Berkeley, and should
|
||||
# not be used elsewhere. It is provided on the sendmail distribution
|
||||
# as a sample only.
|
||||
#
|
||||
# This file is for a home machine that wants to masquerade as an
|
||||
# on-campus machine. Additionally, all addresses without a hostname
|
||||
# will be forwarded to that machine.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)python.cs.mc 8.3 (Berkeley) 8/6/95')
|
||||
OSTYPE(bsd4.4)dnl
|
||||
DOMAIN(CS.Berkeley.EDU)dnl
|
||||
define(`LOCAL_RELAY', vangogh.CS.Berkeley.EDU)dnl
|
||||
MASQUERADE_AS(vangogh.CS.Berkeley.EDU)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
||||
|
||||
# accept mail sent to the domain head
|
||||
DDBostic.COM
|
||||
|
||||
LOCAL_RULE_0
|
||||
# accept mail sent to the domain head
|
||||
R< @ $D . > : $* $@ $>7 $1 @here:... -> ...
|
||||
R$* $=O $* < @ $D . > $@ $>7 $1 $2 $3 ...@here -> ...
|
||||
R$* < @ $D . > $#local $: $1 user@here -> user
|
50
usr.sbin/sendmail/cf/cf/s2k-osf1.mc
Normal file
50
usr.sbin/sendmail/cf/cf/s2k-osf1.mc
Normal file
@ -0,0 +1,50 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a Berkeley-specific configuration file for OSF/1.
|
||||
# It applies only the the Sequoia 2000 Project at Berkeley,
|
||||
# and should not be used elsewhere. It is provided on the sendmail
|
||||
# distribution as a sample only. To create your own configuration
|
||||
# file, create an appropriate domain file in ../domain, change the
|
||||
# `DOMAIN' macro below to reference that file, and copy the result
|
||||
# to a name of your own choosing.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)s2k-osf1.mc 8.3 (Berkeley) 8/6/95')
|
||||
OSTYPE(osf1)dnl
|
||||
DOMAIN(S2K.Berkeley.EDU)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
50
usr.sbin/sendmail/cf/cf/s2k-ultrix4.mc
Normal file
50
usr.sbin/sendmail/cf/cf/s2k-ultrix4.mc
Normal file
@ -0,0 +1,50 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a Berkeley-specific configuration file for Ultrix 4.x.
|
||||
# It applies only the the Sequoia 2000 Project at Berkeley,
|
||||
# and should not be used elsewhere. It is provided on the sendmail
|
||||
# distribution as a sample only. To create your own configuration
|
||||
# file, create an appropriate domain file in ../domain, change the
|
||||
# `DOMAIN' macro below to reference that file, and copy the result
|
||||
# to a name of your own choosing.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)s2k-ultrix4.mc 8.3 (Berkeley) 8/6/95')
|
||||
OSTYPE(ultrix4)dnl
|
||||
DOMAIN(S2K.Berkeley.EDU)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
53
usr.sbin/sendmail/cf/cf/tcpproto.mc
Normal file
53
usr.sbin/sendmail/cf/cf/tcpproto.mc
Normal file
@ -0,0 +1,53 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is the prototype file for a configuration that supports nothing
|
||||
# but basic SMTP connections via TCP.
|
||||
#
|
||||
# You MUST change the `OSTYPE' macro to specify the operating system
|
||||
# on which this will run; this will set the location of various
|
||||
# support files for your operating system environment. You MAY
|
||||
# create a domain file in ../domain and reference it by adding a
|
||||
# `DOMAIN' macro after the `OSTYPE' macro. I recommend that you
|
||||
# first copy this to another file name so that new sendmail releases
|
||||
# will not trash your changes.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)tcpproto.mc 8.4 (Berkeley) 8/6/95')
|
||||
OSTYPE(unknown)
|
||||
FEATURE(nouucp)
|
||||
MAILER(local)
|
||||
MAILER(smtp)
|
50
usr.sbin/sendmail/cf/cf/ucbarpa.mc
Normal file
50
usr.sbin/sendmail/cf/cf/ucbarpa.mc
Normal file
@ -0,0 +1,50 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This machine has been decommissioned at Berkeley, and hence should
|
||||
# not be considered to be tested. This file is provided as an example
|
||||
# only, of how you might set up a joint SMTP/UUCP configuration. At
|
||||
# this point I recommend using `FEATURE(mailertable)' instead of
|
||||
# `SITECONFIG'. See also ucbvax.mc.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)ucbarpa.mc 8.3 (Berkeley) 8/6/95')
|
||||
DOMAIN(CS.Berkeley.EDU)dnl
|
||||
OSTYPE(bsd4.4)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
||||
MAILER(uucp)dnl
|
||||
SITECONFIG(uucp.ucbarpa, ucbarpa, U)
|
111
usr.sbin/sendmail/cf/cf/ucbvax.mc
Normal file
111
usr.sbin/sendmail/cf/cf/ucbvax.mc
Normal file
@ -0,0 +1,111 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This machine has been decommissioned at Berkeley, and hence should
|
||||
# not be considered to be tested. This file is provided as an example
|
||||
# only, of how you might set up a fairly complex configuration.
|
||||
# Ucbvax was our main relay (both SMTP and UUCP) for many years.
|
||||
# At this point I recommend using `FEATURE(mailertable)' instead of
|
||||
# `SITECONFIG' for routing of UUCP within your domain.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)ucbvax.mc 8.5 (Berkeley) 8/25/95')
|
||||
OSTYPE(bsd4.3)
|
||||
DOMAIN(CS.Berkeley.EDU)
|
||||
MASQUERADE_AS(CS.Berkeley.EDU)
|
||||
MAILER(local)
|
||||
MAILER(smtp)
|
||||
MAILER(uucp)
|
||||
undefine(`UUCP_RELAY')dnl
|
||||
|
||||
LOCAL_CONFIG
|
||||
DDBerkeley.EDU
|
||||
|
||||
# names for which we act as a local forwarding agent
|
||||
CF CS
|
||||
FF/etc/sendmail.cw
|
||||
|
||||
# local UUCP connections, and our local uucp name
|
||||
SITECONFIG(uucp.ucbvax, ucbvax, U)
|
||||
|
||||
# remote UUCP connections, and the machine they are on
|
||||
SITECONFIG(uucp.ucbarpa, ucbarpa.Berkeley.EDU, W)
|
||||
|
||||
SITECONFIG(uucp.cogsci, cogsci.Berkeley.EDU, X)
|
||||
|
||||
LOCAL_RULE_3
|
||||
# map old UUCP names into Internet names
|
||||
UUCPSMTP(bellcore, bellcore.com)
|
||||
UUCPSMTP(decvax, decvax.dec.com)
|
||||
UUCPSMTP(decwrl, decwrl.dec.com)
|
||||
UUCPSMTP(hplabs, hplabs.hp.com)
|
||||
UUCPSMTP(lbl-csam, lbl-csam.arpa)
|
||||
UUCPSMTP(pur-ee, ecn.purdue.edu)
|
||||
UUCPSMTP(purdue, purdue.edu)
|
||||
UUCPSMTP(research, research.att.com)
|
||||
UUCPSMTP(sdcarl, sdcarl.ucsd.edu)
|
||||
UUCPSMTP(sdcsvax, sdcsvax.ucsd.edu)
|
||||
UUCPSMTP(ssyx, ssyx.ucsc.edu)
|
||||
UUCPSMTP(sun, sun.com)
|
||||
UUCPSMTP(ucdavis, ucdavis.ucdavis.edu)
|
||||
UUCPSMTP(ucivax, ics.uci.edu)
|
||||
UUCPSMTP(ucla-cs, cs.ucla.edu)
|
||||
UUCPSMTP(ucla-se, seas.ucla.edu)
|
||||
UUCPSMTP(ucsbcsl, ucsbcsl.ucsb.edu)
|
||||
UUCPSMTP(ucscc, c.ucsc.edu)
|
||||
UUCPSMTP(ucsd, ucsd.edu)
|
||||
UUCPSMTP(ucsfcgl, cgl.ucsf.edu)
|
||||
UUCPSMTP(unmvax, unmvax.cs.unm.edu)
|
||||
UUCPSMTP(uwvax, spool.cs.wisc.edu)
|
||||
|
||||
LOCAL_RULE_0
|
||||
|
||||
# make sure we handle the local domain as absolute
|
||||
R$* < @ $* $D > $* $: $1 < @ $2 $D . > $3
|
||||
|
||||
# handle names we forward for as though they were local, so we will use UDB
|
||||
R< @ $=F . $D . > : $* $@ $>7 $2 @here:... -> ...
|
||||
R< @ $D . > : $* $@ $>7 $1 @here:... -> ...
|
||||
R$* $=O $* < @ $=F . $D . > $@ $>7 $1 $2 $3 ...@here -> ...
|
||||
R$* $=O $* < @ $D . > $@ $>7 $1 $2 $3 ...@here -> ...
|
||||
|
||||
R$* < @ $=F . $D . > $#local $: $1 use UDB
|
||||
|
||||
# handle local UUCP connections in the Berkeley.EDU domain
|
||||
R$+<@cnmat.$D . > $#uucp$@cnmat$:$1
|
||||
R$+<@cnmat.CS.$D . > $#uucp$@cnmat$:$1
|
||||
R$+<@craig.$D . > $#uucp$@craig$:$1
|
||||
R$+<@craig.CS.$D . > $#uucp$@craig$:$1
|
53
usr.sbin/sendmail/cf/cf/uucpproto.mc
Normal file
53
usr.sbin/sendmail/cf/cf/uucpproto.mc
Normal file
@ -0,0 +1,53 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is the prototype for a configuration that only supports UUCP
|
||||
# and does not have DNS support at all.
|
||||
#
|
||||
# You MUST change the `OSTYPE' macro to specify the operating system
|
||||
# on which this will run; this will set the location of various
|
||||
# support files for your operating system environment. You MAY
|
||||
# create a domain file in ../domain and reference it by adding a
|
||||
# `DOMAIN' macro after the `OSTYPE' macro. I recommend that you
|
||||
# first copy this to another file name so that new sendmail releases
|
||||
# will not trash your changes.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)uucpproto.mc 8.5 (Berkeley) 8/6/95')
|
||||
OSTYPE(unknown)
|
||||
FEATURE(nodns)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(uucp)dnl
|
53
usr.sbin/sendmail/cf/cf/vangogh.cs.mc
Normal file
53
usr.sbin/sendmail/cf/cf/vangogh.cs.mc
Normal file
@ -0,0 +1,53 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This is a Berkeley-specific configuration file for a specific
|
||||
# machine in the Computer Science Division at Berkeley, and should
|
||||
# not be used elsewhere. It is provided on the sendmail distribution
|
||||
# as a sample only.
|
||||
#
|
||||
# This file is for the BSD development machine; it has some parameters
|
||||
# set up (to stress sendmail) and accepts mail for some other machines.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)vangogh.cs.mc 8.4 (Berkeley) 8/6/95')
|
||||
DOMAIN(CS.Berkeley.EDU)dnl
|
||||
OSTYPE(bsd4.4)dnl
|
||||
MAILER(local)dnl
|
||||
MAILER(smtp)dnl
|
||||
define(`MCI_CACHE_SIZE', 5)
|
||||
Cw okeeffe.CS.Berkeley.EDU
|
||||
Cw python.CS.Berkeley.EDU
|
45
usr.sbin/sendmail/cf/domain/Berkeley.EDU.m4
Normal file
45
usr.sbin/sendmail/cf/domain/Berkeley.EDU.m4
Normal file
@ -0,0 +1,45 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
divert(0)
|
||||
VERSIONID(`@(#)Berkeley.EDU.m4 8.9 (Berkeley) 10/5/95')
|
||||
DOMAIN(berkeley-only)dnl
|
||||
define(`BITNET_RELAY', `bitnet-relay.Berkeley.EDU')dnl
|
||||
define(`UUCP_RELAY', `uucp-relay.Berkeley.EDU')dnl
|
||||
define(`confFORWARD_PATH', `$z/.forward.$w:$z/.forward')dnl
|
||||
define(`confCW_FILE', `-o /etc/sendmail.cw')dnl
|
||||
define(`confDONT_INIT_GROUPS', True)dnl
|
||||
FEATURE(redirect)dnl
|
||||
FEATURE(use_cw_file)dnl
|
||||
FEATURE(stickyhost)dnl
|
40
usr.sbin/sendmail/cf/domain/CS.Berkeley.EDU.m4
Normal file
40
usr.sbin/sendmail/cf/domain/CS.Berkeley.EDU.m4
Normal file
@ -0,0 +1,40 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
divert(0)
|
||||
VERSIONID(`@(#)CS.Berkeley.EDU.m4 8.2 (Berkeley) 4/21/95')
|
||||
DOMAIN(Berkeley.EDU)dnl
|
||||
HACK(cssubdomain)dnl
|
||||
define(`confUSERDB_SPEC',
|
||||
`/usr/sww/share/lib/users.cs.db,/usr/sww/share/lib/users.eecs.db')dnl
|
38
usr.sbin/sendmail/cf/domain/EECS.Berkeley.EDU.m4
Normal file
38
usr.sbin/sendmail/cf/domain/EECS.Berkeley.EDU.m4
Normal file
@ -0,0 +1,38 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
divert(0)
|
||||
VERSIONID(`@(#)EECS.Berkeley.EDU.m4 8.2 (Berkeley) 4/21/95')
|
||||
DOMAIN(Berkeley.EDU)dnl
|
||||
MASQUERADE_AS(EECS.Berkeley.EDU)dnl
|
38
usr.sbin/sendmail/cf/domain/S2K.Berkeley.EDU.m4
Normal file
38
usr.sbin/sendmail/cf/domain/S2K.Berkeley.EDU.m4
Normal file
@ -0,0 +1,38 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
divert(0)
|
||||
VERSIONID(`@(#)S2K.Berkeley.EDU.m4 8.2 (Berkeley) 4/21/95')
|
||||
DOMAIN(CS.Berkeley.EDU)dnl
|
||||
MASQUERADE_AS(postgres.Berkeley.EDU)dnl
|
40
usr.sbin/sendmail/cf/domain/berkeley-only.m4
Normal file
40
usr.sbin/sendmail/cf/domain/berkeley-only.m4
Normal file
@ -0,0 +1,40 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
divert(0)
|
||||
VERSIONID(`@(#)unspecified-domain.m4 8.2 (Berkeley) 4/21/95')
|
||||
errprint(`*** ERROR: You are trying to use the Berkeley sample configuration')
|
||||
errprint(` files outside of the Computer Science Division at Berkeley.')
|
||||
errprint(` The configuration (.mc) files must be customized to reference')
|
||||
errprint(` domain files appropriate for your environment.')
|
48
usr.sbin/sendmail/cf/domain/generic.m4
Normal file
48
usr.sbin/sendmail/cf/domain/generic.m4
Normal file
@ -0,0 +1,48 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# The following is a generic domain file. You should be able to
|
||||
# use it anywhere. If you want to customize it, copy it to a file
|
||||
# named with your domain and make the edits; then, copy the appropriate
|
||||
# .mc files and change `DOMAIN(generic)' to reference your updated domain
|
||||
# files.
|
||||
#
|
||||
divert(0)
|
||||
VERSIONID(`@(#)generic.m4 8.2 (Berkeley) 4/21/95')
|
||||
define(`confFORWARD_PATH', `$z/.forward.$w:$z/.forward')dnl
|
||||
define(`confCW_FILE', `-o /etc/sendmail.cw')dnl
|
||||
FEATURE(redirect)dnl
|
||||
FEATURE(use_cw_file)dnl
|
58
usr.sbin/sendmail/cf/feature/bestmx_is_local.m4
Normal file
58
usr.sbin/sendmail/cf/feature/bestmx_is_local.m4
Normal file
@ -0,0 +1,58 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)bestmx_is_local.m4 8.2 (Berkeley) 10/29/95')
|
||||
divert(-1)
|
||||
|
||||
LOCAL_CONFIG
|
||||
Kbestmx bestmx
|
||||
|
||||
LOCAL_NET_CONFIG
|
||||
|
||||
# If we are the best MX for a site, then we want to accept
|
||||
# its mail as local. We assume we've already weeded out mail to
|
||||
# UUCP sites which are connected to us, which should also have
|
||||
# listed us as their best MX.
|
||||
#
|
||||
# Warning: this may generate a lot of extra DNS traffic -- a
|
||||
# lower cost method is to list all the expected best MX hosts
|
||||
# in $=w. This should be fine (and easier to administer) for
|
||||
# low to medium traffic hosts.
|
||||
|
||||
R$* < @ $* > $* $: $1 < @ $2 @@ $(bestmx $2 $) > $3
|
||||
R$* $=O $* < @ $* @@ $=w . > $* $@ $>97 $1 $2 $3
|
||||
R$* < @ $* @@ $=w . > $* $#local $: $1
|
||||
R$* < @ $* @@ $* > $* $: $1 < @ $2 > $4
|
44
usr.sbin/sendmail/cf/feature/local_procmail.m4
Normal file
44
usr.sbin/sendmail/cf/feature/local_procmail.m4
Normal file
@ -0,0 +1,44 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1994 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)local_procmail.m4 8.3 (Berkeley) 10/29/95')
|
||||
divert(-1)
|
||||
|
||||
define(`PROCMAIL_PATH',
|
||||
ifelse(_ARG_, `', `/usr/local/bin/procmail', `_ARG_'))
|
||||
define(`LOCAL_MAILER_FLAGS', `SPfhn')
|
||||
define(`LOCAL_MAILER_PATH', PROCMAIL_PATH)
|
||||
define(`LOCAL_MAILER_ARGS', `procmail -Y -a $h -d $u')
|
40
usr.sbin/sendmail/cf/feature/masquerade_envelope.m4
Normal file
40
usr.sbin/sendmail/cf/feature/masquerade_envelope.m4
Normal file
@ -0,0 +1,40 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)masquerade_envelope.m4 8.1 (Berkeley) 7/9/95')
|
||||
divert(-1)
|
||||
|
||||
define(`_MASQUERADE_ENVELOPE_', 1)
|
42
usr.sbin/sendmail/cf/feature/notsticky.m4
Normal file
42
usr.sbin/sendmail/cf/feature/notsticky.m4
Normal file
@ -0,0 +1,42 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)notsticky.m4 8.3 (Berkeley) 5/29/95')
|
||||
#
|
||||
# This is now the default. Use ``FEATURE(stickyhost)'' if you want
|
||||
# the old default behaviour.
|
||||
#
|
||||
divert(-1)
|
71
usr.sbin/sendmail/cf/feature/nullclient.m4
Normal file
71
usr.sbin/sendmail/cf/feature/nullclient.m4
Normal file
@ -0,0 +1,71 @@
|
||||
PUSHDIVERT(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
ifdef(`SMTP_MAILER_FLAGS',, `define(`SMTP_MAILER_FLAGS', `')')
|
||||
define(_NULL_CLIENT_ONLY_, `1')
|
||||
ifelse(_ARG_, `', `errprint(`Feature "nullclient" requires argument')',
|
||||
`define(`MAIL_HUB', _ARG_)')
|
||||
POPDIVERT
|
||||
|
||||
#
|
||||
# This is used only for relaying mail from a client to a hub when
|
||||
# that client does absolutely nothing else -- i.e., it is a "null
|
||||
# mailer". In this sense, it acts like the "R" option in Sun
|
||||
# sendmail.
|
||||
#
|
||||
|
||||
VERSIONID(`@(#)nullclient.m4 8.6 (Berkeley) 6/29/95')
|
||||
|
||||
PUSHDIVERT(6)
|
||||
# hub host (to which all mail is sent)
|
||||
DH`'ifdef(`MAIL_HUB', MAIL_HUB,
|
||||
`errprint(`MAIL_HUB not defined for nullclient feature')')
|
||||
ifdef(`MASQUERADE_NAME',, `define(`MASQUERADE_NAME', MAIL_HUB)')dnl
|
||||
|
||||
# route-addr separators
|
||||
C: : ,
|
||||
POPDIVERT
|
||||
PUSHDIVERT(7)
|
||||
############################################
|
||||
### Null Client Mailer specification ###
|
||||
############################################
|
||||
|
||||
ifdef(`confRELAY_MAILER',,
|
||||
`define(`confRELAY_MAILER', `nullclient')')dnl
|
||||
ifdef(`confFROM_HEADER',,
|
||||
`define(`confFROM_HEADER', <$g>)')dnl
|
||||
|
||||
Mnullclient, P=[IPC], F=CONCAT(mDFMuXa, SMTP_MAILER_FLAGS),ifdef(`SMTP_MAILER_MAX', ` M=SMTP_MAILER_MAX,')
|
||||
A=IPC $h
|
||||
POPDIVERT
|
50
usr.sbin/sendmail/cf/feature/redirect.m4
Normal file
50
usr.sbin/sendmail/cf/feature/redirect.m4
Normal file
@ -0,0 +1,50 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)redirect.m4 8.4 (Berkeley) 6/25/95')
|
||||
divert(-1)
|
||||
|
||||
|
||||
PUSHDIVERT(3)
|
||||
# addresses sent to foo@host.REDIRECT will give a 551 error code
|
||||
R$* < @ $+ .REDIRECT. > $: $1 < @ $2 . REDIRECT . > < ${opMode} >
|
||||
R$* < @ $+ .REDIRECT. > <i> $: $1 < @ $2 . REDIRECT. >
|
||||
R$* < @ $+ .REDIRECT. > < $- > $# error $@ 5.1.1 $: "551 User not local; please try " <$1@$2>
|
||||
POPDIVERT
|
||||
|
||||
PUSHDIVERT(6)
|
||||
CPREDIRECT
|
||||
POPDIVERT
|
42
usr.sbin/sendmail/cf/feature/smrsh.m4
Normal file
42
usr.sbin/sendmail/cf/feature/smrsh.m4
Normal file
@ -0,0 +1,42 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)smrsh.m4 8.2 (Berkeley) 11/11/95')
|
||||
divert(-1)
|
||||
|
||||
ifdef(`_MAILER_local_',
|
||||
`errprint(`*** FEATURE(smrsh) must occur before MAILER(local)')')dnl
|
||||
define(`LOCAL_SHELL_PATH', ifelse(_ARG_, `', `/usr/local/etc/smrsh', _ARG_))
|
40
usr.sbin/sendmail/cf/feature/stickyhost.m4
Normal file
40
usr.sbin/sendmail/cf/feature/stickyhost.m4
Normal file
@ -0,0 +1,40 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)stickyhost.m4 8.1 (Berkeley) 11/12/94')
|
||||
divert(-1)
|
||||
|
||||
define(`_STICKY_LOCAL_DOMAIN_', 1)
|
46
usr.sbin/sendmail/cf/feature/use_ct_file.m4
Normal file
46
usr.sbin/sendmail/cf/feature/use_ct_file.m4
Normal file
@ -0,0 +1,46 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)use_ct_file.m4 8.1 (Berkeley) 9/17/95')
|
||||
divert(-1)
|
||||
|
||||
# if defined, the sendmail.cf will read the /etc/sendmail.ct file
|
||||
# to find the names of trusted users. There should only be a few
|
||||
# of these, and normally this is done directly in the .cf file.
|
||||
|
||||
define(`_USE_CT_FILE_', `')
|
||||
|
||||
divert(0)
|
50
usr.sbin/sendmail/cf/m4/cf.m4
Normal file
50
usr.sbin/sendmail/cf/m4/cf.m4
Normal file
@ -0,0 +1,50 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983, 1995 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# This file is included so that multiple includes of cf.m4 will work
|
||||
#
|
||||
|
||||
# figure out where the CF files live
|
||||
ifdef(`_CF_DIR_', `',
|
||||
`ifelse(__file__, `__file__',
|
||||
`define(`_CF_DIR_', `../')',
|
||||
`define(`_CF_DIR_',
|
||||
substr(__file__, 0, eval(len(__file__) - 8)))')')
|
||||
|
||||
divert(0)dnl
|
||||
ifdef(`OSTYPE', `dnl',
|
||||
`include(_CF_DIR_`'m4/cfhead.m4)dnl
|
||||
VERSIONID(`@(#)cf.m4 8.24 (Berkeley) 8/16/95')')
|
147
usr.sbin/sendmail/cf/m4/cfhead.m4
Normal file
147
usr.sbin/sendmail/cf/m4/cfhead.m4
Normal file
@ -0,0 +1,147 @@
|
||||
#
|
||||
# Copyright (c) 1983, 1995 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
######################################################################
|
||||
######################################################################
|
||||
#####
|
||||
##### SENDMAIL CONFIGURATION FILE
|
||||
#####
|
||||
define(`TEMPFILE', maketemp(/tmp/cfXXXXXX))dnl
|
||||
syscmd(sh _CF_DIR_`'sh/makeinfo.sh _CF_DIR_ > TEMPFILE)dnl
|
||||
include(TEMPFILE)dnl
|
||||
syscmd(rm -f TEMPFILE)dnl
|
||||
#####
|
||||
######################################################################
|
||||
######################################################################
|
||||
|
||||
divert(-1)
|
||||
|
||||
changecom()
|
||||
undefine(`format')
|
||||
undefine(`hpux')
|
||||
ifdef(`pushdef', `',
|
||||
`errprint(`You need a newer version of M4, at least as new as
|
||||
System V or GNU')
|
||||
include(NoSuchFile)')
|
||||
define(`PUSHDIVERT', `pushdef(`__D__', divnum)divert($1)')
|
||||
define(`POPDIVERT', `divert(__D__)popdef(`__D__')')
|
||||
define(`OSTYPE',
|
||||
`PUSHDIVERT(-1)
|
||||
ifdef(`__OSTYPE__', `errprint(`duplicate OSTYPE'($1))')
|
||||
define(`__OSTYPE__', $1)
|
||||
define(`_ARG_', $2)
|
||||
include(_CF_DIR_`'ostype/$1.m4)POPDIVERT`'')
|
||||
define(`MAILER',
|
||||
`ifdef(`_MAILER_$1_', `dnl`'',
|
||||
`define(`_MAILER_$1_', `')PUSHDIVERT(7)include(_CF_DIR_`'mailer/$1.m4)POPDIVERT`'')')
|
||||
define(`DOMAIN', `PUSHDIVERT(-1)define(`_ARG_', $2)include(_CF_DIR_`'domain/$1.m4)POPDIVERT`'')
|
||||
define(`FEATURE', `PUSHDIVERT(-1)define(`_ARG_', $2)include(_CF_DIR_`'feature/$1.m4)POPDIVERT`'')
|
||||
define(`HACK', `PUSHDIVERT(-1)define(`_ARG_', $2)include(_CF_DIR_`'hack/$1.m4)POPDIVERT`'')
|
||||
define(`VERSIONID', ``##### $1 #####'')
|
||||
define(`LOCAL_RULE_0', `divert(3)')
|
||||
define(`LOCAL_RULE_1',
|
||||
`divert(9)dnl
|
||||
#######################################
|
||||
### Ruleset 1 -- Sender Rewriting ###
|
||||
#######################################
|
||||
|
||||
S1
|
||||
')
|
||||
define(`LOCAL_RULE_2',
|
||||
`divert(9)dnl
|
||||
##########################################
|
||||
### Ruleset 2 -- Recipient Rewriting ###
|
||||
##########################################
|
||||
|
||||
S2
|
||||
')
|
||||
define(`LOCAL_RULE_3', `divert(2)')
|
||||
define(`LOCAL_CONFIG', `divert(6)')
|
||||
define(`LOCAL_NET_CONFIG', `define(`_LOCAL_RULES_', 1)divert(1)')
|
||||
define(`UUCPSMTP', `R DOL(*) < @ $1 .UUCP > DOL(*) DOL(1) < @ $2 > DOL(2)')
|
||||
define(`CONCAT', `$1$2$3$4$5$6$7')
|
||||
define(`DOL', ``$'$1')
|
||||
define(`SITECONFIG',
|
||||
`CONCAT(D, $3, $2)
|
||||
define(`_CLASS_$3_', `')dnl
|
||||
ifelse($3, U, Cw$2 $2.UUCP, `dnl')
|
||||
define(`SITE', `ifelse(CONCAT($'2`, $3), SU,
|
||||
CONCAT(CY, $'1`),
|
||||
CONCAT(C, $3, $'1`))')
|
||||
sinclude(_CF_DIR_`'siteconfig/$1.m4)')
|
||||
define(`EXPOSED_USER', `PUSHDIVERT(5)CE$1
|
||||
POPDIVERT`'dnl')
|
||||
define(`LOCAL_USER', `PUSHDIVERT(5)CL$1
|
||||
POPDIVERT`'dnl')
|
||||
define(`MASQUERADE_AS', `define(`MASQUERADE_NAME', $1)')
|
||||
define(`MASQUERADE_DOMAIN', `PUSHDIVERT(5)CM$1
|
||||
POPDIVERT`'dnl')
|
||||
define(`MASQUERADE_DOMAIN_FILE', `PUSHDIVERT(5)FM$1
|
||||
POPDIVERT`'dnl')
|
||||
define(`_OPTINS', `ifdef(`$1', `$2$1$3')')
|
||||
|
||||
m4wrap(`include(_CF_DIR_`m4/proto.m4')')
|
||||
|
||||
# set up default values for options
|
||||
define(`confMAILER_NAME', ``MAILER-DAEMON'')
|
||||
define(`confFROM_LINE', `From $g $d')
|
||||
define(`confOPERATORS', `.:%@!^/[]+')
|
||||
define(`confSMTP_LOGIN_MSG', `$j Sendmail $v/$Z; $b')
|
||||
define(`confRECEIVED_HEADER', `$?sfrom $s $.$?_($?s$|from $.$_) $.by $j ($v/$Z)$?r with $r$. id $i$?u for $u$.; $b')
|
||||
define(`confSEVEN_BIT_INPUT', `False')
|
||||
define(`confEIGHT_BIT_HANDLING', `pass8')
|
||||
define(`confALIAS_WAIT', `10')
|
||||
define(`confMIN_FREE_BLOCKS', `100')
|
||||
define(`confBLANK_SUB', `.')
|
||||
define(`confCON_EXPENSIVE', `False')
|
||||
define(`confDELIVERY_MODE', `background')
|
||||
define(`confTEMP_FILE_MODE', `0600')
|
||||
define(`confMCI_CACHE_SIZE', `2')
|
||||
define(`confMCI_CACHE_TIMEOUT', `5m')
|
||||
define(`confUSE_ERRORS_TO', `False')
|
||||
define(`confLOG_LEVEL', `9')
|
||||
define(`confCHECK_ALIASES', `False')
|
||||
define(`confOLD_STYLE_HEADERS', `True')
|
||||
define(`confPRIVACY_FLAGS', `authwarnings')
|
||||
define(`confSAFE_QUEUE', `True')
|
||||
define(`confTO_QUEUERETURN', `5d')
|
||||
define(`confTO_QUEUEWARN', `4h')
|
||||
define(`confTIME_ZONE', `USE_SYSTEM')
|
||||
define(`confDEF_USER_ID', `1:1')
|
||||
define(`confCW_FILE', `/etc/sendmail.cw')
|
||||
define(`confMIME_FORMAT_ERRORS', `True')
|
||||
define(`confFORWARD_PATH', `$z/.forward.$w:$z/.forward')
|
||||
|
||||
divert(0)dnl
|
||||
VERSIONID(`@(#)cfhead.m4 8.3 (Berkeley) 9/15/95')
|
129
usr.sbin/sendmail/cf/m4/nullrelay.m4
Normal file
129
usr.sbin/sendmail/cf/m4/nullrelay.m4
Normal file
@ -0,0 +1,129 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983, 1995 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
divert(0)
|
||||
|
||||
VERSIONID(`@(#)nullrelay.m4 8.10 (Berkeley) 9/29/95')
|
||||
|
||||
#
|
||||
# This configuration applies only to relay-only hosts. They send
|
||||
# all mail to a hub without consideration of the address syntax
|
||||
# or semantics, except for adding the hub qualification to the
|
||||
# addresses.
|
||||
#
|
||||
# This is based on a prototype done by Bryan Costales of ICSI.
|
||||
#
|
||||
|
||||
######################################################################
|
||||
######################################################################
|
||||
#####
|
||||
##### REWRITING RULES
|
||||
#####
|
||||
######################################################################
|
||||
######################################################################
|
||||
|
||||
###########################################
|
||||
### Rulset 3 -- Name Canonicalization ###
|
||||
###########################################
|
||||
S3
|
||||
|
||||
# handle null input
|
||||
R$@ $@ <@>
|
||||
|
||||
# strip group: syntax (not inside angle brackets!) and trailing semicolon
|
||||
R$* $: $1 <@> mark addresses
|
||||
R$* < $* > $* <@> $: $1 < $2 > $3 unmark <addr>
|
||||
R$* :: $* <@> $: $1 :: $2 unmark node::addr
|
||||
R:`include': $* <@> $: :`include': $1 unmark :`include':...
|
||||
R$* : $* <@> $: $2 strip colon if marked
|
||||
R$* <@> $: $1 unmark
|
||||
R$* ; $: $1 strip trailing semi
|
||||
|
||||
# null input now results from list:; syntax
|
||||
R$@ $@ :; <@>
|
||||
|
||||
# basic textual canonicalization -- note RFC733 heuristic here
|
||||
R$*<$*>$*<$*>$* $2$3<$4>$5 strip multiple <> <>
|
||||
R$*<$*<$+>$*>$* <$3>$5 2-level <> nesting
|
||||
R$*<>$* $@ <@> MAIL FROM:<> case
|
||||
R$*<$+>$* $2 basic RFC821/822 parsing
|
||||
|
||||
ifdef(`_NO_CANONIFY_', `dnl',
|
||||
`# eliminate local host if present
|
||||
R@ $=w $=: $+ $@ @ $M $2 $3 @thishost ...
|
||||
R@ $+ $@ @ $1 @somewhere ...
|
||||
|
||||
R$+ @ $=w $@ $1 @ $M ...@thishost
|
||||
R$+ @ $+ $@ $1 @ $2 ...@somewhere
|
||||
|
||||
R$=w ! $+ $@ $2 @ $M thishost!...
|
||||
R$+ ! $+ $@ $1 ! $2 @ $M somewhere ! ...
|
||||
|
||||
R$+ % $=w $@ $1 @ $M ...%thishost
|
||||
R$+ % $+ $@ $1 @ $2 ...%somewhere
|
||||
|
||||
R$+ $@ $1 @ $M unadorned user')
|
||||
|
||||
|
||||
######################################
|
||||
### Ruleset 0 -- Parse Address ###
|
||||
######################################
|
||||
|
||||
S0
|
||||
|
||||
R$*:;<@> $#error $@ USAGE $: "list:; syntax illegal for recipient addresses"
|
||||
|
||||
# pass everything else to a relay host
|
||||
R$* $#_RELAY_ $@ $H $: $1
|
||||
|
||||
|
||||
##################################################
|
||||
### Ruleset 4 -- Final Output Post-rewriting ###
|
||||
##################################################
|
||||
S4
|
||||
|
||||
R$* <@> $@ handle <> and list:;
|
||||
|
||||
# strip trailing dot off before passing to nullclient relay
|
||||
R$* @ $+ . $1 @ $2
|
||||
|
||||
#
|
||||
######################################################################
|
||||
######################################################################
|
||||
#####
|
||||
`##### MAILER DEFINITIONS'
|
||||
#####
|
||||
######################################################################
|
||||
######################################################################
|
||||
undivert(7)dnl
|
818
usr.sbin/sendmail/cf/m4/proto.m4
Normal file
818
usr.sbin/sendmail/cf/m4/proto.m4
Normal file
@ -0,0 +1,818 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983, 1995 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
divert(0)
|
||||
|
||||
VERSIONID(`@(#)proto.m4 8.99 (Berkeley) 11/18/95')
|
||||
|
||||
MAILER(local)dnl
|
||||
|
||||
# level 6 config file format
|
||||
V6/Berkeley
|
||||
divert(-1)
|
||||
|
||||
# do some sanity checking
|
||||
ifdef(`__OSTYPE__',,
|
||||
`errprint(`*** ERROR: No system type defined (use OSTYPE macro)')')
|
||||
|
||||
# pick our default mailers
|
||||
ifdef(`confSMTP_MAILER',, `define(`confSMTP_MAILER', `smtp')')
|
||||
ifdef(`confLOCAL_MAILER',, `define(`confLOCAL_MAILER', `local')')
|
||||
ifdef(`confRELAY_MAILER',,
|
||||
`define(`confRELAY_MAILER',
|
||||
`ifdef(`_MAILER_smtp_', `relay',
|
||||
`ifdef(`_MAILER_uucp', `uucp-new', `unknown')')')')
|
||||
ifdef(`confUUCP_MAILER',, `define(`confUUCP_MAILER', `uucp-old')')
|
||||
define(`_SMTP_', `confSMTP_MAILER')dnl for readability only
|
||||
define(`_LOCAL_', `confLOCAL_MAILER')dnl for readability only
|
||||
define(`_RELAY_', `confRELAY_MAILER')dnl for readability only
|
||||
define(`_UUCP_', `confUUCP_MAILER')dnl for readability only
|
||||
|
||||
# back compatibility with old config files
|
||||
ifdef(`confDEF_GROUP_ID',
|
||||
`errprint(`*** confDEF_GROUP_ID is obsolete.')
|
||||
errprint(` Use confDEF_USER_ID with a colon in the value instead.')')
|
||||
ifdef(`confREAD_TIMEOUT',
|
||||
`errprint(`*** confREAD_TIMEOUT is obsolete.')
|
||||
errprint(` Use individual confTO_<timeout> parameters instead.')')
|
||||
ifdef(`confMESSAGE_TIMEOUT',
|
||||
`define(`_ARG_', index(confMESSAGE_TIMEOUT, /))
|
||||
ifelse(_ARG_, -1,
|
||||
`define(`confTO_QUEUERETURN', confMESSAGE_TIMEOUT)',
|
||||
`define(`confTO_QUEUERETURN',
|
||||
substr(confMESSAGE_TIMEOUT, 0, _ARG_))
|
||||
define(`confTO_QUEUEWARN',
|
||||
substr(confMESSAGE_TIMEOUT, eval(_ARG_+1)))')')
|
||||
ifdef(`confMIN_FREE_BLOCKS', `ifelse(index(confMIN_FREE_BLOCKS, /), -1,,
|
||||
`errprint(`*** compound confMIN_FREE_BLOCKS is obsolete.')
|
||||
errprint(` Use confMAX_MESSAGE_SIZE for the second part of the value.')')')
|
||||
|
||||
# clean option definitions below....
|
||||
define(`_OPTION', `ifdef(`$2', `O $1=$2', `#O $1`'ifelse($3, `',, `=$3')')')dnl
|
||||
|
||||
divert(0)dnl
|
||||
|
||||
##################
|
||||
# local info #
|
||||
##################
|
||||
|
||||
Cwlocalhost
|
||||
ifdef(`USE_CW_FILE',
|
||||
`# file containing names of hosts for which we receive email
|
||||
Fw`'confCW_FILE',
|
||||
`dnl')
|
||||
|
||||
# my official domain name
|
||||
# ... define this only if sendmail cannot automatically determine your domain
|
||||
ifdef(`confDOMAIN_NAME', `Dj`'confDOMAIN_NAME', `#Dj$w.Foo.COM')
|
||||
|
||||
ifdef(`_NULL_CLIENT_ONLY_', `divert(-1)')dnl
|
||||
|
||||
CP.
|
||||
|
||||
ifdef(`UUCP_RELAY',
|
||||
`# UUCP relay host
|
||||
DY`'UUCP_RELAY
|
||||
CPUUCP
|
||||
|
||||
')dnl
|
||||
ifdef(`BITNET_RELAY',
|
||||
`# BITNET relay host
|
||||
DB`'BITNET_RELAY
|
||||
CPBITNET
|
||||
|
||||
')dnl
|
||||
ifdef(`DECNET_RELAY',
|
||||
`define(`_USE_DECNET_SYNTAX_', 1)dnl
|
||||
# DECnet relay host
|
||||
DC`'DECNET_RELAY
|
||||
CPDECNET
|
||||
|
||||
')dnl
|
||||
ifdef(`FAX_RELAY',
|
||||
`# FAX relay host
|
||||
DF`'FAX_RELAY
|
||||
CPFAX
|
||||
|
||||
')dnl
|
||||
# "Smart" relay host (may be null)
|
||||
DS`'ifdef(`SMART_HOST', SMART_HOST)
|
||||
|
||||
# place to which unknown users should be forwarded
|
||||
ifdef(`LUSER_RELAY', `', `#')dnl
|
||||
Kuser user -m -a<>
|
||||
ifdef(`LUSER_RELAY',
|
||||
`DL`'LUSER_RELAY',
|
||||
`#DLname_of_luser_relay')
|
||||
|
||||
# operators that cannot be in local usernames (i.e., network indicators)
|
||||
CO @ % ifdef(`_NO_UUCP_', `', `!')
|
||||
|
||||
# a class with just dot (for identifying canonical names)
|
||||
C..
|
||||
|
||||
# Mailer table (overriding domains)
|
||||
ifdef(`MAILER_TABLE',
|
||||
`Kmailertable MAILER_TABLE',
|
||||
`#Kmailertable dbm /etc/mailertable')
|
||||
|
||||
# Domain table (adding domains)
|
||||
ifdef(`DOMAIN_TABLE',
|
||||
`Kdomaintable DOMAIN_TABLE',
|
||||
`#Kdomaintable dbm /etc/domaintable')
|
||||
|
||||
# who I send unqualified names to (null means deliver locally)
|
||||
DR`'ifdef(`LOCAL_RELAY', LOCAL_RELAY)
|
||||
|
||||
# who gets all local email traffic ($R has precedence for unqualified names)
|
||||
DH`'ifdef(`MAIL_HUB', MAIL_HUB)
|
||||
|
||||
# class L: names that should be delivered locally, even if we have a relay
|
||||
# class E: names that should be exposed as from this host, even if we masquerade
|
||||
# class M: domains that should be converted to $M
|
||||
#CL root
|
||||
CE root
|
||||
undivert(5)dnl
|
||||
|
||||
# dequoting map
|
||||
Kdequote dequote
|
||||
|
||||
divert(0)dnl # end of nullclient diversion
|
||||
# who I masquerade as (null for no masquerading) (see also $=M)
|
||||
DM`'ifdef(`MASQUERADE_NAME', MASQUERADE_NAME)
|
||||
|
||||
# my name for error messages
|
||||
ifdef(`confMAILER_NAME', `Dn`'confMAILER_NAME', `#DnMAILER-DAEMON')
|
||||
|
||||
undivert(6)dnl
|
||||
include(_CF_DIR_`m4/version.m4')
|
||||
|
||||
###############
|
||||
# Options #
|
||||
###############
|
||||
|
||||
# strip message body to 7 bits on input?
|
||||
_OPTION(SevenBitInput, `confSEVEN_BIT_INPUT')
|
||||
|
||||
# 8-bit data handling
|
||||
_OPTION(EightBitMode, `confEIGHT_BIT_HANDLING', adaptive)
|
||||
|
||||
ifdef(`_NULL_CLIENT_ONLY_', `dnl', `
|
||||
# wait for alias file rebuild (default units: minutes)
|
||||
_OPTION(AliasWait, `confALIAS_WAIT', 5m)
|
||||
|
||||
# location of alias file
|
||||
O AliasFile=ifdef(`ALIAS_FILE', `ALIAS_FILE', /etc/aliases)
|
||||
')
|
||||
# minimum number of free blocks on filesystem
|
||||
_OPTION(MinFreeBlocks, `confMIN_FREE_BLOCKS', 100)
|
||||
|
||||
# maximum message size
|
||||
_OPTION(MaxMessageSize, `confMAX_MESSAGE_SIZE', 1000000)
|
||||
|
||||
# substitution for space (blank) characters
|
||||
_OPTION(BlankSub, `confBLANK_SUB', _)
|
||||
|
||||
# avoid connecting to "expensive" mailers on initial submission?
|
||||
_OPTION(HoldExpensive, `confCON_EXPENSIVE')
|
||||
|
||||
# checkpoint queue runs after every N successful deliveries
|
||||
_OPTION(CheckpointInterval, `confCHECKPOINT_INTERVAL', 10)
|
||||
|
||||
# default delivery mode
|
||||
_OPTION(DeliveryMode, `confDELIVERY_MODE', background)
|
||||
|
||||
# automatically rebuild the alias database?
|
||||
_OPTION(AutoRebuildAliases, `confAUTO_REBUILD')
|
||||
|
||||
# error message header/file
|
||||
_OPTION(ErrorHeader, `confERROR_MESSAGE', /etc/sendmail.oE)
|
||||
|
||||
# error mode
|
||||
_OPTION(ErrorMode, `confERROR_MODE', print)
|
||||
|
||||
# save Unix-style "From_" lines at top of header?
|
||||
_OPTION(SaveFromLine, `confSAVE_FROM_LINES')
|
||||
|
||||
# temporary file mode
|
||||
_OPTION(TempFileMode, `confTEMP_FILE_MODE', 0600)
|
||||
|
||||
# match recipients against GECOS field?
|
||||
_OPTION(MatchGECOS, `confMATCH_GECOS')
|
||||
|
||||
# maximum hop count
|
||||
_OPTION(MaxHopCount, `confMAX_HOP', 17)
|
||||
|
||||
# location of help file
|
||||
O HelpFile=ifdef(`HELP_FILE', HELP_FILE, /usr/lib/sendmail.hf)
|
||||
|
||||
# ignore dots as terminators in incoming messages?
|
||||
_OPTION(IgnoreDots, `confIGNORE_DOTS')
|
||||
|
||||
# name resolver options
|
||||
_OPTION(ResolverOptions, `confBIND_OPTS', +AAONLY)
|
||||
|
||||
# deliver MIME-encapsulated error messages?
|
||||
_OPTION(SendMimeErrors, `confMIME_FORMAT_ERRORS')
|
||||
|
||||
# Forward file search path
|
||||
_OPTION(ForwardPath, `confFORWARD_PATH', /var/forward/$u:$z/.forward.$w:$z/.forward)
|
||||
|
||||
# open connection cache size
|
||||
_OPTION(ConnectionCacheSize, `confMCI_CACHE_SIZE', 2)
|
||||
|
||||
# open connection cache timeout
|
||||
_OPTION(ConnectionCacheTimeout, `confMCI_CACHE_TIMEOUT', 5m)
|
||||
|
||||
# use Errors-To: header?
|
||||
_OPTION(UseErrorsTo, `confUSE_ERRORS_TO')
|
||||
|
||||
# log level
|
||||
_OPTION(LogLevel, `confLOG_LEVEL', 10)
|
||||
|
||||
# send to me too, even in an alias expansion?
|
||||
_OPTION(MeToo, `confME_TOO')
|
||||
|
||||
# verify RHS in newaliases?
|
||||
_OPTION(CheckAliases, `confCHECK_ALIASES')
|
||||
|
||||
# default messages to old style headers if no special punctuation?
|
||||
_OPTION(OldStyleHeaders, `confOLD_STYLE_HEADERS')
|
||||
|
||||
# SMTP daemon options
|
||||
_OPTION(DaemonPortOptions, `confDAEMON_OPTIONS', Port=esmtp)
|
||||
|
||||
# privacy flags
|
||||
_OPTION(PrivacyOptions, `confPRIVACY_FLAGS', authwarnings)
|
||||
|
||||
# who (if anyone) should get extra copies of error messages
|
||||
_OPTION(PostMasterCopy, `confCOPY_ERRORS_TO', Postmaster)
|
||||
|
||||
# slope of queue-only function
|
||||
_OPTION(QueueFactor, `confQUEUE_FACTOR', 600000)
|
||||
|
||||
# queue directory
|
||||
O QueueDirectory=ifdef(`QUEUE_DIR', QUEUE_DIR, /var/spool/mqueue)
|
||||
|
||||
# timeouts (many of these)
|
||||
_OPTION(Timeout.initial, `confTO_INITIAL', 5m)
|
||||
_OPTION(Timeout.helo, `confTO_HELO', 5m)
|
||||
_OPTION(Timeout.mail, `confTO_MAIL', 10m)
|
||||
_OPTION(Timeout.rcpt, `confTO_RCPT', 1h)
|
||||
_OPTION(Timeout.datainit, `confTO_DATAINIT', 5m)
|
||||
_OPTION(Timeout.datablock, `confTO_DATABLOCK', 1h)
|
||||
_OPTION(Timeout.datafinal, `confTO_DATAFINAL', 1h)
|
||||
_OPTION(Timeout.rset, `confTO_RSET', 5m)
|
||||
_OPTION(Timeout.quit, `confTO_QUIT', 2m)
|
||||
_OPTION(Timeout.misc, `confTO_MISC', 2m)
|
||||
_OPTION(Timeout.command, `confTO_COMMAND', 1h)
|
||||
_OPTION(Timeout.ident, `confTO_IDENT', 30s)
|
||||
_OPTION(Timeout.fileopen, `confTO_FILEOPEN', 60s)
|
||||
_OPTION(Timeout.queuereturn, `confTO_QUEUERETURN', 5d)
|
||||
_OPTION(Timeout.queuereturn.normal, `confTO_QUEUERETURN_NORMAL', 5d)
|
||||
_OPTION(Timeout.queuereturn.urgent, `confTO_QUEUERETURN_URGENT', 2d)
|
||||
_OPTION(Timeout.queuereturn.non-urgent, `confTO_QUEUERETURN_NONURGENT', 7d)
|
||||
_OPTION(Timeout.queuewarn, `confTO_QUEUEWARN', 4h)
|
||||
_OPTION(Timeout.queuewarn.normal, `confTO_QUEUEWARN_NORMAL', 4h)
|
||||
_OPTION(Timeout.queuewarn.urgent, `confTO_QUEUEWARN_URGENT', 1h)
|
||||
_OPTION(Timeout.queuewarn.non-urgent, `confTO_QUEUEWARN_NONURGENT', 12h)
|
||||
|
||||
# should we not prune routes in route-addr syntax addresses?
|
||||
_OPTION(DontPruneRoutes, `confDONT_PRUNE_ROUTES')
|
||||
|
||||
# queue up everything before forking?
|
||||
_OPTION(SuperSafe, `confSAFE_QUEUE')
|
||||
|
||||
# status file
|
||||
O StatusFile=ifdef(`STATUS_FILE', `STATUS_FILE', /etc/sendmail.st)
|
||||
|
||||
# time zone handling:
|
||||
# if undefined, use system default
|
||||
# if defined but null, use TZ envariable passed in
|
||||
# if defined and non-null, use that info
|
||||
ifelse(confTIME_ZONE, `USE_SYSTEM', `#O TimeZoneSpec=',
|
||||
confTIME_ZONE, `USE_TZ', `O TimeZoneSpec=',
|
||||
`O TimeZoneSpec=confTIME_ZONE')
|
||||
|
||||
# default UID (can be username or userid:groupid)
|
||||
_OPTION(DefaultUser, `confDEF_USER_ID', nobody)
|
||||
|
||||
# list of locations of user database file (null means no lookup)
|
||||
_OPTION(UserDatabaseSpec, `confUSERDB_SPEC', /etc/userdb)
|
||||
|
||||
# fallback MX host
|
||||
_OPTION(FallbackMXhost, `confFALLBACK_MX', fall.back.host.net)
|
||||
|
||||
# if we are the best MX host for a site, try it directly instead of config err
|
||||
_OPTION(TryNullMXList, `confTRY_NULL_MX_LIST')
|
||||
|
||||
# load average at which we just queue messages
|
||||
_OPTION(QueueLA, `confQUEUE_LA', 8)
|
||||
|
||||
# load average at which we refuse connections
|
||||
_OPTION(RefuseLA, `confREFUSE_LA', 12)
|
||||
|
||||
# work recipient factor
|
||||
_OPTION(RecipientFactor, `confWORK_RECIPIENT_FACTOR', 30000)
|
||||
|
||||
# deliver each queued job in a separate process?
|
||||
_OPTION(ForkEachJob, `confSEPARATE_PROC')
|
||||
|
||||
# work class factor
|
||||
_OPTION(ClassFactor, `confWORK_CLASS_FACTOR', 1800)
|
||||
|
||||
# work time factor
|
||||
_OPTION(RetryFactor, `confWORK_TIME_FACTOR', 90000)
|
||||
|
||||
# shall we sort the queue by hostname first?
|
||||
_OPTION(QueueSortOrder, `confQUEUE_SORT_ORDER', priority)
|
||||
|
||||
# minimum time in queue before retry
|
||||
_OPTION(MinQueueAge, `confMIN_QUEUE_AGE', 30m)
|
||||
|
||||
# default character set
|
||||
_OPTION(DefaultCharSet, `confDEF_CHAR_SET', iso-8859-1)
|
||||
|
||||
# service switch file (ignored on Solaris, Ultrix, OSF/1, others)
|
||||
_OPTION(ServiceSwitchFile, `confSERVICE_SWITCH_FILE', /etc/service.switch)
|
||||
|
||||
# dialup line delay on connection failure
|
||||
_OPTION(DialDelay, `confDIAL_DELAY', 10s)
|
||||
|
||||
# action to take if there are no recipients in the message
|
||||
_OPTION(NoRecipientAction, `confNO_RCPT_ACTION', add-to-undisclosed)
|
||||
|
||||
# chrooted environment for writing to files
|
||||
_OPTION(SafeFileEnvironment, `confSAFE_FILE_ENV', /arch)
|
||||
|
||||
# are colons OK in addresses?
|
||||
_OPTION(ColonOkInAddr, `confCOLON_OK_IN_ADDR')
|
||||
|
||||
# how many jobs can you process in the queue?
|
||||
_OPTION(MaxQueueRunSize, `confMAX_QUEUE_RUN_SIZE', 10000)
|
||||
|
||||
# shall I avoid expanding CNAMEs (violates protocols)?
|
||||
_OPTION(DontExpandCnames, `confDONT_EXPAND_CNAMES')
|
||||
|
||||
# SMTP initial login message (old $e macro)
|
||||
_OPTION(SmtpGreetingMessage, `confSMTP_LOGIN_MSG')
|
||||
|
||||
# UNIX initial From header format (old $l macro)
|
||||
_OPTION(UnixFromLine, `confFROM_LINE')
|
||||
|
||||
# delimiter (operator) characters (old $o macro)
|
||||
_OPTION(OperatorChars, `confOPERATORS')
|
||||
|
||||
# shall I avoid calling initgroups(3) because of high NIS costs?
|
||||
_OPTION(DontInitGroups, `confDONT_INIT_GROUPS')
|
||||
|
||||
###########################
|
||||
# Message precedences #
|
||||
###########################
|
||||
|
||||
Pfirst-class=0
|
||||
Pspecial-delivery=100
|
||||
Plist=-30
|
||||
Pbulk=-60
|
||||
Pjunk=-100
|
||||
|
||||
#####################
|
||||
# Trusted users #
|
||||
#####################
|
||||
|
||||
# this is equivalent to setting class "t"
|
||||
ifdef(`_USE_CT_FILE_', `', `#')Ft`'ifdef(`confCT_FILE', confCT_FILE, `/etc/sendmail.ct')
|
||||
Troot
|
||||
Tdaemon
|
||||
Tuucp
|
||||
ifdef(`confTRUSTED_USERS', `T`'confTRUSTED_USERS', `dnl')
|
||||
|
||||
#########################
|
||||
# Format of headers #
|
||||
#########################
|
||||
|
||||
ifdef(`confFROM_HEADER',, `define(`confFROM_HEADER', `$?x$x <$g>$|$g$.')')dnl
|
||||
H?P?Return-Path: $g
|
||||
HReceived: confRECEIVED_HEADER
|
||||
H?D?Resent-Date: $a
|
||||
H?D?Date: $a
|
||||
H?F?Resent-From: confFROM_HEADER
|
||||
H?F?From: confFROM_HEADER
|
||||
H?x?Full-Name: $x
|
||||
HSubject:
|
||||
# HPosted-Date: $a
|
||||
# H?l?Received-Date: $b
|
||||
H?M?Resent-Message-Id: <$t.$i@$j>
|
||||
H?M?Message-Id: <$t.$i@$j>
|
||||
ifdef(`_NULL_CLIENT_ONLY_',
|
||||
`include(_CF_DIR_`'m4/nullrelay.m4)m4exit',
|
||||
`dnl')
|
||||
#
|
||||
######################################################################
|
||||
######################################################################
|
||||
#####
|
||||
##### REWRITING RULES
|
||||
#####
|
||||
######################################################################
|
||||
######################################################################
|
||||
|
||||
undivert(9)dnl
|
||||
|
||||
###########################################
|
||||
### Rulset 3 -- Name Canonicalization ###
|
||||
###########################################
|
||||
S3
|
||||
|
||||
# handle null input (translate to <@> special case)
|
||||
R$@ $@ <@>
|
||||
|
||||
# strip group: syntax (not inside angle brackets!) and trailing semicolon
|
||||
R$* $: $1 <@> mark addresses
|
||||
R$* < $* > $* <@> $: $1 < $2 > $3 unmark <addr>
|
||||
R$* :: $* <@> $: $1 :: $2 unmark node::addr
|
||||
R:`include': $* <@> $: :`include': $1 unmark :`include':...
|
||||
R$* : $* <@> $: $2 strip colon if marked
|
||||
R$* <@> $: $1 unmark
|
||||
R$* ; $: $1 strip trailing semi
|
||||
|
||||
# null input now results from list:; syntax
|
||||
R$@ $@ :; <@>
|
||||
|
||||
# strip angle brackets -- note RFC733 heuristic to get innermost item
|
||||
R$* $: < $1 > housekeeping <>
|
||||
R$+ < $* > < $2 > strip excess on left
|
||||
R< $* > $+ < $1 > strip excess on right
|
||||
R<> $@ < @ > MAIL FROM:<> case
|
||||
R< $+ > $: $1 remove housekeeping <>
|
||||
|
||||
# make sure <@a,@b,@c:user@d> syntax is easy to parse -- undone later
|
||||
R@ $+ , $+ @ $1 : $2 change all "," to ":"
|
||||
|
||||
# localize and dispose of route-based addresses
|
||||
R@ $+ : $+ $@ $>96 < @$1 > : $2 handle <route-addr>
|
||||
|
||||
# find focus for list syntax
|
||||
R $+ : $* ; @ $+ $@ $>96 $1 : $2 ; < @ $3 > list syntax
|
||||
R $+ : $* ; $@ $1 : $2; list syntax
|
||||
|
||||
# find focus for @ syntax addresses
|
||||
R$+ @ $+ $: $1 < @ $2 > focus on domain
|
||||
R$+ < $+ @ $+ > $1 $2 < @ $3 > move gaze right
|
||||
R$+ < @ $+ > $@ $>96 $1 < @ $2 > already canonical
|
||||
|
||||
# do some sanity checking
|
||||
R$* < @ $* : $* > $* $1 < @ $2 $3 > $4 nix colons in addrs
|
||||
|
||||
ifdef(`_NO_UUCP_', `dnl',
|
||||
`# convert old-style addresses to a domain-based address
|
||||
R$- ! $+ $@ $>96 $2 < @ $1 .UUCP > resolve uucp names
|
||||
R$+ . $- ! $+ $@ $>96 $3 < @ $1 . $2 > domain uucps
|
||||
R$+ ! $+ $@ $>96 $2 < @ $1 .UUCP > uucp subdomains
|
||||
')
|
||||
ifdef(`_USE_DECNET_SYNTAX_',
|
||||
`# convert node::user addresses into a domain-based address
|
||||
R$- :: $+ $@ $>96 $2 < @ $1 .DECNET > resolve DECnet names
|
||||
R$- . $- :: $+ $@ $>96 $3 < @ $1.$2 .DECNET > numeric DECnet addr
|
||||
',
|
||||
`dnl')
|
||||
# if we have % signs, take the rightmost one
|
||||
R$* % $* $1 @ $2 First make them all @s.
|
||||
R$* @ $* @ $* $1 % $2 @ $3 Undo all but the last.
|
||||
R$* @ $* $@ $>96 $1 < @ $2 > Insert < > and finish
|
||||
|
||||
# else we must be a local name
|
||||
R$* $@ $>96 $1
|
||||
|
||||
|
||||
################################################
|
||||
### Ruleset 96 -- bottom half of ruleset 3 ###
|
||||
################################################
|
||||
|
||||
S96
|
||||
|
||||
# handle special cases for local names
|
||||
R$* < @ localhost > $* $: $1 < @ $j . > $2 no domain at all
|
||||
R$* < @ localhost . $m > $* $: $1 < @ $j . > $2 local domain
|
||||
ifdef(`_NO_UUCP_', `dnl',
|
||||
`R$* < @ localhost . UUCP > $* $: $1 < @ $j . > $2 .UUCP domain')
|
||||
R$* < @ [ $+ ] > $* $: $1 < @@ [ $2 ] > $3 mark [a.b.c.d]
|
||||
R$* < @@ $=w > $* $: $1 < @ $j . > $3 self-literal
|
||||
R$* < @@ $+ > $* $@ $1 < @ $2 > $3 canon IP addr
|
||||
|
||||
# look up domains in the domain table
|
||||
ifdef(`DOMAIN_TABLE', `', `#')dnl
|
||||
R$* < @ $+ > $* $: $1 < @ $(domaintable $2 $) > $3
|
||||
|
||||
undivert(2)dnl
|
||||
|
||||
ifdef(`_NO_UUCP_', `dnl',
|
||||
`ifdef(`UUCP_RELAY',
|
||||
`# pass UUCP addresses straight through
|
||||
R$* < @ $+ . UUCP > $* $@ $1 < @ $2 . UUCP . > $3',
|
||||
`# if really UUCP, handle it immediately
|
||||
ifdef(`_CLASS_U_',
|
||||
`R$* < @ $=U . UUCP > $* $@ $1 < @ $2 . UUCP . > $3', `dnl')
|
||||
ifdef(`_CLASS_V_',
|
||||
`R$* < @ $=V . UUCP > $* $@ $1 < @ $2 . UUCP . > $3', `dnl')
|
||||
ifdef(`_CLASS_W_',
|
||||
`R$* < @ $=W . UUCP > $* $@ $1 < @ $2 . UUCP . > $3', `dnl')
|
||||
ifdef(`_CLASS_X_',
|
||||
`R$* < @ $=X . UUCP > $* $@ $1 < @ $2 . UUCP . > $3', `dnl')
|
||||
ifdef(`_CLASS_Y_',
|
||||
`R$* < @ $=Y . UUCP > $* $@ $1 < @ $2 . UUCP . > $3', `dnl')
|
||||
|
||||
# try UUCP traffic as a local address
|
||||
R$* < @ $+ . UUCP > $* $: $1 < @ $[ $2 $] . UUCP . > $3
|
||||
R$* < @ $+ . . UUCP . > $* $@ $1 < @ $2 . > $3')
|
||||
')
|
||||
ifdef(`_NO_CANONIFY_', `dnl',
|
||||
`# pass to name server to make hostname canonical
|
||||
R$* < @ $* $~P > $* $: $1 < @ $[ $2 $3 $] > $4')
|
||||
|
||||
# local host aliases and pseudo-domains are always canonical
|
||||
R$* < @ $=w > $* $: $1 < @ $2 . > $3
|
||||
R$* < @ $* $=P > $* $: $1 < @ $2 $3 . > $4
|
||||
R$* < @ $* . . > $* $1 < @ $2 . > $3
|
||||
|
||||
# if this is the local hostname, make sure we treat is as canonical
|
||||
R$* < @ $j > $* $: $1 < @ $j . > $2
|
||||
|
||||
|
||||
##################################################
|
||||
### Ruleset 4 -- Final Output Post-rewriting ###
|
||||
##################################################
|
||||
S4
|
||||
|
||||
R$* <@> $@ handle <> and list:;
|
||||
|
||||
# strip trailing dot off possibly canonical name
|
||||
R$* < @ $+ . > $* $1 < @ $2 > $3
|
||||
|
||||
# eliminate internal code -- should never get this far!
|
||||
R$* < @ *LOCAL* > $* $1 < @ $j > $2
|
||||
|
||||
# externalize local domain info
|
||||
R$* < $+ > $* $1 $2 $3 defocus
|
||||
R@ $+ : @ $+ : $+ @ $1 , @ $2 : $3 <route-addr> canonical
|
||||
R@ $* $@ @ $1 ... and exit
|
||||
|
||||
ifdef(`_NO_UUCP_', `dnl',
|
||||
`# UUCP must always be presented in old form
|
||||
R$+ @ $- . UUCP $2!$1 u@h.UUCP => h!u')
|
||||
|
||||
ifdef(`_USE_DECNET_SYNTAX_',
|
||||
`# put DECnet back in :: form
|
||||
R$+ @ $+ . DECNET $2 :: $1 u@h.DECNET => h::u',
|
||||
`dnl')
|
||||
# delete duplicate local names
|
||||
R$+ % $=w @ $=w $1 @ $j u%host@host => u@host
|
||||
|
||||
|
||||
|
||||
##############################################################
|
||||
### Ruleset 97 -- recanonicalize and call ruleset zero ###
|
||||
### (used for recursive calls) ###
|
||||
##############################################################
|
||||
|
||||
S`'97
|
||||
R$* $: $>3 $1
|
||||
R$* $@ $>0 $1
|
||||
|
||||
|
||||
######################################
|
||||
### Ruleset 0 -- Parse Address ###
|
||||
######################################
|
||||
|
||||
S0
|
||||
|
||||
R<@> $#_LOCAL_ $: <@> special case error msgs
|
||||
R$* : $* ; <@> $#error $@ 5.1.3 $: "list:; syntax illegal for recipient addresses"
|
||||
R<@ $+> $#error $@ 5.1.1 $: "user address required"
|
||||
R$* <$* : $* > $* $#error $@ 5.1.1 $: "colon illegal in host name part"
|
||||
R$* < @ . > $* $#error $@ 5.1.2 $: "invalid host name"
|
||||
|
||||
ifdef(`_MAILER_smtp_',
|
||||
`# handle numeric address spec
|
||||
R$* < @ [ $+ ] > $* $: $>98 $1 < @ [ $2 ] > $3 numeric internet spec
|
||||
R$* < @ [ $+ ] > $* $#_SMTP_ $@ [$2] $: $1 < @ [$2] > $3 still numeric: send',
|
||||
`dnl')
|
||||
|
||||
# now delete the local info -- note $=O to find characters that cause forwarding
|
||||
R$* < @ > $* $@ $>97 $1 user@ => user
|
||||
R< @ $=w . > : $* $@ $>97 $2 @here:... -> ...
|
||||
R$- < @ $=w . > $: $(dequote $1 $) < @ $2 . > dequote "foo"@here
|
||||
R$* $=O $* < @ $=w . > $@ $>97 $1 $2 $3 ...@here -> ...
|
||||
|
||||
# handle local hacks
|
||||
R$* $: $>98 $1
|
||||
|
||||
# short circuit local delivery so forwarded email works
|
||||
ifdef(`_MAILER_usenet_',
|
||||
`R$+ . USENET < @ $=w . > $#usenet $: $1 handle usenet specially',
|
||||
`dnl')
|
||||
ifdef(`_STICKY_LOCAL_DOMAIN_',
|
||||
`R$+ < @ $=w . > $: < $H > $1 < @ $2 . > first try hub
|
||||
R< $+ > $+ < $+ > $>95 < $1 > $2 < $3 > yep ....
|
||||
R< > $+ + $* < $+ > $#_LOCAL_ $: $1 + $2 plussed name?
|
||||
R< > $+ < $+ > $#_LOCAL_ $: @ $1 nope, local address',
|
||||
`R$=L < @ $=w . > $#_LOCAL_ $: @ $1 special local names
|
||||
R$+ < @ $=w . > $#_LOCAL_ $: $1 regular local name')
|
||||
|
||||
define(`X', ifdef(`MAILER_TABLE', `', `#'))dnl
|
||||
# not local -- try mailer table lookup
|
||||
X`'R$* <@ $+ > $* $: < $2 > $1 < @ $2 > $3 extract host name
|
||||
X`'R< $+ . > $* $: < $1 > $2 strip trailing dot
|
||||
X`'R< $+ > $* $: < $(mailertable $1 $) > $2 lookup
|
||||
X`'R< error : $- $+ > $* $#error $@ $1 $: $2 check -- error?
|
||||
X`'R< $- : $+ > $* $# $1 $@ $2 $: $3 check -- resolved?
|
||||
X`'R< $+ > $* $: $>90 <$1> $2 try domain
|
||||
undefine(`X')dnl
|
||||
undivert(4)dnl
|
||||
|
||||
ifdef(`_NO_UUCP_', `dnl',
|
||||
`# resolve remotely connected UUCP links (if any)
|
||||
ifdef(`_CLASS_V_',
|
||||
`R$* < @ $=V . UUCP . > $* $: $>95 < $V > $1 <@$2.UUCP.> $3',
|
||||
`dnl')
|
||||
ifdef(`_CLASS_W_',
|
||||
`R$* < @ $=W . UUCP . > $* $: $>95 < $W > $1 <@$2.UUCP.> $3',
|
||||
`dnl')
|
||||
ifdef(`_CLASS_X_',
|
||||
`R$* < @ $=X . UUCP . > $* $: $>95 < $X > $1 <@$2.UUCP.> $3',
|
||||
`dnl')')
|
||||
|
||||
# resolve fake top level domains by forwarding to other hosts
|
||||
ifdef(`BITNET_RELAY',
|
||||
`R$*<@$+.BITNET.>$* $: $>95 < $B > $1 <@$2.BITNET.> $3 user@host.BITNET',
|
||||
`dnl')
|
||||
ifdef(`DECNET_RELAY',
|
||||
`R$*<@$+.DECNET.>$* $: $>95 < $C > $1 <@$2.DECNET.> $3 user@host.DECNET',
|
||||
`dnl')
|
||||
ifdef(`_MAILER_pop_',
|
||||
`R$+ < @ POP. > $#pop $: $1 user@POP',
|
||||
`dnl')
|
||||
ifdef(`_MAILER_fax_',
|
||||
`R$+ < @ $+ .FAX. > $#fax $@ $2 $: $1 user@host.FAX',
|
||||
`ifdef(`FAX_RELAY',
|
||||
`R$*<@$+.FAX.>$* $: $>95 < $F > $1 <@$2.FAX.> $3 user@host.FAX',
|
||||
`dnl')')
|
||||
|
||||
ifdef(`UUCP_RELAY',
|
||||
`# forward non-local UUCP traffic to our UUCP relay
|
||||
R$*<@$*.UUCP.>$* $: $>95 < $Y > $1 <@$2.UUCP.> $3 uucp mail',
|
||||
`ifdef(`_MAILER_uucp_',
|
||||
`# forward other UUCP traffic straight to UUCP
|
||||
R$* < @ $+ .UUCP. > $* $#_UUCP_ $@ $2 $: $1 < @ $2 .UUCP. > $3 user@host.UUCP',
|
||||
`dnl')')
|
||||
ifdef(`_MAILER_usenet_', `
|
||||
# addresses sent to net.group.USENET will get forwarded to a newsgroup
|
||||
R$+ . USENET $#usenet $: $1',
|
||||
`dnl')
|
||||
|
||||
ifdef(`_LOCAL_RULES_',
|
||||
`# figure out what should stay in our local mail system
|
||||
undivert(1)', `dnl')
|
||||
|
||||
# pass names that still have a host to a smarthost (if defined)
|
||||
R$* < @ $* > $* $: $>95 < $S > $1 < @ $2 > $3 glue on smarthost name
|
||||
|
||||
# deal with other remote names
|
||||
ifdef(`_MAILER_smtp_',
|
||||
`R$* < @$* > $* $#_SMTP_ $@ $2 $: $1 < @ $2 > $3 user@host.domain',
|
||||
`R$* < @$* > $* $#error $@ 5.1.2 $: Unrecognized host name $2')
|
||||
|
||||
# if this is quoted, strip the quotes and try again
|
||||
R$+ $: $(dequote $1 $) strip quotes
|
||||
R$+ $=O $+ $@ $>97 $1 $2 $3 try again
|
||||
|
||||
# handle locally delivered names
|
||||
R$=L $#_LOCAL_ $: @ $1 special local names
|
||||
R$+ $#_LOCAL_ $: $1 regular local names
|
||||
|
||||
###########################################################################
|
||||
### Ruleset 5 -- special rewriting after aliases have been expanded ###
|
||||
###########################################################################
|
||||
|
||||
S5
|
||||
|
||||
# deal with plussed users so aliases work nicely
|
||||
R$+ + * $#_LOCAL_ $@ $&h $: $1
|
||||
R$+ + $* $#_LOCAL_ $@ $2 $: $1 + *
|
||||
|
||||
# prepend an empty "forward host" on the front
|
||||
R$+ $: <> $1
|
||||
|
||||
define(`X', ifdef(`LUSER_RELAY', `', `#'))dnl
|
||||
# send unrecognized local users to a relay host
|
||||
X`'R< > $+ + $* $: < $L . > $( user $1 $) + $2
|
||||
X`'R< > $+ $: < $L . > $( user $1 $) look up user
|
||||
X`'R< $* > $+ <> $* $: < > $2 $3 found; strip $L
|
||||
X`'R< $* . > $+ $: < $1 > $2 strip extra dot
|
||||
undefine(`X')dnl
|
||||
|
||||
# handle plussed local names
|
||||
R< > $+ + $* $#_LOCAL_ $@ $2 $: $1
|
||||
|
||||
# see if we have a relay or a hub
|
||||
R< > $+ $: < $H > $1 try hub
|
||||
R< > $+ $: < $R > $1 try relay
|
||||
R< > $+ $@ $1 nope, give up
|
||||
R< $- : $+ > $+ $: $>95 < $1 : $2 > $3 < @ $2 >
|
||||
R< $+ > $+ $@ $>95 < $1 > $2 < @ $1 >
|
||||
|
||||
###################################################################
|
||||
### Ruleset 90 -- try domain part of mailertable entry ###
|
||||
###################################################################
|
||||
|
||||
define(`X', ifdef(`MAILER_TABLE', `', `#'))dnl
|
||||
X`'S90
|
||||
X`'R$* <$- . $+ > $* $: $1$2 < $(mailertable .$3 $@ $1$2 $@ $2 $) > $4
|
||||
X`'R$* <$- : $+ > $* $# $2 $@ $3 $: $4 check -- resolved?
|
||||
X`'R$* < . $+ > $* $@ $>90 $1 . <$2> $3 no -- strip & try again
|
||||
X`'R$* < $* > $* $: < $(mailertable . $@ $1$2 $) > $3 try "."
|
||||
X`'R<$- : $+ > $* $# $1 $@ $2 $: $3 "." found?
|
||||
X`'R< $* > $* $@ $2 no mailertable match
|
||||
undefine(`X')dnl
|
||||
|
||||
###################################################################
|
||||
### Ruleset 95 -- canonify mailer:host syntax to triple ###
|
||||
###################################################################
|
||||
|
||||
S95
|
||||
R< > $* $@ $1 strip off null relay
|
||||
R< $- : $+ > $* $# $1 $@ $2 $: $3 try qualified mailer
|
||||
R< $=w > $* $@ $2 delete local host
|
||||
R< $+ > $* $#_RELAY_ $@ $1 $: $2 use unqualified mailer
|
||||
|
||||
###################################################################
|
||||
### Ruleset 93 -- convert header names to masqueraded form ###
|
||||
###################################################################
|
||||
|
||||
S93
|
||||
R$=E < @ *LOCAL* > $@ $1 < @ $j . > leave exposed
|
||||
R$=E < @ $=M . > $@ $1 < @ $2 . >
|
||||
ifdef(`_LIMITED_MASQUERADE_', `#')dnl
|
||||
R$=E < @ $=w . > $@ $1 < @ $2 . >
|
||||
R$* < @ $=M . > $* $: $1 < @ $2 . @ $M > $3 convert masqueraded doms
|
||||
ifdef(`_LIMITED_MASQUERADE_', `#')dnl
|
||||
R$* < @ $=w . > $* $: $1 < @ $2 . @ $M > $3
|
||||
R$* < @ *LOCAL* > $* $: $1 < @ $j . @ $M > $2
|
||||
R$* < @ $+ @ > $* $@ $1 < @ $2 > $3 $M is null
|
||||
R$* < @ $+ @ $+ > $* $@ $1 < @ $3 . > $4 $M is not null
|
||||
|
||||
###################################################################
|
||||
### Ruleset 94 -- convert envelope names to masqueraded form ###
|
||||
###################################################################
|
||||
|
||||
S94
|
||||
ifdef(`_MASQUERADE_ENVELOPE_', `', `#')dnl
|
||||
R$+ $@ $>93 $1
|
||||
ifdef(`_MASQUERADE_ENVELOPE_', `#', `')dnl
|
||||
R$* < @ *LOCAL* > $* $: $1 < @ $j . > $2
|
||||
|
||||
###################################################################
|
||||
### Ruleset 98 -- local part of ruleset zero (can be null) ###
|
||||
###################################################################
|
||||
|
||||
S98
|
||||
undivert(3)dnl
|
||||
#
|
||||
######################################################################
|
||||
######################################################################
|
||||
#####
|
||||
`##### MAILER DEFINITIONS'
|
||||
#####
|
||||
######################################################################
|
||||
######################################################################
|
||||
undivert(7)dnl
|
39
usr.sbin/sendmail/cf/m4/version.m4
Normal file
39
usr.sbin/sendmail/cf/m4/version.m4
Normal file
@ -0,0 +1,39 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
VERSIONID(`@(#)version.m4 8.7.2.2 (Berkeley) 11/20/95')
|
||||
#
|
||||
divert(0)
|
||||
# Configuration version number
|
||||
DZ8.7.2`'ifdef(`confCF_VERSION', `/confCF_VERSION')
|
44
usr.sbin/sendmail/cf/mailer/cyrus.m4
Normal file
44
usr.sbin/sendmail/cf/mailer/cyrus.m4
Normal file
@ -0,0 +1,44 @@
|
||||
PUSHDIVERT(-1)
|
||||
#
|
||||
# (C) Copyright 1995 by Carnegie Mellon University
|
||||
#
|
||||
# All Rights Reserved
|
||||
#
|
||||
# Permission to use, copy, modify, and distribute this software and its
|
||||
# documentation for any purpose and without fee is hereby granted,
|
||||
# provided that the above copyright notice appear in all copies and that
|
||||
# both that copyright notice and this permission notice appear in
|
||||
# supporting documentation, and that the name of CMU not be
|
||||
# used in advertising or publicity pertaining to distribution of the
|
||||
# software without specific, written prior permission.
|
||||
#
|
||||
# CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
|
||||
# ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
|
||||
# CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
|
||||
# ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||
# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||
# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
# SOFTWARE.
|
||||
#
|
||||
# Contributed to Berkeley by John Gardiner Myers <jgm+@CMU.EDU>.
|
||||
#
|
||||
|
||||
ifdef(`CYRUS_MAILER_FLAGS',, `define(`CYRUS_MAILER_FLAGS', `A5@')')
|
||||
ifdef(`CYRUS_MAILER_PATH',, `define(`CYRUS_MAILER_PATH', /usr/cyrus/bin/deliver)')
|
||||
ifdef(`CYRUS_MAILER_ARGS',, `define(`CYRUS_MAILER_ARGS', `deliver -e -m $h -- $u')')
|
||||
ifdef(`CYRUS_BB_MAILER_FLAGS',, `define(`CYRUS_BB_MAILER_FLAGS', `')')
|
||||
ifdef(`CYRUS_BB_MAILER_ARGS',, `define(`CYRUS_BB_MAILER_ARGS', `deliver -e -m $u')')
|
||||
|
||||
POPDIVERT
|
||||
|
||||
##################################################
|
||||
### Cyrus Mailer specification ###
|
||||
##################################################
|
||||
|
||||
VERSIONID(`@(#)cyrus.m4 8.2 (Carnegie Mellon) 9/12/95')
|
||||
|
||||
Mcyrus, P=CYRUS_MAILER_PATH, F=CONCAT(`lsDFMnP', CYRUS_MAILER_FLAGS), S=10, R=20/40, T=X-Unix,
|
||||
ifdef(`CYRUS_MAILER_MAX', `M=CYRUS_MAILER_MAX, ')A=CYRUS_MAILER_ARGS
|
||||
|
||||
Mcyrusbb, P=CYRUS_MAILER_PATH, F=CONCAT(`lsDFMnP', CYRUS_MAILER_FLAGS), S=10, R=20/40, T=X-Unix,
|
||||
ifdef(`CYRUS_MAILER_MAX', `M=CYRUS_MAILER_MAX, ')A=CYRUS_BB_MAILER_ARGS
|
53
usr.sbin/sendmail/cf/mailer/fax.m4
Normal file
53
usr.sbin/sendmail/cf/mailer/fax.m4
Normal file
@ -0,0 +1,53 @@
|
||||
PUSHDIVERT(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# This assumes you already have Sam Leffler's FAX software.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
ifdef(`FAX_MAILER_PATH',,
|
||||
`define(`FAX_MAILER_PATH', /usr/local/lib/fax/mailfax)')
|
||||
ifdef(`FAX_MAILER_MAX',,
|
||||
`define(`FAX_MAILER_MAX', 100000)')
|
||||
POPDIVERT
|
||||
####################################
|
||||
### FAX Mailer specification ###
|
||||
####################################
|
||||
|
||||
VERSIONID(`@(#)fax.m4 8.4 (Berkeley) 10/10/95')
|
||||
|
||||
Mfax, P=FAX_MAILER_PATH, F=DFMhu, S=14, R=24, M=FAX_MAILER_MAX, T=X-Phone/X-FAX/X-Unix,
|
||||
A=mailfax $u $h $f
|
||||
|
||||
LOCAL_CONFIG
|
||||
CPFAX
|
94
usr.sbin/sendmail/cf/mailer/local.m4
Normal file
94
usr.sbin/sendmail/cf/mailer/local.m4
Normal file
@ -0,0 +1,94 @@
|
||||
PUSHDIVERT(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
ifdef(`LOCAL_MAILER_FLAGS',, `define(`LOCAL_MAILER_FLAGS', `rmn')')
|
||||
ifdef(`LOCAL_MAILER_PATH',, `define(`LOCAL_MAILER_PATH', /bin/mail)')
|
||||
ifdef(`LOCAL_MAILER_ARGS',, `define(`LOCAL_MAILER_ARGS', `mail -d $u')')
|
||||
ifdef(`LOCAL_SHELL_FLAGS',, `define(`LOCAL_SHELL_FLAGS', `eu')')
|
||||
ifdef(`LOCAL_SHELL_PATH',, `define(`LOCAL_SHELL_PATH', /bin/sh)')
|
||||
ifdef(`LOCAL_SHELL_ARGS',, `define(`LOCAL_SHELL_ARGS', `sh -c $u')')
|
||||
ifdef(`LOCAL_SHELL_DIR',, `define(`LOCAL_SHELL_DIR', `$z:/')')
|
||||
POPDIVERT
|
||||
|
||||
##################################################
|
||||
### Local and Program Mailer specification ###
|
||||
##################################################
|
||||
|
||||
VERSIONID(`@(#)local.m4 8.21 (Berkeley) 11/6/95')
|
||||
|
||||
Mlocal, P=LOCAL_MAILER_PATH, F=CONCAT(`lsDFMAw5:/|@', LOCAL_MAILER_FLAGS), S=10/30, R=20/40,
|
||||
_OPTINS(`LOCAL_MAILER_MAX', `M=', `, ')_OPTINS(`LOCAL_MAILER_CHARSET', `C=', `, ')T=DNS/RFC822/X-Unix,
|
||||
A=LOCAL_MAILER_ARGS
|
||||
Mprog, P=LOCAL_SHELL_PATH, F=CONCAT(`lsDFMo', LOCAL_SHELL_FLAGS), S=10/30, R=20/40, D=LOCAL_SHELL_DIR,
|
||||
_OPTINS(`LOCAL_MAILER_MAX', `M=', `, ')T=X-Unix,
|
||||
A=LOCAL_SHELL_ARGS
|
||||
|
||||
#
|
||||
# Envelope sender rewriting
|
||||
#
|
||||
S10
|
||||
R<@> $n errors to mailer-daemon
|
||||
R$+ $: $>50 $1 add local domain if needed
|
||||
R$* $: $>94 $1 do masquerading
|
||||
|
||||
#
|
||||
# Envelope recipient rewriting
|
||||
#
|
||||
S20
|
||||
R$+ < @ $* > $: $1 strip host part
|
||||
|
||||
#
|
||||
# Header sender rewriting
|
||||
#
|
||||
S30
|
||||
R<@> $n errors to mailer-daemon
|
||||
R$+ $: $>50 $1 add local domain if needed
|
||||
R$* $: $>93 $1 do masquerading
|
||||
|
||||
#
|
||||
# Header recipient rewriting
|
||||
#
|
||||
S40
|
||||
R$+ $: $>50 $1 add local domain if needed
|
||||
ifdef(`_ALL_MASQUERADE_', `', `#')dnl
|
||||
R$* $: $>93 $1 do all-masquerading
|
||||
|
||||
#
|
||||
# Common code to add local domain name (only if always-add-domain)
|
||||
#
|
||||
S50
|
||||
ifdef(`_ALWAYS_ADD_DOMAIN_', `', `#')dnl
|
||||
R$* < @ $* > $* $@ $1 < @ $2 > $3 already fully qualified
|
||||
ifdef(`_ALWAYS_ADD_DOMAIN_', `', `#')dnl
|
||||
R$+ $@ $1 < @ *LOCAL* > add local qualification
|
50
usr.sbin/sendmail/cf/mailer/mail11.m4
Normal file
50
usr.sbin/sendmail/cf/mailer/mail11.m4
Normal file
@ -0,0 +1,50 @@
|
||||
PUSHDIVERT(-1)
|
||||
#
|
||||
# Not exciting enough to bother with copyrights and most of the
|
||||
# rulesets are based from those provided by DEC.
|
||||
# Barb Dijker, Labyrinth Computer Services, barb@labyrinth.com
|
||||
#
|
||||
# This mailer is only useful if you have DECNET and the
|
||||
# mail11 program - gatekeeper.dec.com:/pub/DEC/gwtools.
|
||||
#
|
||||
# For local delivery of DECNET style addresses to the local
|
||||
# DECNET node, you will need feature(use_cw_file) and put
|
||||
# your DECNET nodename in in the cw file.
|
||||
#
|
||||
ifdef(`MAIL11_MAILER_PATH',, `define(`MAIL11_MAILER_PATH', /usr/etc/mail11)')
|
||||
ifdef(`MAIL11_MAILER_FLAGS',, `define(`MAIL11_MAILER_FLAGS', nsFx)')
|
||||
ifdef(`MAIL11_MAILER_ARGS',, `define(`MAIL11_MAILER_ARGS', mail11 $g $x $h $u)')
|
||||
define(`_USE_DECNET_SYNTAX_')
|
||||
|
||||
POPDIVERT
|
||||
|
||||
PUSHDIVERT(3)
|
||||
# DECNET delivery
|
||||
R$* < @ $=w .DECNET. > $#local $: $1 local DECnet
|
||||
R$+ < @ $+ .DECNET. > $#mail11 $@ $2 $: $1 DECnet user
|
||||
POPDIVERT
|
||||
|
||||
PUSHDIVERT(6)
|
||||
CPDECNET
|
||||
POPDIVERT
|
||||
|
||||
###########################################
|
||||
### UTK-MAIL11 Mailer specification ###
|
||||
###########################################
|
||||
|
||||
VERSIONID(`@(#)mail11.m4 8.1 (Berkeley) 5/23/95')
|
||||
|
||||
Mmail11, P=MAIL11_MAILER_PATH, F=MAIL11_MAILER_FLAGS, S=15, R=25,
|
||||
A=MAIL11_MAILER_ARGS
|
||||
|
||||
S15
|
||||
R$+ $: $>25 $1 preprocess
|
||||
R$w :: $+ $@ $w :: $1 ready to go
|
||||
|
||||
S25
|
||||
R$+ < @ $- .UUCP > $: $2 ! $1 back to old style
|
||||
R$+ < @ $- .DECNET > $: $2 :: $1 convert to DECnet style
|
||||
R$+ < @ $- .LOCAL > $: $2 :: $1 convert to DECnet style
|
||||
R$+ < @ $=w. > $: $2 :: $1 convert to DECnet style
|
||||
R$=w :: $+ $2 strip local names
|
||||
R$+ :: $+ $@ $1 :: $2 already qualified
|
51
usr.sbin/sendmail/cf/mailer/phquery.m4
Normal file
51
usr.sbin/sendmail/cf/mailer/phquery.m4
Normal file
@ -0,0 +1,51 @@
|
||||
PUSHDIVERT(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
# Contributed by Kimmo Suominen <kim@tac.nyc.ny.us>.
|
||||
#
|
||||
|
||||
ifdef(`PH_MAILER_PATH',, `define(`PH_MAILER_PATH', /usr/local/etc/phquery)')
|
||||
ifdef(`PH_MAILER_FLAGS',, `define(`PH_MAILER_FLAGS', `ehmu')')
|
||||
ifdef(`PH_MAILER_ARGS',, `define(`PH_MAILER_ARGS', `phquery -- $u')')
|
||||
|
||||
POPDIVERT
|
||||
|
||||
####################################
|
||||
### PH Mailer specification ###
|
||||
####################################
|
||||
|
||||
VERSIONID(`@(#)phquery.m4 8.1 (Berkeley) 8/1/95')
|
||||
|
||||
Mph, P=PH_MAILER_PATH, F=CONCAT(`nrDFM', PH_MAILER_FLAGS), S=10, R=20/40,
|
||||
A=PH_MAILER_ARGS
|
53
usr.sbin/sendmail/cf/mailer/pop.m4
Normal file
53
usr.sbin/sendmail/cf/mailer/pop.m4
Normal file
@ -0,0 +1,53 @@
|
||||
PUSHDIVERT(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
ifdef(`POP_MAILER_PATH',, `define(`POP_MAILER_PATH', /usr/lib/mh/spop)')
|
||||
ifdef(`POP_MAILER_FLAGS',, `define(`POP_MAILER_FLAGS', `Penu')')
|
||||
ifdef(`POP_MAILER_ARGS',, `define(`POP_MAILER_ARGS', `pop $u')')
|
||||
|
||||
POPDIVERT
|
||||
|
||||
####################################
|
||||
### POP Mailer specification ###
|
||||
####################################
|
||||
|
||||
VERSIONID(`@(#)pop.m4 8.5 (Berkeley) 4/23/95')
|
||||
|
||||
Mpop, P=POP_MAILER_PATH, F=CONCAT(`lsDFM', POP_MAILER_FLAGS), S=10, R=20/40, T=DNS/RFC822/X-Unix,
|
||||
A=POP_MAILER_ARGS
|
||||
|
||||
LOCAL_CONFIG
|
||||
# POP mailer is a pseudo-domain
|
||||
CPPOP
|
52
usr.sbin/sendmail/cf/mailer/procmail.m4
Normal file
52
usr.sbin/sendmail/cf/mailer/procmail.m4
Normal file
@ -0,0 +1,52 @@
|
||||
PUSHDIVERT(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
ifdef(`PROCMAIL_PATH',,
|
||||
`define(`PROCMAIL_PATH', /usr/local/bin/procmail)')
|
||||
ifdef(`PROCMAIL_MAILER_FLAGS',,
|
||||
`define(`PROCMAIL_MAILER_FLAGS', `Shu')')
|
||||
ifdef(`PROCMAIL_MAILER_ARGS',,
|
||||
`define(`PROCMAIL_MAILER_ARGS', `procmail -m $h $f $u')')
|
||||
|
||||
POPDIVERT
|
||||
|
||||
######################*****##############
|
||||
### PROCMAIL Mailer specification ###
|
||||
##################*****##################
|
||||
|
||||
VERSIONID(`@(#)procmail.m4 8.4 (Berkeley) 4/23/95')
|
||||
|
||||
Mprocmail, P=PROCMAIL_PATH, F=CONCAT(`DFMm', PROCMAIL_MAILER_FLAGS), S=11/31, R=21/31, T=DNS/RFC822/X-Unix,
|
||||
ifdef(`PROCMAIL_MAILER_MAX', `M=PROCMAIL_MAILER_MAX, ')A=PROCMAIL_MAILER_ARGS
|
135
usr.sbin/sendmail/cf/mailer/smtp.m4
Normal file
135
usr.sbin/sendmail/cf/mailer/smtp.m4
Normal file
@ -0,0 +1,135 @@
|
||||
PUSHDIVERT(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
ifdef(`SMTP_MAILER_FLAGS',, `define(`SMTP_MAILER_FLAGS', `')')
|
||||
ifdef(`SMTP_MAILER_ARGS',, `define(`SMTP_MAILER_ARGS', `IPC $h')')
|
||||
ifdef(`ESMTP_MAILER_ARGS',, `define(`ESMTP_MAILER_ARGS', `IPC $h')')
|
||||
ifdef(`SMTP8_MAILER_ARGS',, `define(`SMTP8_MAILER_ARGS', `IPC $h')')
|
||||
ifdef(`RELAY_MAILER_ARGS',, `define(`RELAY_MAILER_ARGS', `IPC $h')')
|
||||
ifdef(`_MAILER_uucp_',
|
||||
`errprint(`*** MAILER(smtp) must appear before MAILER(uucp)')')dnl
|
||||
POPDIVERT
|
||||
#####################################
|
||||
### SMTP Mailer specification ###
|
||||
#####################################
|
||||
|
||||
VERSIONID(`@(#)smtp.m4 8.32 (Berkeley) 11/20/95')
|
||||
|
||||
Msmtp, P=[IPC], F=CONCAT(mDFMuX, SMTP_MAILER_FLAGS), S=11/31, R=ifdef(`_ALL_MASQUERADE_', `21/31', `21'), E=\r\n, L=990,
|
||||
_OPTINS(`SMTP_MAILER_MAX', `M=', `, ')_OPTINS(`SMTP_MAILER_CHARSET', `C=', `, ')T=DNS/RFC822/SMTP,
|
||||
A=SMTP_MAILER_ARGS
|
||||
Mesmtp, P=[IPC], F=CONCAT(mDFMuXa, SMTP_MAILER_FLAGS), S=11/31, R=ifdef(`_ALL_MASQUERADE_', `21/31', `21'), E=\r\n, L=990,
|
||||
_OPTINS(`SMTP_MAILER_MAX', `M=', `, ')_OPTINS(`SMTP_MAILER_CHARSET', `C=', `, ')T=DNS/RFC822/SMTP,
|
||||
A=ESMTP_MAILER_ARGS
|
||||
Msmtp8, P=[IPC], F=CONCAT(mDFMuX8, SMTP_MAILER_FLAGS), S=11/31, R=ifdef(`_ALL_MASQUERADE_', `21/31', `21'), E=\r\n, L=990,
|
||||
_OPTINS(`SMTP_MAILER_MAX', `M=', `, ')_OPTINS(`SMTP_MAILER_CHARSET', `C=', `, ')T=DNS/RFC822/SMTP,
|
||||
A=SMTP8_MAILER_ARGS
|
||||
Mrelay, P=[IPC], F=CONCAT(mDFMuXa8, SMTP_MAILER_FLAGS), S=11/31, R=ifdef(`_ALL_MASQUERADE_', `61/71', `61'), E=\r\n, L=2040,
|
||||
_OPTINS(`RELAY_MAILER_CHARSET', `C=', `, ')T=DNS/RFC822/SMTP,
|
||||
A=RELAY_MAILER_ARGS
|
||||
|
||||
#
|
||||
# envelope sender rewriting
|
||||
#
|
||||
S11
|
||||
R$+ $: $>51 $1 sender/recipient common
|
||||
R$* :; <@> $@ list:; special case
|
||||
R$* $: $>61 $1 qualify unqual'ed names
|
||||
R$+ $: $>94 $1 do masquerading
|
||||
|
||||
|
||||
#
|
||||
# envelope recipient rewriting --
|
||||
# also header recipient if not masquerading recipients
|
||||
#
|
||||
S21
|
||||
R$+ $: $>51 $1 sender/recipient common
|
||||
R$+ $: $>61 $1 qualify unqual'ed names
|
||||
|
||||
|
||||
#
|
||||
# header sender and masquerading header recipient rewriting
|
||||
#
|
||||
S31
|
||||
R$+ $: $>51 $1 sender/recipient common
|
||||
R:; <@> $@ list:; special case
|
||||
|
||||
# do special header rewriting
|
||||
R$* <@> $* $@ $1 <@> $2 pass null host through
|
||||
R< @ $* > $* $@ < @ $1 > $2 pass route-addr through
|
||||
R$* $: $>61 $1 qualify unqual'ed names
|
||||
R$+ $: $>93 $1 do masquerading
|
||||
|
||||
|
||||
#
|
||||
# convert pseudo-domain addresses to real domain addresses
|
||||
#
|
||||
S51
|
||||
|
||||
# pass <route-addr>s through
|
||||
R< @ $+ > $* $@ < @ $1 > $2 resolve <route-addr>
|
||||
|
||||
# output fake domains as user%fake@relay
|
||||
ifdef(`BITNET_RELAY',
|
||||
`R$+ <@ $+ .BITNET. > $: $1 % $2 .BITNET < @ $B > user@host.BITNET
|
||||
R$+.BITNET <@ $+:$+ > $: $1 .BITNET < @ $3 > strip mailer: part',
|
||||
`dnl')
|
||||
ifdef(`_NO_UUCP_', `dnl', `
|
||||
# do UUCP heuristics; note that these are shared with UUCP mailers
|
||||
R$+ < @ $+ .UUCP. > $: < $2 ! > $1 convert to UUCP form
|
||||
R$+ < @ $* > $* $@ $1 < @ $2 > $3 not UUCP form
|
||||
|
||||
# leave these in .UUCP form to avoid further tampering
|
||||
R< $&h ! > $- ! $+ $@ $2 < @ $1 .UUCP. >
|
||||
R< $&h ! > $-.$+ ! $+ $@ $3 < @ $1.$2 >
|
||||
R< $&h ! > $+ $@ $1 < @ $&h .UUCP. >
|
||||
R< $+ ! > $+ $: $1 ! $2 < @ *LOCAL* >')
|
||||
|
||||
|
||||
#
|
||||
# common sender and masquerading recipient rewriting
|
||||
#
|
||||
S61
|
||||
|
||||
R$* < @ $* > $* $@ $1 < @ $2 > $3 already fully qualified
|
||||
R$+ $@ $1 < @ *LOCAL* > add local qualification
|
||||
|
||||
|
||||
#
|
||||
# relay mailer header masquerading recipient rewriting
|
||||
#
|
||||
S71
|
||||
|
||||
R$+ $: $>61 $1
|
||||
R$+ $: $>93 $1
|
48
usr.sbin/sendmail/cf/mailer/usenet.m4
Normal file
48
usr.sbin/sendmail/cf/mailer/usenet.m4
Normal file
@ -0,0 +1,48 @@
|
||||
PUSHDIVERT(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
ifdef(`USENET_MAILER_PATH',, `define(`USENET_MAILER_PATH', /usr/lib/news/inews)')
|
||||
ifdef(`USENET_MAILER_FLAGS',, `define(`USENET_MAILER_FLAGS', `rlsDFMmn')')
|
||||
ifdef(`USENET_MAILER_ARGS',, `define(`USENET_MAILER_ARGS', `inews -m -h -n')')
|
||||
POPDIVERT
|
||||
####################################
|
||||
### USENET Mailer specification ###
|
||||
####################################
|
||||
|
||||
VERSIONID(`@(#)usenet.m4 8.5 (Berkeley) 4/26/95')
|
||||
|
||||
Musenet, P=USENET_MAILER_PATH, F=USENET_MAILER_FLAGS, S=10, R=20,
|
||||
_OPTINS(`USENET_MAILER_MAX', `M=', `, ')T=X-Usenet/X-Usenet/X-Unix,
|
||||
A=USENET_MAILER_ARGS $u
|
174
usr.sbin/sendmail/cf/mailer/uucp.m4
Normal file
174
usr.sbin/sendmail/cf/mailer/uucp.m4
Normal file
@ -0,0 +1,174 @@
|
||||
PUSHDIVERT(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
ifdef(`UUCP_MAILER_PATH',, `define(`UUCP_MAILER_PATH', /usr/bin/uux)')
|
||||
ifdef(`UUCP_MAILER_ARGS',, `define(`UUCP_MAILER_ARGS', `uux - -r -a$g -gC $h!rmail ($u)')')
|
||||
ifdef(`UUCP_MAILER_FLAGS',, `define(`UUCP_MAILER_FLAGS', `')')
|
||||
ifdef(`UUCP_MAILER_MAX',,
|
||||
`define(`UUCP_MAILER_MAX',
|
||||
`ifdef(`UUCP_MAX_SIZE', `UUCP_MAX_SIZE', 100000)')')
|
||||
POPDIVERT
|
||||
#####################################
|
||||
### UUCP Mailer specification ###
|
||||
#####################################
|
||||
|
||||
VERSIONID(`@(#)uucp.m4 8.24 (Berkeley) 9/5/95')
|
||||
|
||||
#
|
||||
# There are innumerable variations on the UUCP mailer. It really
|
||||
# is rather absurd.
|
||||
#
|
||||
|
||||
# old UUCP mailer (two names)
|
||||
Muucp, P=UUCP_MAILER_PATH, F=CONCAT(DFMhuUd, UUCP_MAILER_FLAGS), S=12, R=22/42, M=UUCP_MAILER_MAX,
|
||||
_OPTINS(`UUCP_MAILER_CHARSET', `C=', `, ')T=X-UUCP/X-UUCP/X-Unix,
|
||||
A=UUCP_MAILER_ARGS
|
||||
Muucp-old, P=UUCP_MAILER_PATH, F=CONCAT(DFMhuUd, UUCP_MAILER_FLAGS), S=12, R=22/42, M=UUCP_MAILER_MAX,
|
||||
_OPTINS(`UUCP_MAILER_CHARSET', `C=', `, ')T=X-UUCP/X-UUCP/X-Unix,
|
||||
A=UUCP_MAILER_ARGS
|
||||
|
||||
# smart UUCP mailer (handles multiple addresses) (two names)
|
||||
Msuucp, P=UUCP_MAILER_PATH, F=CONCAT(mDFMhuUd, UUCP_MAILER_FLAGS), S=12, R=22/42, M=UUCP_MAILER_MAX,
|
||||
_OPTINS(`UUCP_MAILER_CHARSET', `C=', `, ')T=X-UUCP/X-UUCP/X-Unix,
|
||||
A=UUCP_MAILER_ARGS
|
||||
Muucp-new, P=UUCP_MAILER_PATH, F=CONCAT(mDFMhuUd, UUCP_MAILER_FLAGS), S=12, R=22/42, M=UUCP_MAILER_MAX,
|
||||
_OPTINS(`UUCP_MAILER_CHARSET', `C=', `, ')T=X-UUCP/X-UUCP/X-Unix,
|
||||
A=UUCP_MAILER_ARGS
|
||||
|
||||
ifdef(`_MAILER_smtp_',
|
||||
`# domain-ized UUCP mailer
|
||||
Muucp-dom, P=UUCP_MAILER_PATH, F=CONCAT(mDFMhud, UUCP_MAILER_FLAGS), S=52/31, R=ifdef(`_ALL_MASQUERADE_', `21/31', `21'), M=UUCP_MAILER_MAX,
|
||||
_OPTINS(`UUCP_MAILER_CHARSET', `C=', `, ')T=X-UUCP/X-UUCP/X-Unix,
|
||||
A=UUCP_MAILER_ARGS
|
||||
|
||||
# domain-ized UUCP mailer with UUCP-style sender envelope
|
||||
Muucp-uudom, P=UUCP_MAILER_PATH, F=CONCAT(mDFMhud, UUCP_MAILER_FLAGS), S=72/31, R=ifdef(`_ALL_MASQUERADE_', `21/31', `21'), M=UUCP_MAILER_MAX,
|
||||
_OPTINS(`UUCP_MAILER_CHARSET', `C=', `, ')T=X-UUCP/X-UUCP/X-Unix,
|
||||
A=UUCP_MAILER_ARGS')
|
||||
|
||||
|
||||
#
|
||||
# envelope and header sender rewriting
|
||||
#
|
||||
S12
|
||||
|
||||
# handle error address as a special case
|
||||
R<@> $n errors to mailer-daemon
|
||||
|
||||
# list:; syntax should disappear
|
||||
R:; <@> $@
|
||||
|
||||
R$* < @ $* . > $* $1 < @ $2 > $3 strip trailing dots
|
||||
R$* < @ $=w > $1 strip local name
|
||||
R<@ $- . UUCP > : $+ $1 ! $2 convert to UUCP format
|
||||
R<@ $+ > : $+ $1 ! $2 convert to UUCP format
|
||||
R$* < @ $- . UUCP > $2 ! $1 convert to UUCP format
|
||||
R$* < @ $+ > $2 ! $1 convert to UUCP format
|
||||
R$&h ! $+ ! $+ $@ $1 ! $2 $h!...!user => ...!user
|
||||
R$&h ! $+ $@ $&h ! $1 $h!user => $h!user
|
||||
R$+ $: $U ! $1 prepend our name
|
||||
R! $+ $: $k ! $1 in case $U undefined
|
||||
|
||||
#
|
||||
# envelope recipient rewriting
|
||||
#
|
||||
S22
|
||||
|
||||
# list:; should disappear
|
||||
R:; <@> $@
|
||||
|
||||
R$* < @ $* . > $* $1 < @ $2 > $3 strip trailing dots
|
||||
R$* < @ $j > $1 strip local name
|
||||
R<@ $- . UUCP > : $+ $1 ! $2 convert to UUCP format
|
||||
R<@ $+ > : $+ $1 ! $2 convert to UUCP format
|
||||
R$* < @ $- . UUCP > $2 ! $1 convert to UUCP format
|
||||
R$* < @ $+ > $2 ! $1 convert to UUCP format
|
||||
|
||||
#
|
||||
# header recipient rewriting
|
||||
#
|
||||
S42
|
||||
|
||||
# list:; syntax should disappear
|
||||
R:; <@> $@
|
||||
|
||||
R$* < @ $* . > $* $1 < @ $2 > $3 strip trailing dots
|
||||
R$* < @ $j > $1 strip local name
|
||||
R<@ $- . UUCP > : $+ $1 ! $2 convert to UUCP format
|
||||
R<@ $+ > : $+ $1 ! $2 convert to UUCP format
|
||||
R$* < @ $- . UUCP > $2 ! $1 convert to UUCP format
|
||||
R$* < @ $+ > $2 ! $1 convert to UUCP format
|
||||
R$&h ! $+ ! $+ $@ $1 ! $2 $h!...!user => ...!user
|
||||
R$&h ! $+ $@ $&h ! $1 $h!user => $h!user
|
||||
R$+ $: $U ! $1 prepend our name
|
||||
R! $+ $: $k ! $1 in case $U undefined
|
||||
|
||||
|
||||
ifdef(`_MAILER_smtp_',
|
||||
`#
|
||||
# envelope sender rewriting for uucp-dom mailer
|
||||
#
|
||||
S52
|
||||
|
||||
# handle error address as a special case
|
||||
R<@> $n errors to mailer-daemon
|
||||
|
||||
# pass everything to standard SMTP mailer rewriting
|
||||
R$* $@ $>11 $1
|
||||
|
||||
#
|
||||
# envelope sender rewriting for uucp-uudom mailer
|
||||
#
|
||||
S72
|
||||
|
||||
# handle error address as a special case
|
||||
R<@> $n errors to mailer-daemon
|
||||
|
||||
# do standard SMTP mailer rewriting
|
||||
R$* $: $>11 $1
|
||||
|
||||
R$* < @ $* . > $* $1 < @ $2 > $3 strip trailing dots
|
||||
R<@ $- . UUCP > : $+ $@ $1 ! $2 convert to UUCP format
|
||||
R<@ $+ > : $+ $@ $1 ! $2 convert to UUCP format
|
||||
R$* < @ $- . UUCP > $@ $2 ! $1 convert to UUCP format
|
||||
R$* < @ $+ > $@ $2 ! $1 convert to UUCP format')
|
||||
|
||||
|
||||
PUSHDIVERT(4)
|
||||
# resolve locally connected UUCP links
|
||||
R$* < @ $=Z . UUCP. > $* $#uucp-uudom $@ $2 $: $1 < @ $2 .UUCP. > $3
|
||||
R$* < @ $=Y . UUCP. > $* $#uucp-new $@ $2 $: $1 < @ $2 .UUCP. > $3
|
||||
R$* < @ $=U . UUCP. > $* $#uucp-old $@ $2 $: $1 < @ $2 .UUCP. > $3
|
||||
POPDIVERT
|
41
usr.sbin/sendmail/cf/ostype/aix3.m4
Normal file
41
usr.sbin/sendmail/cf/ostype/aix3.m4
Normal file
@ -0,0 +1,41 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)aix3.m4 8.5 (Berkeley) 11/13/95')
|
||||
ifdef(`LOCAL_MAILER_PATH',, `define(`LOCAL_MAILER_PATH', /bin/bellmail)')dnl
|
||||
ifdef(`LOCAL_MAILER_ARGS',, `define(`LOCAL_MAILER_ARGS', mail $u)')dnl
|
||||
ifdef(`LOCAL_MAILER_FLAGS',, `define(`LOCAL_MAILER_FLAGS', `mn')')dnl
|
||||
define(`confTIME_ZONE', `USE_TZ')dnl
|
44
usr.sbin/sendmail/cf/ostype/amdahl-uts.m4
Normal file
44
usr.sbin/sendmail/cf/ostype/amdahl-uts.m4
Normal file
@ -0,0 +1,44 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)amdahl-uts.m4 8.2 (Berkeley) 11/13/95')
|
||||
divert(-1)
|
||||
|
||||
ifdef(`ALIAS_FILE',, `define(`ALIAS_FILE', /etc/mail/aliases)')
|
||||
ifdef(`HELP_FILE',, `define(`HELP_FILE', /etc/mail/sendmail.hf)')
|
||||
ifdef(`STATUS_FILE',, `define(`STATUS_FILE', /usr/lib/sendmail.st)')
|
||||
ifdef(`LOCAL_MAILER_FLAGS',, `define(`LOCAL_MAILER_FLAGS', `fSn')')
|
||||
define(`confCW_FILE', /etc/mail/sendmail.cw)
|
43
usr.sbin/sendmail/cf/ostype/aux.m4
Normal file
43
usr.sbin/sendmail/cf/ostype/aux.m4
Normal file
@ -0,0 +1,43 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)aux.m4 8.2 (Berkeley) 11/13/95')
|
||||
ifdef(`ALIAS_FILE',, `define(`ALIAS_FILE', /usr/lib/aliases)')dnl
|
||||
ifdef(`QUEUE_DIR',, `define(`QUEUE_DIR', /usr/spool/mqueue)')dnl
|
||||
ifdef(`STATUS_FILE',, `define(`STATUS_FILE', /usr/lib/sendmail.st)')dnl
|
||||
ifdef(`UUCP_MAILER_PATH',, `define(`UUCP_MAILER_PATH', /usr/bin/uux)')dnl
|
||||
ifdef(`LOCAL_MAILER_FLAGS',, `define(`LOCAL_MAILER_FLAGS', mn)')dnl
|
||||
ifdef(`LOCAL_MAILER_ARGS',, `define(`LOCAL_MAILER_ARGS', `mail -d -r $f $u')')dnl
|
39
usr.sbin/sendmail/cf/ostype/bsd4.3.m4
Normal file
39
usr.sbin/sendmail/cf/ostype/bsd4.3.m4
Normal file
@ -0,0 +1,39 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)bsd4.3.m4 8.4 (Berkeley) 11/13/95')
|
||||
ifdef(`QUEUE_DIR',, `define(`QUEUE_DIR', /usr/spool/mqueue)')dnl
|
||||
ifdef(`UUCP_MAILER_ARGS',, `define(`UUCP_MAILER_ARGS', `uux - -r -z -a$g $h!rmail ($u)')')dnl
|
42
usr.sbin/sendmail/cf/ostype/bsd4.4.m4
Normal file
42
usr.sbin/sendmail/cf/ostype/bsd4.4.m4
Normal file
@ -0,0 +1,42 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)bsd4.4.m4 8.4 (Berkeley) 11/13/95')
|
||||
ifdef(`HELP_FILE',, `define(`HELP_FILE', /usr/share/misc/sendmail.hf)')dnl
|
||||
ifdef(`STATUS_FILE',, `define(`STATUS_FILE', /var/log/sendmail.st)')dnl
|
||||
ifdef(`LOCAL_MAILER_PATH',, `define(`LOCAL_MAILER_PATH', /usr/libexec/mail.local)')dnl
|
||||
ifdef(`UUCP_MAILER_ARGS',, `define(`UUCP_MAILER_ARGS', `uux - -r -z -a$g $h!rmail ($u)')')dnl
|
38
usr.sbin/sendmail/cf/ostype/bsdi1.0.m4
Normal file
38
usr.sbin/sendmail/cf/ostype/bsdi1.0.m4
Normal file
@ -0,0 +1,38 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)bsdi1.0.m4 8.2 (Berkeley) 8/16/95')dnl
|
||||
include(_CF_DIR_`'ostype/bsd4.4.m4)dnl
|
38
usr.sbin/sendmail/cf/ostype/bsdi2.0.m4
Normal file
38
usr.sbin/sendmail/cf/ostype/bsdi2.0.m4
Normal file
@ -0,0 +1,38 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)bsdi2.0.m4 8.1 (Berkeley) 8/16/95')dnl
|
||||
include(_CF_DIR_`'ostype/bsd4.4.m4)dnl
|
39
usr.sbin/sendmail/cf/ostype/dgux.m4
Normal file
39
usr.sbin/sendmail/cf/ostype/dgux.m4
Normal file
@ -0,0 +1,39 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)dgux.m4 8.2 (Berkeley) 11/13/95')
|
||||
ifdef(`LOCAL_MAILER_FLAGS',, `define(`LOCAL_MAILER_FLAGS', m)')dnl
|
||||
define(`confTIME_ZONE', `USE_TZ')dnl
|
42
usr.sbin/sendmail/cf/ostype/domainos.m4
Normal file
42
usr.sbin/sendmail/cf/ostype/domainos.m4
Normal file
@ -0,0 +1,42 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)domainos.m4 8.2 (Berkeley) 11/13/95')
|
||||
divert(-1)
|
||||
|
||||
ifdef(`ALIAS_FILE',, `define(`ALIAS_FILE', /usr/lib/aliases)')
|
||||
ifdef(`STATUS_FILE',, `define(`STATUS_FILE', /usr/lib/sendmail.st)')
|
||||
ifdef(`QUEUE_DIR',, `define(`QUEUE_DIR', /usr/spool/mqueue)')
|
39
usr.sbin/sendmail/cf/ostype/dynix3.2.m4
Normal file
39
usr.sbin/sendmail/cf/ostype/dynix3.2.m4
Normal file
@ -0,0 +1,39 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)dynix3.2.m4 8.2 (Berkeley) 11/13/95')
|
||||
ifdef(`ALIAS_FILE',, `define(`ALIAS_FILE', /usr/lib/aliases)')dnl
|
||||
ifdef(`QUEUE_DIR',, `define(`QUEUE_DIR', /usr/spool/mqueue)')dnl
|
51
usr.sbin/sendmail/cf/ostype/hpux10.m4
Normal file
51
usr.sbin/sendmail/cf/ostype/hpux10.m4
Normal file
@ -0,0 +1,51 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)hpux10.m4 8.6 (Berkeley) 11/13/95')
|
||||
|
||||
ifdef(`QUEUE_DIR',, `define(`QUEUE_DIR', /var/spool/mqueue)')dnl
|
||||
ifdef(`ALIAS_FILE',, `define(`ALIAS_FILE', /etc/mail/aliases)')dnl
|
||||
ifdef(`STATUS_FILE',, `define(`STATUS_FILE', /etc/mail/sendmail.st)')dnl
|
||||
ifdef(`HELP_FILE',, `define(`HELP_FILE', /usr/share/lib/sendmail.hf)')dnl
|
||||
ifdef(`LOCAL_MAILER_PATH',, `define(`LOCAL_MAILER_PATH', /usr/bin/rmail)')dnl
|
||||
ifdef(`LOCAL_MAILER_FLAGS',, `define(`LOCAL_MAILER_FLAGS', `m')')dnl
|
||||
ifdef(`LOCAL_MAILER_ARGS',, `define(`LOCAL_MAILER_ARGS', `rmail -d $u')')dnl
|
||||
ifdef(`LOCAL_SHELL_PATH',, `define(`LOCAL_SHELL_PATH', /usr/bin/sh)')dnl
|
||||
ifdef(`UUCP_MAILER_ARGS',, `define(`UUCP_MAILER_ARGS', `uux - -r -a$g -gC $h!rmail ($u)')')dnl
|
||||
define(`confTIME_ZONE', `USE_TZ')dnl
|
||||
dnl
|
||||
dnl For maximum compability with HP-UX, use:
|
||||
dnl define(`confME_TOO', True)dnl
|
49
usr.sbin/sendmail/cf/ostype/hpux9.m4
Normal file
49
usr.sbin/sendmail/cf/ostype/hpux9.m4
Normal file
@ -0,0 +1,49 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)hpux9.m4 8.10 (Berkeley) 11/13/95')
|
||||
|
||||
ifdef(`QUEUE_DIR',, `define(`QUEUE_DIR', /usr/spool/mqueue)')dnl
|
||||
ifdef(`ALIAS_FILE',, `define(`ALIAS_FILE', /usr/lib/aliases)')dnl
|
||||
ifdef(`STATUS_FILE',, `define(`STATUS_FILE', /usr/lib/sendmail.st)')dnl
|
||||
ifdef(`LOCAL_MAILER_PATH',, `define(`LOCAL_MAILER_PATH', `/bin/rmail')')dnl
|
||||
ifdef(`LOCAL_MAILER_FLAGS',, `define(`LOCAL_MAILER_FLAGS', `m')')dnl
|
||||
ifdef(`LOCAL_MAILER_ARGS',, `define(`LOCAL_MAILER_ARGS', `rmail -d $u')')dnl
|
||||
ifdef(`UUCP_MAILER_ARGS',, `define(`UUCP_MAILER_ARGS', `uux - -r -a$g -gC $h!rmail ($u)')')dnl
|
||||
define(`confTIME_ZONE', `USE_TZ')dnl
|
||||
dnl
|
||||
dnl For maximum compability with HP-UX, use:
|
||||
dnl define(`confME_TOO', True)dnl
|
41
usr.sbin/sendmail/cf/ostype/irix4.m4
Normal file
41
usr.sbin/sendmail/cf/ostype/irix4.m4
Normal file
@ -0,0 +1,41 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)irix4.m4 8.5 (Berkeley) 11/13/95')
|
||||
ifdef(`LOCAL_MAILER_FLAGS',, `define(`LOCAL_MAILER_FLAGS', Ehm)')dnl
|
||||
ifdef(`QUEUE_DIR',, `define(`QUEUE_DIR', /usr/spool/mqueue)')dnl
|
||||
ifdef(`ALIAS_FILE',, `define(`ALIAS_FILE', /usr/lib/aliases)')dnl
|
||||
ifdef(`STATUS_FILE',, `define(`STATUS_FILE', /usr/lib/sendmail.st)')dnl
|
61
usr.sbin/sendmail/cf/ostype/irix5.m4
Normal file
61
usr.sbin/sendmail/cf/ostype/irix5.m4
Normal file
@ -0,0 +1,61 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1995 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Contributed by Kari E. Hurtta <Kari.Hurtta@dionysos.fmi.fi>
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#
|
||||
# Notes:
|
||||
# - SGI's /etc/sendmail.cf defines also 'u' for local mailer flags -- you
|
||||
# perhaps don't want it.
|
||||
# - Perhaps is should also add define(`LOCAL_MAILER_CHARSET', iso-8859-1)
|
||||
# put some Asian sites may prefer otherwise -- or perhaps not.
|
||||
# - SGI's /etc/sendmail.cf seems use: A=mail -s -d $u
|
||||
# It seems work without that -s however.
|
||||
# - SGI's /etc/sendmail.cf set's default uid and gid to 998 (guest)
|
||||
# - In SGI seems that TZ variable is needed that correct time is marked to
|
||||
# syslog
|
||||
# - helpfile is in /etc/sendmail.hf in SGI's /etc/sendmail.cf
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)irix5.m4 8.2 (Berkeley) 11/13/95')
|
||||
ifdef(`LOCAL_MAILER_FLAGS',, `define(`LOCAL_MAILER_FLAGS', Ehmu)')dnl
|
||||
ifdef(`LOCAL_MAILER_ARGS',, `define(`LOCAL_MAILER_ARGS', `mail -s -d $u')')dnl
|
||||
ifdef(`QUEUE_DIR',, `define(`QUEUE_DIR', /var/spool/mqueue)')dnl
|
||||
ifdef(`ALIAS_FILE',, `define(`ALIAS_FILE', /etc/aliases)')dnl
|
||||
ifdef(`STATUS_FILE',, `define(`STATUS_FILE', /var/sendmail.st)')dnl
|
||||
ifdef(`HELP_FILE',, `define(`HELP_FILE', /etc/sendmail.hf)')dnl
|
||||
define(`confDEF_USER_ID', `998:998')dnl
|
||||
define(`confTIME_ZONE', USE_TZ)dnl
|
48
usr.sbin/sendmail/cf/ostype/isc4.1.m4
Normal file
48
usr.sbin/sendmail/cf/ostype/isc4.1.m4
Normal file
@ -0,0 +1,48 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)isc4.1.m4 8.2 (Berkeley) 11/13/95')
|
||||
ifdef(`ALIAS_FILE',, `define(`ALIAS_FILE', /usr/lib/aliases)')dnl
|
||||
ifdef(`HELP_FILE',, `define(`HELP_FILE', /usr/lib/sendmail.hf)')dnl
|
||||
ifdef(`LOCAL_MAILER_ARGS',, `define(`LOCAL_MAILER_ARGS', `lmail -s $u')')dnl
|
||||
ifdef(`LOCAL_MAILER_FLAGS',, `define(`LOCAL_MAILER_FLAGS', `humS')')dnl
|
||||
ifdef(`LOCAL_MAILER_PATH',, `define(`LOCAL_MAILER_PATH', /bin/lmail)')dnl
|
||||
ifdef(`QUEUE_DIR',, `define(`QUEUE_DIR', /usr/spool/mqueue)')dnl
|
||||
ifdef(`STATUS_FILE',, `define(`STATUS_FILE', /usr/lib/sendmail.st)')dnl
|
||||
ifdef(`UUCP_MAILER_ARGS',, `define(`UUCP_MAILER_ARGS', `uux - -r -gC $h!rmail ($u)')')dnl
|
||||
ifdef(`UUCP_MAILER_PATH',, `define(`UUCP_MAILER_PATH', /usr/bin/uux)')dnl
|
||||
define(`confTIME_ZONE', `USE_TZ')dnl
|
44
usr.sbin/sendmail/cf/ostype/nextstep.m4
Normal file
44
usr.sbin/sendmail/cf/ostype/nextstep.m4
Normal file
@ -0,0 +1,44 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)nextstep.m4 8.5 (Berkeley) 11/13/95')
|
||||
ifdef(`ALIAS_FILE',, `define(`ALIAS_FILE', /etc/sendmail/aliases)')dnl
|
||||
ifdef(`HELP_FILE',, `define(`HELP_FILE', /usr/lib/sendmail.hf)')dnl
|
||||
ifdef(`STATUS_FILE',, `define(`STATUS_FILE', /etc/sendmail/sendmail.st)')dnl
|
||||
ifdef(`UUCP_MAILER_PATH',, `define(`UUCP_MAILER_PATH', /usr/bin/uux)')dnl
|
||||
ifdef(`QUEUE_DIR',, `define(`QUEUE_DIR', /usr/spool/mqueue)')dnl
|
||||
ifdef(`LOCAL_MAILER_FLAGS',, `define(`LOCAL_MAILER_FLAGS', `rmnP')')dnl
|
||||
ifdef(`LOCAL_SHELL_FLAGS',, `define(`LOCAL_SHELL_FLAGS', `euP')')dnl
|
40
usr.sbin/sendmail/cf/ostype/osf1.m4
Normal file
40
usr.sbin/sendmail/cf/ostype/osf1.m4
Normal file
@ -0,0 +1,40 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)osf1.m4 8.3 (Berkeley) 11/13/95')
|
||||
ifdef(`ALIAS_FILE',, `define(`ALIAS_FILE', /usr/adm/sendmail/aliases)')dnl
|
||||
ifdef(`STATUS_FILE',, `define(`STATUS_FILE', /usr/adm/sendmail/sendmail.st)')dnl
|
||||
ifdef(`HELP_FILE',, `define(`HELP_FILE', /usr/share/lib/sendmail.hf)')dnl
|
45
usr.sbin/sendmail/cf/ostype/ptx2.m4
Normal file
45
usr.sbin/sendmail/cf/ostype/ptx2.m4
Normal file
@ -0,0 +1,45 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1994 Eric P. Allman
|
||||
# Copyright (c) 1994
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
# Support for DYNIX/ptx 2.x.
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)ptx2.m4 8.1 (Berkeley) 12/4/94')
|
||||
ifdef(`ALIAS_FILE',,`define(`ALIAS_FILE', /usr/lib/aliases)')dnl
|
||||
ifdef(`HELP_FILE',,`define(`HELP_FILE', /usr/lib/sendmail.hf)')dnl
|
||||
ifdef(`STATUS_FILE',,`define(`STATUS_FILE', /usr/lib/sendmail.st)')dnl
|
||||
define(`LOCAL_MAILER_PATH', `/bin/mail')dnl
|
||||
define(`LOCAL_MAILER_FLAGS', `rmn')dnl
|
||||
define(`LOCAL_SHELL_FLAGS', `e')dnl
|
42
usr.sbin/sendmail/cf/ostype/riscos4.5.m4
Normal file
42
usr.sbin/sendmail/cf/ostype/riscos4.5.m4
Normal file
@ -0,0 +1,42 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)riscos4.5.m4 8.3 (Berkeley) 11/13/95')
|
||||
|
||||
ifdef(`LOCAL_MAILER_ARGS',, `define(`LOCAL_MAILER_ARGS', `rmail -d $u')')dnl
|
||||
ifdef(`ALIAS_FILE',, `define(`ALIAS_FILE', `/usr/lib/aliases')')dnl
|
||||
ifdef(`QUEUE_DIR',, `define(`QUEUE_DIR', `/usr/spool/mqueue')')dnl
|
||||
ifdef(`HELP_FILE',, `define(`HELP_FILE', `/usr/lib/sendmail.hf')')dnl
|
45
usr.sbin/sendmail/cf/ostype/sco3.2.m4
Normal file
45
usr.sbin/sendmail/cf/ostype/sco3.2.m4
Normal file
@ -0,0 +1,45 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)sco3.2.m4 8.2 (Berkeley) 11/13/95')
|
||||
ifdef(`ALIAS_FILE',, `define(`ALIAS_FILE', /usr/lib/mail/aliases)')dnl
|
||||
ifdef(`QUEUE_DIR',, `define(`QUEUE_DIR', /usr/spool/mqueue)')dnl
|
||||
ifdef(`STATUS_FILE',, `define(`STATUS_FILE', /usr/lib/sendmail.st)')dnl
|
||||
ifdef(`UUCP_MAILER_PATH',, `define(`UUCP_MAILER_PATH', /usr/bin/uux)')dnl
|
||||
ifdef(`LOCAL_MAILER_PATH',, `define(`LOCAL_MAILER_PATH', /usr/bin/lmail)')dnl
|
||||
ifdef(`LOCAL_MAILER_FLAGS',, `define(`LOCAL_MAILER_FLAGS', PuhCE)')dnl
|
||||
ifdef(`LOCAL_MAILER_ARGS',, `define(`LOCAL_MAILER_ARGS', `lmail $u')')dnl
|
||||
ifdef(`LOCAL_SHELL_FLAGS',, `define(`LOCAL_SHELL_FLAGS', Peu)')dnl
|
45
usr.sbin/sendmail/cf/ostype/solaris2.m4
Normal file
45
usr.sbin/sendmail/cf/ostype/solaris2.m4
Normal file
@ -0,0 +1,45 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)solaris2.m4 8.6 (Berkeley) 11/13/95')
|
||||
divert(-1)
|
||||
|
||||
ifdef(`ALIAS_FILE',, `define(`ALIAS_FILE', /etc/mail/aliases)')
|
||||
ifdef(`HELP_FILE',, `define(`HELP_FILE', /etc/mail/sendmail.hf)')
|
||||
ifdef(`STATUS_FILE',, `define(`STATUS_FILE', /etc/mail/sendmail.st)')
|
||||
ifdef(`LOCAL_MAILER_FLAGS',, `define(`LOCAL_MAILER_FLAGS', `SnE')')
|
||||
ifdef(`LOCAL_MAILER_ARGS',, `define(`LOCAL_MAILER_ARGS', `mail -f $g -d $u')')
|
||||
define(`confCW_FILE', /etc/mail/sendmail.cw)
|
45
usr.sbin/sendmail/cf/ostype/svr4.m4
Normal file
45
usr.sbin/sendmail/cf/ostype/svr4.m4
Normal file
@ -0,0 +1,45 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)svr4.m4 8.2 (Berkeley) 5/26/95')
|
||||
|
||||
ifdef(`ALIAS_FILE',,`define(`ALIAS_FILE', /usr/ucblib/aliases)')dnl
|
||||
ifdef(`HELP_FILE',,`define(`HELP_FILE', /usr/ucblib/sendmail.hf)')dnl
|
||||
ifdef(`STATUS_FILE',,`define(`STATUS_FILE', /usr/ucblib/sendmail.st)')dnl
|
||||
define(`LOCAL_MAILER_PATH', `/usr/ucblib/binmail')dnl
|
||||
define(`LOCAL_MAILER_FLAGS', `rmn')dnl
|
||||
define(`LOCAL_SHELL_FLAGS', `ehuP')dnl
|
||||
define(`UUCP_MAILER_ARGS', `uux - -r -a$g -gmedium $h!rmail ($u)')dnl
|
37
usr.sbin/sendmail/cf/ostype/ultrix4.m4
Normal file
37
usr.sbin/sendmail/cf/ostype/ultrix4.m4
Normal file
@ -0,0 +1,37 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)ultrix4.m4 8.2 (Berkeley) 7/2/94')
|
41
usr.sbin/sendmail/cf/ostype/unknown.m4
Normal file
41
usr.sbin/sendmail/cf/ostype/unknown.m4
Normal file
@ -0,0 +1,41 @@
|
||||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
|
||||
divert(0)
|
||||
VERSIONID(`@(#)unknown.m4 8.1 (Berkeley) 4/21/95')
|
||||
errprint(`*** ERROR: You have not specified a valid operating system type.')
|
||||
errprint(` Use the OSTYPE macro to select a valid system type. This')
|
||||
errprint(` is necessary in order to get the proper pathnames and flags')
|
||||
errprint(` appropriate for your environment.')
|
79
usr.sbin/sendmail/cf/sh/makeinfo.sh
Normal file
79
usr.sbin/sendmail/cf/sh/makeinfo.sh
Normal file
@ -0,0 +1,79 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 1983 Eric P. Allman
|
||||
# Copyright (c) 1988, 1993
|
||||
# The Regents of the University of California. All rights reserved.
|
||||
#
|
||||
# Redistribution and use in source and binary forms, with or without
|
||||
# modification, are permitted provided that the following conditions
|
||||
# are met:
|
||||
# 1. Redistributions of source code must retain the above copyright
|
||||
# notice, this list of conditions and the following disclaimer.
|
||||
# 2. Redistributions in binary form must reproduce the above copyright
|
||||
# notice, this list of conditions and the following disclaimer in the
|
||||
# documentation and/or other materials provided with the distribution.
|
||||
# 3. All advertising materials mentioning features or use of this software
|
||||
# must display the following acknowledgement:
|
||||
# This product includes software developed by the University of
|
||||
# California, Berkeley and its contributors.
|
||||
# 4. Neither the name of the University nor the names of its contributors
|
||||
# may be used to endorse or promote products derived from this software
|
||||
# without specific prior written permission.
|
||||
#
|
||||
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
# SUCH DAMAGE.
|
||||
#
|
||||
# @(#)makeinfo.sh 8.6 (Berkeley) 8/6/95
|
||||
#
|
||||
|
||||
usewhoami=0
|
||||
usehostname=0
|
||||
for p in `echo $PATH | sed 's/:/ /g'`
|
||||
do
|
||||
if [ "x$p" = "x" ]
|
||||
then
|
||||
p="."
|
||||
fi
|
||||
if [ -f $p/whoami ]
|
||||
then
|
||||
usewhoami=1
|
||||
if [ $usehostname -ne 0 ]
|
||||
then
|
||||
break;
|
||||
fi
|
||||
fi
|
||||
if [ -f $p/hostname ]
|
||||
then
|
||||
usehostname=1
|
||||
if [ $usewhoami -ne 0 ]
|
||||
then
|
||||
break;
|
||||
fi
|
||||
fi
|
||||
done
|
||||
if [ $usewhoami -ne 0 ]
|
||||
then
|
||||
user=`whoami`
|
||||
else
|
||||
user=$LOGNAME
|
||||
fi
|
||||
|
||||
if [ $usehostname -ne 0 ]
|
||||
then
|
||||
host=`hostname`
|
||||
else
|
||||
host=`uname -n`
|
||||
fi
|
||||
echo '#####' built by $user@$host on `date`
|
||||
echo '#####' in `pwd` | sed 's/\/tmp_mnt//'
|
||||
echo '#####' using $1 as configuration include directory | sed 's/\/tmp_mnt//'
|
||||
echo "define(\`__HOST__', $host)dnl"
|
409
usr.sbin/sendmail/contrib/bitdomain.c
Normal file
409
usr.sbin/sendmail/contrib/bitdomain.c
Normal file
@ -0,0 +1,409 @@
|
||||
/*
|
||||
* By John G. Myers, jgm+@cmu.edu
|
||||
* Version 1.2
|
||||
*
|
||||
* Process a BITNET "internet.listing" file, producing output
|
||||
* suitable for input to makemap.
|
||||
*
|
||||
* The input file can be obtained via anonymous FTP to bitnic.educom.edu.
|
||||
* Change directory to "netinfo" and get the file internet.listing
|
||||
* The file is updated monthly.
|
||||
*
|
||||
* Feed the output of this program to "makemap hash /etc/bitdomain.db"
|
||||
* to create the table used by the "FEATURE(bitdomain)" config file macro.
|
||||
* If your sendmail does not have the db library compiled in, you can instead
|
||||
* use "makemap dbm /etc/bitdomain" and
|
||||
* "FEATURE(bitdomain,`dbm -o /etc/bitdomain')"
|
||||
*
|
||||
* The bitdomain table should be rebuilt monthly.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/nameser.h>
|
||||
#include <resolv.h>
|
||||
#include <netdb.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
|
||||
/* don't use sizeof because sizeof(long) is different on 64-bit machines */
|
||||
#define SHORTSIZE 2 /* size of a short (really, must be 2) */
|
||||
#define LONGSIZE 4 /* size of a long (really, must be 4) */
|
||||
|
||||
typedef union
|
||||
{
|
||||
HEADER qb1;
|
||||
char qb2[PACKETSZ];
|
||||
} querybuf;
|
||||
|
||||
extern int h_errno;
|
||||
extern char *malloc();
|
||||
extern char *optarg;
|
||||
extern int optind;
|
||||
|
||||
char *lookup();
|
||||
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char **argv;
|
||||
{
|
||||
int opt;
|
||||
|
||||
while ((opt = getopt(argc, argv, "o:")) != EOF) {
|
||||
switch (opt) {
|
||||
case 'o':
|
||||
if (!freopen(optarg, "w", stdout)) {
|
||||
perror(optarg);
|
||||
exit(1);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
fprintf(stderr, "usage: %s [-o outfile] [internet.listing]\n",
|
||||
argv[0]);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
if (optind < argc) {
|
||||
if (!freopen(argv[optind], "r", stdin)) {
|
||||
perror(argv[optind]);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
readfile(stdin);
|
||||
finish();
|
||||
exit(0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Parse and process an input file
|
||||
*/
|
||||
readfile(infile)
|
||||
FILE *infile;
|
||||
{
|
||||
int skippingheader = 1;
|
||||
char buf[1024], *node, *hostname, *p;
|
||||
|
||||
while (fgets(buf, sizeof(buf), infile)) {
|
||||
for (p = buf; *p && isspace(*p); p++);
|
||||
if (!*p) {
|
||||
skippingheader = 0;
|
||||
continue;
|
||||
}
|
||||
if (skippingheader) continue;
|
||||
|
||||
node = p;
|
||||
for (; *p && !isspace(*p); p++) {
|
||||
if (isupper(*p)) *p = tolower(*p);
|
||||
}
|
||||
if (!*p) {
|
||||
fprintf(stderr, "%-8s: no domain name in input file\n", node);
|
||||
continue;
|
||||
}
|
||||
*p++ = '\0';
|
||||
|
||||
for (; *p && isspace(*p); p++) ;
|
||||
if (!*p) {
|
||||
fprintf(stderr, "%-8s no domain name in input file\n", node);
|
||||
continue;
|
||||
}
|
||||
|
||||
hostname = p;
|
||||
for (; *p && !isspace(*p); p++) {
|
||||
if (isupper(*p)) *p = tolower(*p);
|
||||
}
|
||||
*p = '\0';
|
||||
|
||||
/* Chop off any trailing .bitnet */
|
||||
if (strlen(hostname) > 7 &&
|
||||
!strcmp(hostname+strlen(hostname)-7, ".bitnet")) {
|
||||
hostname[strlen(hostname)-7] = '\0';
|
||||
}
|
||||
entry(node, hostname, sizeof(buf)-(hostname - buf));
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Process a single entry in the input file.
|
||||
* The entry tells us that "node" expands to "domain".
|
||||
* "domain" can either be a domain name or a bitnet node name
|
||||
* The buffer pointed to by "domain" may be overwritten--it
|
||||
* is of size "domainlen".
|
||||
*/
|
||||
entry(node, domain, domainlen)
|
||||
char *node;
|
||||
char *domain;
|
||||
char *domainlen;
|
||||
{
|
||||
char *otherdomain, *p, *err;
|
||||
|
||||
/* See if we have any remembered information about this node */
|
||||
otherdomain = lookup(node);
|
||||
|
||||
if (otherdomain && strchr(otherdomain, '.')) {
|
||||
/* We already have a domain for this node */
|
||||
if (!strchr(domain, '.')) {
|
||||
/*
|
||||
* This entry is an Eric Thomas FOO.BITNET kludge.
|
||||
* He doesn't want LISTSERV to do transitive closures, so we
|
||||
* do them instead. Give the the domain expansion for "node"
|
||||
* (which is in "otherdomian") to FOO (which is in "domain")
|
||||
* if "domain" doesn't have a domain expansion already.
|
||||
*/
|
||||
p = lookup(domain);
|
||||
if (!p || !strchr(p, '.')) remember(domain, otherdomain);
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!strchr(domain, '.') || valhost(domain, domainlen)) {
|
||||
remember(node, domain);
|
||||
if (otherdomain) {
|
||||
/*
|
||||
* We previously mapped the node "node" to the node
|
||||
* "otherdomain". If "otherdomain" doesn't already
|
||||
* have a domain expansion, give it the expansion "domain".
|
||||
*/
|
||||
p = lookup(otherdomain);
|
||||
if (!p || !strchr(p, '.')) remember(otherdomain, domain);
|
||||
}
|
||||
}
|
||||
else {
|
||||
switch (h_errno) {
|
||||
case HOST_NOT_FOUND:
|
||||
err = "not registered in DNS";
|
||||
break;
|
||||
|
||||
case TRY_AGAIN:
|
||||
err = "temporary DNS lookup failure";
|
||||
break;
|
||||
|
||||
case NO_RECOVERY:
|
||||
err = "non-recoverable nameserver error";
|
||||
break;
|
||||
|
||||
case NO_DATA:
|
||||
err = "registered in DNS, but not mailable";
|
||||
break;
|
||||
|
||||
default:
|
||||
err = "unknown nameserver error";
|
||||
break;
|
||||
}
|
||||
|
||||
fprintf(stderr, "%-8s %s %s\n", node, domain, err);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Validate whether the mail domain "host" is registered in the DNS.
|
||||
* If "host" is a CNAME, it is expanded in-place if the expansion fits
|
||||
* into the buffer of size "hbsize". Returns nonzero if it is, zero
|
||||
* if it is not. A BIND error code is left in h_errno.
|
||||
*/
|
||||
int
|
||||
valhost(host, hbsize)
|
||||
char *host;
|
||||
int hbsize;
|
||||
{
|
||||
register u_char *eom, *ap;
|
||||
register int n;
|
||||
HEADER *hp;
|
||||
querybuf answer;
|
||||
int ancount, qdcount;
|
||||
int ret;
|
||||
int type;
|
||||
int qtype;
|
||||
char nbuf[1024];
|
||||
|
||||
if ((_res.options & RES_INIT) == 0 && res_init() == -1)
|
||||
return (0);
|
||||
|
||||
_res.options &= ~(RES_DNSRCH|RES_DEFNAMES);
|
||||
_res.retrans = 30;
|
||||
_res.retry = 10;
|
||||
|
||||
qtype = T_ANY;
|
||||
|
||||
for (;;) {
|
||||
h_errno = NO_DATA;
|
||||
ret = res_querydomain(host, "", C_IN, qtype,
|
||||
&answer, sizeof(answer));
|
||||
if (ret <= 0)
|
||||
{
|
||||
if (errno == ECONNREFUSED || h_errno == TRY_AGAIN)
|
||||
{
|
||||
/* the name server seems to be down */
|
||||
h_errno = TRY_AGAIN;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (h_errno != HOST_NOT_FOUND)
|
||||
{
|
||||
/* might have another type of interest */
|
||||
if (qtype == T_ANY)
|
||||
{
|
||||
qtype = T_A;
|
||||
continue;
|
||||
}
|
||||
else if (qtype == T_A)
|
||||
{
|
||||
qtype = T_MX;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
/* otherwise, no record */
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
** This might be a bogus match. Search for A, MX, or
|
||||
** CNAME records.
|
||||
*/
|
||||
|
||||
hp = (HEADER *) &answer;
|
||||
ap = (u_char *) &answer + sizeof(HEADER);
|
||||
eom = (u_char *) &answer + ret;
|
||||
|
||||
/* skip question part of response -- we know what we asked */
|
||||
for (qdcount = ntohs(hp->qdcount); qdcount--; ap += ret + QFIXEDSZ)
|
||||
{
|
||||
if ((ret = dn_skipname(ap, eom)) < 0)
|
||||
{
|
||||
return 0; /* ???XXX??? */
|
||||
}
|
||||
}
|
||||
|
||||
for (ancount = ntohs(hp->ancount); --ancount >= 0 && ap < eom; ap += n)
|
||||
{
|
||||
n = dn_expand((u_char *) &answer, eom, ap,
|
||||
(u_char *) nbuf, sizeof nbuf);
|
||||
if (n < 0)
|
||||
break;
|
||||
ap += n;
|
||||
GETSHORT(type, ap);
|
||||
ap += SHORTSIZE + LONGSIZE;
|
||||
GETSHORT(n, ap);
|
||||
switch (type)
|
||||
{
|
||||
case T_MX:
|
||||
case T_A:
|
||||
return 1;
|
||||
|
||||
case T_CNAME:
|
||||
/* value points at name */
|
||||
if ((ret = dn_expand((u_char *)&answer,
|
||||
eom, ap, (u_char *)nbuf, sizeof(nbuf))) < 0)
|
||||
break;
|
||||
if (strlen(nbuf) < hbsize) {
|
||||
(void)strcpy(host, nbuf);
|
||||
}
|
||||
return 1;
|
||||
|
||||
default:
|
||||
/* not a record of interest */
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
** If this was a T_ANY query, we may have the info but
|
||||
** need an explicit query. Try T_A, then T_MX.
|
||||
*/
|
||||
|
||||
if (qtype == T_ANY)
|
||||
qtype = T_A;
|
||||
else if (qtype == T_A)
|
||||
qtype = T_MX;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
struct entry {
|
||||
struct entry *next;
|
||||
char *node;
|
||||
char *domain;
|
||||
};
|
||||
struct entry *firstentry;
|
||||
|
||||
/*
|
||||
* Find any remembered information about "node"
|
||||
*/
|
||||
char *lookup(node)
|
||||
char *node;
|
||||
{
|
||||
struct entry *p;
|
||||
|
||||
for (p = firstentry; p; p = p->next) {
|
||||
if (!strcmp(node, p->node)) {
|
||||
return p->domain;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Mark the node "node" as equivalent to "domain". "domain" can either
|
||||
* be a bitnet node or a domain name--if it is the latter, the mapping
|
||||
* will be written to stdout.
|
||||
*/
|
||||
remember(node, domain)
|
||||
char *node;
|
||||
char *domain;
|
||||
{
|
||||
struct entry *p;
|
||||
|
||||
if (strchr(domain, '.')) {
|
||||
fprintf(stdout, "%-8s %s\n", node, domain);
|
||||
}
|
||||
|
||||
for (p = firstentry; p; p = p->next) {
|
||||
if (!strcmp(node, p->node)) {
|
||||
p->domain = malloc(strlen(domain)+1);
|
||||
if (!p->domain) {
|
||||
goto outofmemory;
|
||||
}
|
||||
strcpy(p->domain, domain);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
p = (struct entry *)malloc(sizeof(struct entry));
|
||||
if (!p) goto outofmemory;
|
||||
|
||||
p->next = firstentry;
|
||||
firstentry = p;
|
||||
p->node = malloc(strlen(node)+1);
|
||||
p->domain = malloc(strlen(domain)+1);
|
||||
if (!p->node || !p->domain) goto outofmemory;
|
||||
strcpy(p->node, node);
|
||||
strcpy(p->domain, domain);
|
||||
return;
|
||||
|
||||
outofmemory:
|
||||
fprintf(stderr, "Out of memory\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/*
|
||||
* Walk through the database, looking for any cases where we know
|
||||
* node FOO is equivalent to node BAR and node BAR has a domain name.
|
||||
* For those cases, give FOO the same domain name as BAR.
|
||||
*/
|
||||
finish()
|
||||
{
|
||||
struct entry *p;
|
||||
char *domain;
|
||||
|
||||
for (p = firstentry; p; p = p->next) {
|
||||
if (!strchr(p->domain, '.') && (domain = lookup(p->domain))) {
|
||||
remember(p->node, domain);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
191
usr.sbin/sendmail/contrib/bsdi.mc
Normal file
191
usr.sbin/sendmail/contrib/bsdi.mc
Normal file
@ -0,0 +1,191 @@
|
||||
Return-Path: sanders@austin.BSDI.COM
|
||||
Received: from hofmann.CS.Berkeley.EDU (hofmann.CS.Berkeley.EDU [128.32.34.35]) by orodruin.CS.Berkeley.EDU (8.6.9/8.7.0.Beta0) with ESMTP id KAA28278 for <eric@orodruin.CS.Berkeley.EDU>; Sat, 10 Dec 1994 10:49:08 -0800
|
||||
Received: from austin.BSDI.COM (austin.BSDI.COM [137.39.95.2]) by hofmann.CS.Berkeley.EDU (8.6.9/8.6.6.Beta11) with ESMTP id KAA09482 for <eric@cs.berkeley.edu>; Sat, 10 Dec 1994 10:49:03 -0800
|
||||
Received: from austin.BSDI.COM (sanders@localhost [127.0.0.1]) by austin.BSDI.COM (8.6.9/8.6.9) with ESMTP id MAA14919 for <eric@cs.berkeley.edu>; Sat, 10 Dec 1994 12:49:01 -0600
|
||||
Message-Id: <199412101849.MAA14919@austin.BSDI.COM>
|
||||
To: Eric Allman <eric@cs.berkeley.edu>
|
||||
Subject: Re: sorting mailings lists with fastest delivery users first
|
||||
In-reply-to: Your message of Sat, 10 Dec 1994 08:25:30 PST.
|
||||
References: <199412101625.IAA15407@mastodon.CS.Berkeley.EDU>
|
||||
From: Tony Sanders <sanders@bsdi.com>
|
||||
Organization: Berkeley Software Design, Inc.
|
||||
Date: Sat, 10 Dec 1994 12:49:00 -0600
|
||||
Sender: sanders@austin.BSDI.COM
|
||||
|
||||
(some random text deleted)
|
||||
|
||||
I'll send you something else I've hacked up. You are free to use this
|
||||
or do with it as you like (I hereby make all my parts public domain).
|
||||
It's a sample .mc file that has comments (mostly taken from the README)
|
||||
and examples describing most of the common things people need to setup.
|
||||
|
||||
#
|
||||
# /usr/share/sendmail/cf/sample.mc
|
||||
#
|
||||
# Do not edit /etc/sendmail.cf directly unless you cannot do what you
|
||||
# want in the master config file (/usr/share/sendmail/cf/sample.mc).
|
||||
# To create /etc/sendmail.cf from the master:
|
||||
# cd /usr/share/sendmail/cf
|
||||
# mv /etc/sendmail.cf /etc/sendmail.cf.save
|
||||
# m4 < sample.mc > /etc/sendmail.cf
|
||||
#
|
||||
# Then kill and restart sendmail:
|
||||
# sh -c 'set `cat /var/run/sendmail.pid`; kill $1; shift; eval "$@"'
|
||||
#
|
||||
# See /usr/share/sendmail/README for help in building a configuration file.
|
||||
#
|
||||
include(`../m4/cf.m4')
|
||||
VERSIONID(`@(#)$Id$')
|
||||
|
||||
dnl # Specify your OS type below
|
||||
OSTYPE(`bsd4.4')
|
||||
|
||||
dnl # NOTE: `dnl' is the m4 command for delete-to-newline; these are
|
||||
dnl # used to prevent those lines from appearing in the sendmail.cf.
|
||||
dnl #
|
||||
dnl # UUCP-only sites should configure FEATURE(`nodns') and SMART_HOST.
|
||||
dnl # The uucp-dom mailer requires MAILER(smtp). For more info, see
|
||||
dnl # `UUCP Config' at the end of this file.
|
||||
|
||||
dnl # If you are not running DNS at all, it is important to use
|
||||
dnl # FEATURE(nodns) to avoid having sendmail queue everything
|
||||
dnl # waiting for the name server to come up.
|
||||
dnl # Example:
|
||||
dnl FEATURE(`nodns')
|
||||
|
||||
dnl # Use FEATURE(`nocanonify') to skip address canonification via $[ ... $].
|
||||
dnl # This would generally only be used by sites that only act as mail gateways
|
||||
dnl # or which have user agents that do full canonification themselves.
|
||||
dnl # You may also want to use:
|
||||
dnl # define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')
|
||||
dnl # to turn off the usual resolver options that do a similar thing.
|
||||
dnl # Examples:
|
||||
dnl FEATURE(`nocanonify')
|
||||
dnl define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')
|
||||
|
||||
dnl # If /bin/hostname is not set to the FQDN (Full Qualified Domain Name;
|
||||
dnl # for example, foo.bar.com) *and* you are not running a nameserver
|
||||
dnl # (that is, you do not have an /etc/resolv.conf and are not running
|
||||
dnl # named) *and* the canonical name for your machine in /etc/hosts
|
||||
dnl # (the canonical name is the first name listed for a given IP Address)
|
||||
dnl # is not the FQDN version then define NEED_DOMAIN and specify your
|
||||
dnl # domain using `DD' (for example, if your hostname is `foo.bar.com'
|
||||
dnl # then use DDbar.com). If in doubt, just define it anyway; doesn't hurt.
|
||||
dnl # Examples:
|
||||
dnl define(`NEED_DOMAIN', `1')
|
||||
dnl DDyour.site.domain
|
||||
|
||||
dnl # Define SMART_HOST if you want all outgoing mail to go to a central
|
||||
dnl # site. SMART_HOST applies to names qualified with non-local names.
|
||||
dnl # Example:
|
||||
dnl define(`SMART_HOST', `smtp:firewall.bar.com')
|
||||
|
||||
dnl # Define MAIL_HUB if you want all incoming mail sent to a
|
||||
dnl # centralized hub, as for a shared /var/spool/mail scheme.
|
||||
dnl # MAIL_HUB applies to names qualified with the name of the
|
||||
dnl # local host (e.g., "eric@foo.bar.com").
|
||||
dnl # Example:
|
||||
dnl define(`MAIL_HUB', `smtp:mailhub.bar.com')
|
||||
|
||||
dnl # LOCAL_RELAY is a site that will handle unqualified names, this is
|
||||
dnl # basically for site/company/department wide alias forwarding. By
|
||||
dnl # default mail is delivered on the local host.
|
||||
dnl # Example:
|
||||
dnl define(`LOCAL_RELAY', `smtp:mailgate.bar.com')
|
||||
|
||||
dnl # Relay hosts for fake domains: .UUCP .BITNET .CSNET
|
||||
dnl # Examples:
|
||||
dnl define(`UUCP_RELAY', `mailer:your_relay_host')
|
||||
dnl define(`BITNET_RELAY', `mailer:your_relay_host')
|
||||
dnl define(`CSNET_RELAY', `mailer:your_relay_host')
|
||||
|
||||
dnl # Define `MASQUERADE_AS' is used to hide behind a gateway.
|
||||
dnl # add any accounts you wish to be exposed (i.e., not hidden) to the
|
||||
dnl # `EXPOSED_USER' list.
|
||||
dnl # Example:
|
||||
dnl MASQUERADE_AS(`some.other.host')
|
||||
|
||||
dnl # If masquerading, EXPOSED_USER defines the list of accounts
|
||||
dnl # that retain the local hostname in their address.
|
||||
dnl # Example:
|
||||
dnl EXPOSED_USER(`postmaster hostmaster webmaster')
|
||||
|
||||
dnl # If masquerading is enabled (using MASQUERADE_AS above) then
|
||||
dnl # FEATURE(allmasquerade) will cause recipient addresses to
|
||||
dnl # masquerade as being from the masquerade host instead of
|
||||
dnl # getting the local hostname. Although this may be right for
|
||||
dnl # ordinary users, it breaks local aliases that aren't exposed
|
||||
dnl # using EXPOSED_USER.
|
||||
dnl # Example:
|
||||
dnl FEATURE(allmasquerade)
|
||||
|
||||
dnl # Include any required mailers
|
||||
MAILER(local)
|
||||
MAILER(smtp)
|
||||
MAILER(uucp)
|
||||
|
||||
LOCAL_CONFIG
|
||||
# If this machine should be accepting mail as local for other hostnames
|
||||
# that are MXed to this hostname then add those hostnames below using
|
||||
# a line like:
|
||||
# Cw bar.com
|
||||
# The most common case where you need this is if this machine is supposed
|
||||
# to be accepting mail for the domain. That is, if this machine is
|
||||
# foo.bar.com and you have an MX record in the DNS that looks like:
|
||||
# bar.com. IN MX 0 foo.bar.com.
|
||||
# Then you will need to add `Cw bar.com' to the config file for foo.bar.com.
|
||||
# DO NOT add Cw entries for hosts whom you simply store and forward mail
|
||||
# for or else it will attempt local delivery. So just because bubba.bar.com
|
||||
# is MXed to your machine you should not add a `Cw bubba.bar.com' entry
|
||||
# unless you want local delivery and your machine is the highest-priority
|
||||
# MX entry (that is is has the lowest preference value in the DNS.
|
||||
|
||||
LOCAL_RULE_0
|
||||
# `LOCAL_RULE_0' can be used to introduce alternate delivery rules.
|
||||
# For example, let's say you accept mail via an MX record for widgets.com
|
||||
# (don't forget to add widgets.com to your Cw list, as above).
|
||||
#
|
||||
# If wigets.com only has an AOL address (widgetsinc) then you could use:
|
||||
# R$+ <@ widgets.com.> $#smtp $@aol.com. $:widgetsinc<@aol.com.>
|
||||
#
|
||||
# Or, if widgets.com was connected to you via UUCP as the UUCP host
|
||||
# widgets you might have:
|
||||
# R$+ <@ widgets.com.> $#uucp $@widgets $:$1<@widgets.com.>
|
||||
|
||||
dnl ###
|
||||
dnl ### UUCP Config
|
||||
dnl ###
|
||||
|
||||
dnl # `SITECONFIG(site_config_file, name_of_site, connection)'
|
||||
dnl # site_config_file the name of a file in the cf/siteconfig
|
||||
dnl # directory (less the `.m4')
|
||||
dnl # name_of_site the actual name of your UUCP site
|
||||
dnl # connection one of U, W, X, or Y; where U means the sites listed
|
||||
dnl # in the config file are connected locally; W, X, and Y
|
||||
dnl # build remote UUCP hub classes ($=W, etc).
|
||||
dnl # You will need to create the specific site_config_file in
|
||||
dnl # /usr/share/sendmail/siteconfig/site_config_file.m4
|
||||
dnl # The site_config_file contains a list of directly connected UUCP hosts,
|
||||
dnl # e.g., if you only connect to UUCP site gargoyle then you could just:
|
||||
dnl # echo 'SITE(gargoyle)' > /usr/share/sendmail/siteconfig/uucp.foobar.m4
|
||||
dnl # Example:
|
||||
dnl SITECONFIG(`uucp.foobar', `foobar', U)
|
||||
|
||||
dnl # If you are on a local SMTP-based net that connects to the outside
|
||||
dnl # world via UUCP, you can use LOCAL_NET_CONFIG to add appropriate rules.
|
||||
dnl # For example:
|
||||
dnl # define(`SMART_HOST', suucp:uunet)
|
||||
dnl # LOCAL_NET_CONFIG
|
||||
dnl # R$* < @ $* .$m. > $* $#smtp $@ $2.$m. $: $1 < @ $2.$m. > $3
|
||||
dnl # This will cause all names that end in your domain name ($m) to be sent
|
||||
dnl # via SMTP; anything else will be sent via suucp (smart UUCP) to uunet.
|
||||
dnl # If you have FEATURE(nocanonify), you may need to omit the dots after
|
||||
dnl # the $m.
|
||||
dnl #
|
||||
dnl # If you are running a local DNS inside your domain which is not
|
||||
dnl # otherwise connected to the outside world, you probably want to use:
|
||||
dnl # define(`SMART_HOST', smtp:fire.wall.com)
|
||||
dnl # LOCAL_NET_CONFIG
|
||||
dnl # R$* < @ $* . > $* $#smtp $@ $2. $: $1 < @ $2. > $3
|
||||
dnl # That is, send directly only to things you found in your DNS lookup;
|
||||
dnl # anything else goes through SMART_HOST.
|
1367
usr.sbin/sendmail/contrib/expn.pl
Executable file
1367
usr.sbin/sendmail/contrib/expn.pl
Executable file
File diff suppressed because it is too large
Load Diff
297
usr.sbin/sendmail/contrib/mailprio
Normal file
297
usr.sbin/sendmail/contrib/mailprio
Normal file
@ -0,0 +1,297 @@
|
||||
Message-Id: <199412081919.NAA23234@austin.BSDI.COM>
|
||||
To: Eric Allman <eric@cs.berkeley.edu>
|
||||
Subject: Re: sorting mailings lists with fastest delivery users first
|
||||
In-reply-to: Your message of Thu, 08 Dec 1994 06:08:33 PST.
|
||||
References: <199412081408.GAA06210@mastodon.CS.Berkeley.EDU>
|
||||
From: Tony Sanders <sanders@bsdi.com>
|
||||
Organization: Berkeley Software Design, Inc.
|
||||
Date: Thu, 08 Dec 1994 13:19:39 -0600
|
||||
Sender: sanders@austin.BSDI.COM
|
||||
|
||||
Eric Allman writes:
|
||||
> Nope, that's a new one, so far as I know. Any interest in
|
||||
> contributing it? For small lists it seems overkill, but for
|
||||
> large lists it could be a major win.
|
||||
|
||||
Sure, I will contribute it; after I sent you mail last night I went ahead
|
||||
and finished up what I thought needed to be done. I would like to get
|
||||
some feedback from you on a few items, if you have time.
|
||||
|
||||
There are two programs, mailprio_mkdb and mailprio (source below).
|
||||
|
||||
mailprio_mkdb reads maillog files and creates a DB file of address vs.
|
||||
delay. I'm not too happy with how it does the averages right now but this
|
||||
is just a quick hack. However, it should at least order sites that take
|
||||
days vs. those that deliver on the first pass through. One thing that
|
||||
would make this information a lot more accurate is if sendmail could log
|
||||
a "transaction delay" (on failures also), as well as total delivery delay.
|
||||
Perhaps, as an option, it could maintain the DB file itself?
|
||||
|
||||
mailprio then simply reads a list of addresses from stdin (the mailing
|
||||
list), and tries to prioritize them according to the info the database.
|
||||
It collects comment lines and other junk at the top of the file; all
|
||||
mailprio does is reorder lines, the actual text of the file should
|
||||
be unchanged to the extent that you can verify it with:
|
||||
sort sorted_list > checkit; sort mailing-list | diff - checkit
|
||||
Users with no delay information are put next. The prioritized list is last.
|
||||
Of course, this function could also be built-into sendmail (eventually).
|
||||
|
||||
Putting "new account" info at the top with the current averaging function
|
||||
probably adversly affects the prioritized list (at least in the short
|
||||
term), but putting it at the bottom would not really give the new accounts
|
||||
a fair chance. I suspect this isn't that big of a problem. I'm running
|
||||
this here on a list with 461 accounts and about 10 messages per day so
|
||||
I'll see how it goes. I'll keep some stats on delay times and see what
|
||||
happens.
|
||||
|
||||
Another thing that would help this situation, is if sendmail had the queue
|
||||
ordered by site (but you already know this). If you ever get to do per
|
||||
site queuing you should consider "blocking" a queue for some short period
|
||||
of time if a connection fails to that site [sendmail does this inside a
|
||||
single process on a per account basis now right?]; this would allow multiple
|
||||
sendmails to quickly skip over those sites for people like me that run:
|
||||
|
||||
for i in 1 2 3 4 5 6 7 8 ; do daemon sendmail -q; done
|
||||
|
||||
to flush a queue that has gotten behind. You could also do this inside
|
||||
sendmail with a parallelism option (when it is time to run the queue, how
|
||||
many processes to start).
|
||||
|
||||
#! /bin/sh
|
||||
# This is a shell archive. Remove anything before this line, then unpack
|
||||
# it by saving it into a file and typing "sh file". To overwrite existing
|
||||
# files, type "sh file -c". You can also feed this as standard input via
|
||||
# unshar, or by typing "sh <file", e.g.. If this archive is complete, you
|
||||
# will see the following message at the end:
|
||||
# "End of shell archive."
|
||||
# Contents: mailprio mailprio_mkdb
|
||||
# Wrapped by sanders@austin.BSDI.COM on Fri Dec 9 18:07:02 1994
|
||||
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
|
||||
if test -f 'mailprio' -a "${1}" != "-c" ; then
|
||||
echo shar: Will not clobber existing file \"'mailprio'\"
|
||||
else
|
||||
echo shar: Extracting \"'mailprio'\" \(3093 characters\)
|
||||
sed "s/^X//" >'mailprio' <<'END_OF_FILE'
|
||||
X#!/usr/bin/perl
|
||||
X#
|
||||
X# mailprio -- setup mail priorities for a mailing list
|
||||
X#
|
||||
X# Sort mailing list by mailprio database:
|
||||
X# mailprio < mailing-list > sorted_list
|
||||
X# Double check against orig:
|
||||
X# sort sorted_list > checkit; sort mailing-list | diff - checkit
|
||||
X# If it checks out, install it.
|
||||
X#
|
||||
X# TODO:
|
||||
X# option to process mqueue files so we can reorder files in the queue!
|
||||
X$usage = "Usage: mailprio [-p priodb]\n";
|
||||
X$home = "/home/sanders/lists";
|
||||
X$priodb = "$home/mailprio";
|
||||
X
|
||||
Xif ($main'ARGV[0] =~ /^-/) {
|
||||
X $args = shift;
|
||||
X if ($args =~ m/\?/) { print $usage; exit 0; }
|
||||
X if ($args =~ m/p/) {
|
||||
X $priodb = shift || die $usage, "-p requires argument\n"; }
|
||||
X}
|
||||
X
|
||||
X# In shell script, it goes something like this:
|
||||
X# old_mailprio > /tmp/a
|
||||
X# fgrep -f lists/inet-access /tmp/a | sed -e 's/^.......//' > /tmp/b
|
||||
X# ; /tmp/b contains list of known users, faster delivery first
|
||||
X# fgrep -v -f /tmp/b lists/inet-access > /tmp/c
|
||||
X# ; put all unknown stuff at the top of new list for now
|
||||
X# echo '# -----' >> /tmp/c
|
||||
X# cat /tmp/b >> /tmp/c
|
||||
X
|
||||
X# Setup %list and @list
|
||||
Xlocal($addr, $canon);
|
||||
Xwhile ($addr = <STDIN>) {
|
||||
X chop $addr;
|
||||
X next if $addr =~ /^# ----- /; # that's our line
|
||||
X push(@list, $addr), next if $addr =~ /^\s*#/; # save comments
|
||||
X $canon = &canonicalize((&simplify_address($addr))[0]);
|
||||
X unless (defined $canon) {
|
||||
X warn "no address found: $addr\n";
|
||||
X push(@list, $addr); # save it anyway
|
||||
X next;
|
||||
X }
|
||||
X if (defined $list{$canon}) {
|
||||
X warn "duplicate: ``$addr -> $canon''\n";
|
||||
X push(@list, $addr); # save it anyway
|
||||
X next;
|
||||
X }
|
||||
X $list{$canon} = $addr;
|
||||
X}
|
||||
X
|
||||
Xlocal(*prio);
|
||||
Xdbmopen(%prio, $priodb, 0644) || die "$priodb: $!\n";
|
||||
Xforeach $to (keys %list) {
|
||||
X if (defined $prio{$to}) {
|
||||
X # add to list of found users (%userprio) and remove from %list
|
||||
X # so that we know what users were not yet prioritized
|
||||
X $userprio{$to} = $prio{$to}; # priority
|
||||
X $useracct{$to} = $list{$to}; # string
|
||||
X delete $list{$to};
|
||||
X }
|
||||
X}
|
||||
Xdbmclose(%prio);
|
||||
X
|
||||
X# Put all the junk we found at the very top
|
||||
X# (this might not always be a feature)
|
||||
Xprint join("\n", @list), "\n";
|
||||
X
|
||||
X# unprioritized users go next, slow accounts will get moved down quickly
|
||||
Xprint '# ----- unprioritized users', "\n";
|
||||
Xforeach $to (keys %list) { print $list{$to}, "\n"; }
|
||||
X
|
||||
X# finally, our prioritized list of users
|
||||
Xprint '# ----- prioritized users', "\n";
|
||||
Xforeach $to (sort { $userprio{$a} <=> $userprio{$b}; } keys %userprio) {
|
||||
X die "Opps! Something is seriously wrong with useracct: $to\n"
|
||||
X unless defined $useracct{$to};
|
||||
X print $useracct{$to}, "\n";
|
||||
X}
|
||||
X
|
||||
Xexit(0);
|
||||
X
|
||||
X# REPL-LIB ---------------------------------------------------------------
|
||||
X
|
||||
Xsub canonicalize {
|
||||
X local($addr) = @_;
|
||||
X # lowercase, strip leading/trailing whitespace
|
||||
X $addr =~ y/A-Z/a-z/; $addr =~ s/^\s+//; $addr =~ s/\s+$//; $addr;
|
||||
X}
|
||||
X
|
||||
X# @addrs = simplify_address($addr);
|
||||
Xsub simplify_address {
|
||||
X local($_) = shift;
|
||||
X 1 while s/\([^\(\)]*\)//g; # strip comments
|
||||
X 1 while s/"[^"]*"//g; # strip comments
|
||||
X split(/,/); # split into parts
|
||||
X foreach (@_) {
|
||||
X 1 while s/.*<(.*)>.*/\1/;
|
||||
X s/^\s+//;
|
||||
X s/\s+$//;
|
||||
X }
|
||||
X @_;
|
||||
X}
|
||||
END_OF_FILE
|
||||
if test 3093 -ne `wc -c <'mailprio'`; then
|
||||
echo shar: \"'mailprio'\" unpacked with wrong size!
|
||||
fi
|
||||
chmod +x 'mailprio'
|
||||
# end of 'mailprio'
|
||||
fi
|
||||
if test -f 'mailprio_mkdb' -a "${1}" != "-c" ; then
|
||||
echo shar: Will not clobber existing file \"'mailprio_mkdb'\"
|
||||
else
|
||||
echo shar: Extracting \"'mailprio_mkdb'\" \(3504 characters\)
|
||||
sed "s/^X//" >'mailprio_mkdb' <<'END_OF_FILE'
|
||||
X#!/usr/bin/perl
|
||||
X#
|
||||
X# mailprio_mkdb -- make mail priority database based on delay times
|
||||
X#
|
||||
X$usage = "Usage: mailprio_mkdb [-l maillog] [-p priodb]\n";
|
||||
X$home = "/home/sanders/lists";
|
||||
X$maillog = "/var/log/maillog";
|
||||
X$priodb = "$home/mailprio";
|
||||
X
|
||||
Xif ($main'ARGV[0] =~ /^-/) {
|
||||
X $args = shift;
|
||||
X if ($args =~ m/\?/) { print $usage; exit 0; }
|
||||
X if ($args =~ m/l/) {
|
||||
X $maillog = shift || die $usage, "-l requires argument\n"; }
|
||||
X if ($args =~ m/p/) {
|
||||
X $priodb = shift || die $usage, "-p requires argument\n"; }
|
||||
X}
|
||||
X
|
||||
Xlocal(*prio);
|
||||
X# We'll merge with existing information if it's already there.
|
||||
Xdbmopen(%prio, $priodb, 0644) || die "$priodb: $!\n";
|
||||
X&getlog_stats($maillog, *prio);
|
||||
X# foreach $addr (sort { $prio{$a} <=> $prio{$b}; } keys %prio) {
|
||||
X# printf("%06d %s\n", $prio{$addr}, $addr); }
|
||||
Xdbmclose(%prio);
|
||||
Xexit(0);
|
||||
X
|
||||
Xsub getlog_stats {
|
||||
X local($maillog, *stats) = @_;
|
||||
X local($to, $delay);
|
||||
X local($h, $m, $s);
|
||||
X open(MAILLOG, "< $maillog") || die "$maillog: $!\n";
|
||||
X while (<MAILLOG>) {
|
||||
X ($delay) = (m/, delay=([^,]*), /);
|
||||
X $delay || next;
|
||||
X ($h, $m, $s) = split(/:/, $delay);
|
||||
X $delay = ($h * 60 * 60) + ($m * 60) + $s;
|
||||
X
|
||||
X # deleting everything after ", " seems safe enough, though
|
||||
X # it is possible that it was inside "..."'s and that we will
|
||||
X # miss some addresses because of it. However, I'm not willing
|
||||
X # to do full parsing just for that case. If this bothers you
|
||||
X # you could do something like: s/, (delay|ctladdr)=.*//;
|
||||
X # but you have to make sure you catch all the possible names.
|
||||
X $to = $_; $to =~ s/^.* to=//; $to =~ s/, .*//;
|
||||
X foreach $addr (&simplify_address($to)) {
|
||||
X next unless $addr;
|
||||
X $addr = &canonicalize($addr);
|
||||
X # print $delay, " ", $addr, "\n";
|
||||
X $stats{$addr} = $delay unless defined $stats{$addr}; # init
|
||||
X
|
||||
X # This average function moves the value around quite rapidly
|
||||
X # which may or may not be a feature.
|
||||
X #
|
||||
X # This has at least one odd behavior because we currently only
|
||||
X # use the delay information from maillog which is only logged
|
||||
X # on actual delivery. This works backwards from what we really
|
||||
X # want to happen when a fast host goes down for a while and then
|
||||
X # comes back up.
|
||||
X #
|
||||
X # I spoke with Eric and he suggested adding an xdelay statistic
|
||||
X # for a per transaction delay which would help that situation
|
||||
X # a lot. What I believe you want in that cases something like:
|
||||
X # delay fast, xdelay fast: smokin', these hosts go first
|
||||
X # delay slow, xdelay fast: put host high on the list (back up?)
|
||||
X # delay fast, xdelay slow: host is down/having problems/slow
|
||||
X # delay slow, xdelay slow: poorly connected sites, very last
|
||||
X # Of course, you have to reorder the distribution list fairly
|
||||
X # often for that to help. Come to think of it, you should
|
||||
X # also reorder /var/spool/mqueue files also (if they aren't
|
||||
X # locked of course). Hmmm....
|
||||
X $stats{$addr} = int(($stats{$addr} + $delay) / 2);
|
||||
X }
|
||||
X }
|
||||
X close(MAILLOG);
|
||||
X}
|
||||
X
|
||||
X# REPL-LIB ---------------------------------------------------------------
|
||||
X
|
||||
Xsub canonicalize {
|
||||
X local($addr) = @_;
|
||||
X # lowercase, strip leading/trailing whitespace
|
||||
X $addr =~ y/A-Z/a-z/; $addr =~ s/^\s+//; $addr =~ s/\s+$//; $addr;
|
||||
X}
|
||||
X
|
||||
X# @addrs = simplify_address($addr);
|
||||
Xsub simplify_address {
|
||||
X local($_) = shift;
|
||||
X 1 while s/\([^\(\)]*\)//g; # strip comments
|
||||
X 1 while s/"[^"]*"//g; # strip comments
|
||||
X split(/,/); # split into parts
|
||||
X foreach (@_) {
|
||||
X 1 while s/.*<(.*)>.*/\1/;
|
||||
X s/^\s+//;
|
||||
X s/\s+$//;
|
||||
X }
|
||||
X @_;
|
||||
X}
|
||||
END_OF_FILE
|
||||
if test 3504 -ne `wc -c <'mailprio_mkdb'`; then
|
||||
echo shar: \"'mailprio_mkdb'\" unpacked with wrong size!
|
||||
fi
|
||||
chmod +x 'mailprio_mkdb'
|
||||
# end of 'mailprio_mkdb'
|
||||
fi
|
||||
echo shar: End of shell archive.
|
||||
exit 0
|
108
usr.sbin/sendmail/contrib/rmail.oldsys.patch
Normal file
108
usr.sbin/sendmail/contrib/rmail.oldsys.patch
Normal file
@ -0,0 +1,108 @@
|
||||
From: Bill Gianopoulos <wag@sccux1.msd.ray.com>
|
||||
Message-Id: <199405191527.LAA03463@sccux1.msd.ray.com>
|
||||
Subject: Patch to rmail to elliminate need for snprintf
|
||||
To: sendmail@CS.Berkeley.EDU
|
||||
Date: Thu, 19 May 1994 11:27:16 -0400 (EDT)
|
||||
|
||||
I have written the following patch to rmail which removes the requirement
|
||||
for snprintf while maintaining the protection from buffer overruns. It also
|
||||
fixes it to compile with compilers which don't understand ANSI function
|
||||
prototypes. Perhaps this should be included in the next version?
|
||||
|
||||
*** rmail/rmail.c.orig Mon May 31 18:10:44 1993
|
||||
--- rmail/rmail.c Thu May 19 11:04:50 1994
|
||||
***************
|
||||
*** 78,86 ****
|
||||
--- 78,109 ----
|
||||
#include <sysexits.h>
|
||||
#include <unistd.h>
|
||||
|
||||
+ #ifdef __STDC__
|
||||
void err __P((int, const char *, ...));
|
||||
void usage __P((void));
|
||||
+ #else
|
||||
+ void err ();
|
||||
+ void usage ();
|
||||
+ #endif
|
||||
|
||||
+ #define strdup(s) strcpy(xalloc(strlen(s) + 1), s)
|
||||
+
|
||||
+ char *
|
||||
+ xalloc(sz)
|
||||
+ register int sz;
|
||||
+ {
|
||||
+ register char *p;
|
||||
+
|
||||
+ /* some systems can't handle size zero mallocs */
|
||||
+ if (sz <= 0)
|
||||
+ sz = 1;
|
||||
+
|
||||
+ p = malloc((unsigned) sz);
|
||||
+ if (p == NULL)
|
||||
+ err(EX_UNAVAILABLE, "Out of memory!!");
|
||||
+ return (p);
|
||||
+ }
|
||||
+
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
***************
|
||||
*** 230,250 ****
|
||||
args[i++] = "-oi"; /* Ignore '.' on a line by itself. */
|
||||
|
||||
if (from_sys != NULL) { /* Set sender's host name. */
|
||||
! if (strchr(from_sys, '.') == NULL)
|
||||
! (void)snprintf(buf, sizeof(buf),
|
||||
"-oMs%s.%s", from_sys, domain);
|
||||
! else
|
||||
! (void)snprintf(buf, sizeof(buf), "-oMs%s", from_sys);
|
||||
if ((args[i++] = strdup(buf)) == NULL)
|
||||
err(EX_TEMPFAIL, NULL);
|
||||
}
|
||||
/* Set protocol used. */
|
||||
! (void)snprintf(buf, sizeof(buf), "-oMr%s", domain);
|
||||
if ((args[i++] = strdup(buf)) == NULL)
|
||||
err(EX_TEMPFAIL, NULL);
|
||||
|
||||
/* Set name of ``from'' person. */
|
||||
! (void)snprintf(buf, sizeof(buf), "-f%s%s",
|
||||
from_path ? from_path : "", from_user);
|
||||
if ((args[i++] = strdup(buf)) == NULL)
|
||||
err(EX_TEMPFAIL, NULL);
|
||||
--- 253,285 ----
|
||||
args[i++] = "-oi"; /* Ignore '.' on a line by itself. */
|
||||
|
||||
if (from_sys != NULL) { /* Set sender's host name. */
|
||||
! if (strchr(from_sys, '.') == NULL) {
|
||||
! if ((strlen(from_sys) + strlen(domain) + 6)
|
||||
! > sizeof(buf))
|
||||
! err(EX_DATAERR, "sender hostname too long");
|
||||
! (void)sprintf(buf,
|
||||
"-oMs%s.%s", from_sys, domain);
|
||||
! }
|
||||
! else {
|
||||
! if ((strlen(from_sys) + 5) > sizeof(buf))
|
||||
! err(EX_DATAERR ,"sender hostname too long");
|
||||
! (void)sprintf(buf, "-oMs%s", from_sys);
|
||||
! }
|
||||
if ((args[i++] = strdup(buf)) == NULL)
|
||||
err(EX_TEMPFAIL, NULL);
|
||||
}
|
||||
/* Set protocol used. */
|
||||
! if ((strlen(domain) + 5) > sizeof(buf))
|
||||
! err(EX_DATAERR, "protocol name too long");
|
||||
! (void)sprintf(buf, "-oMr%s", domain);
|
||||
if ((args[i++] = strdup(buf)) == NULL)
|
||||
err(EX_TEMPFAIL, NULL);
|
||||
|
||||
/* Set name of ``from'' person. */
|
||||
! if (((from_path ? strlen(from_path) : 0) + strlen(from_user) + 3)
|
||||
! > sizeof(buf))
|
||||
! err(EX_DATAERR, "from address too long");
|
||||
! (void)sprintf(buf, "-f%s%s",
|
||||
from_path ? from_path : "", from_user);
|
||||
if ((args[i++] = strdup(buf)) == NULL)
|
||||
err(EX_TEMPFAIL, NULL);
|
||||
--
|
||||
William A. Gianopoulos; Raytheon Missile Systems Division
|
||||
wag@sccux1.msd.ray.com
|
997
usr.sbin/sendmail/doc/changes/changes.me
Normal file
997
usr.sbin/sendmail/doc/changes/changes.me
Normal file
@ -0,0 +1,997 @@
|
||||
.\" Copyright (c) 1994 Eric P. Allman
|
||||
.\" Copyright (c) 1988, 1994
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
.\" are met:
|
||||
.\" 1. Redistributions of source code must retain the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer.
|
||||
.\" 2. Redistributions in binary form must reproduce the above copyright
|
||||
.\" notice, this list of conditions and the following disclaimer in the
|
||||
.\" documentation and/or other materials provided with the distribution.
|
||||
.\" 3. All advertising materials mentioning features or use of this software
|
||||
.\" must display the following acknowledgement:
|
||||
.\" This product includes software developed by the University of
|
||||
.\" California, Berkeley and its contributors.
|
||||
.\" 4. Neither the name of the University nor the names of its contributors
|
||||
.\" may be used to endorse or promote products derived from this software
|
||||
.\" without specific prior written permission.
|
||||
.\"
|
||||
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.\" @(#)changes.me 8.2 (Berkeley) 5/3/95
|
||||
.\"
|
||||
.\" ditroff -me -Pxx changes.me
|
||||
.eh '%''Changes in Sendmail Version 8'
|
||||
.oh 'Changes in Sendmail Version 8''%'
|
||||
.nr si 3n
|
||||
.if n .ls 2
|
||||
.+c
|
||||
.(l C
|
||||
.sz 14
|
||||
Changes in Sendmail Version 8*
|
||||
.sz
|
||||
.sp
|
||||
Eric Allman
|
||||
.sp 0.5
|
||||
.i
|
||||
University of California, Berkeley
|
||||
Mammoth Project
|
||||
.)l
|
||||
.(f
|
||||
*An earlier version of this paper was printed in the
|
||||
Proceedings of the 1994 AUUG Queensland Summer Technical Conference,
|
||||
Gateway Hotel, Brisbane, March 1994.
|
||||
.)f
|
||||
.sp
|
||||
.(l F
|
||||
.ce
|
||||
ABSTRACT
|
||||
.sp \n(psu
|
||||
Version 8 of
|
||||
.i sendmail
|
||||
includes a number of major changes from previous versions.
|
||||
This paper gives a very short history of
|
||||
.i sendmail ,
|
||||
a summary of the major differences between version 5
|
||||
(the last publically available version)
|
||||
and version 8,
|
||||
and some discussion of future directions.
|
||||
.)l
|
||||
.sp 2
|
||||
.pp
|
||||
In 1987, the author stopped major work on
|
||||
.i sendmail
|
||||
due to other time committments,
|
||||
only to return to active work in 1991.
|
||||
This paper explores why work resumed
|
||||
and what changes have been made.
|
||||
.pp
|
||||
Section 1 gives a short history of
|
||||
.i sendmail
|
||||
through version 5 and the motivation behind working on version 8.
|
||||
Section 2 has
|
||||
a rather detailed description of what has changed
|
||||
between version 5 and version 8.
|
||||
The paper finishes off with some thoughts
|
||||
about what still needs to be done.
|
||||
.sh 1 "HISTORY"
|
||||
.pp
|
||||
As discussed elsewhere,
|
||||
[Allman83a, Allman83b, Allman&Amos85]
|
||||
sendmail has existed in various forms since 1980.
|
||||
It was released under the name
|
||||
.i delivermail
|
||||
in 4BSD and 4.1BSD, and as
|
||||
.i sendmail
|
||||
in 4.2BSD.
|
||||
.\"4.0BSD delivermail 1.10
|
||||
.\"4.1BSD delivermail 1.10
|
||||
.\"4.2BSD sendmail 4.12
|
||||
.\"4.3BSD sendmail 5.52
|
||||
It quickly became the dominant mail system for networked UNIX systems.
|
||||
.pp
|
||||
Prior the release of 4.3BSD in November 1986,
|
||||
the author had left the University for private industry,
|
||||
but continued to do some work on
|
||||
.i sendmail
|
||||
with activity slowly trailing off
|
||||
until effectively stopping after February 1987.
|
||||
There was minimal support done by many people for several years,
|
||||
until July of 1991 when the original author,
|
||||
who had returned the University,
|
||||
started active work on it again.
|
||||
.pp
|
||||
There were several reasons for renewed work on
|
||||
.i sendmail .
|
||||
There was a desire at Berkeley to convert to a subdomained structure
|
||||
so that individuals were identified by their subdomain
|
||||
rather than by their individual workstation;
|
||||
although possible in the old code, there were some problems,
|
||||
and the author was the obvious person to address them.
|
||||
The Computer Systems Research Group (CSRG),
|
||||
the group that produced the Berkeley Software Distributions,
|
||||
was working on 4.4BSD,
|
||||
and wanted an update to the mail system.
|
||||
Bryan Costales was working on a book on
|
||||
.i sendmail
|
||||
that was being reviewed by the author,
|
||||
which encouraged him to make some revisions.
|
||||
And the author wanted to try to unify some of the disparate versions of
|
||||
.i sendmail
|
||||
that had been permitted to proliferate.
|
||||
.pp
|
||||
During the 1987\-91 fallow period,
|
||||
many vendors and outside volunteers
|
||||
had produced variants of
|
||||
.i sendmail .
|
||||
Perhaps the best known is the IDA version
|
||||
[IDA87].
|
||||
Originally intended to be a new set of configuration files,
|
||||
IDA expanded into a fairly large set of patches for the code.
|
||||
Originally produced in Sweden,
|
||||
IDA development passed to the University of Illinois,
|
||||
and was widely used by the fairly large set of people
|
||||
who prefer to get and compile their own source code
|
||||
rather than use vendor-supplied binaries.
|
||||
.pp
|
||||
In about the same time frame,
|
||||
attempts were made to clean up and extend the Simple Mail Transport Protocol
|
||||
(SMTP)
|
||||
[RFC821].
|
||||
This involved clarifications of some ambiguities in the protocol,
|
||||
and correction of some problem areas
|
||||
[RFC1123],
|
||||
as well as extensions for additional functionality
|
||||
(dubbed Extended Simple Mail Transport Protocol, or ESMTP)
|
||||
[RFC1425, RFC1426, RFC1427]
|
||||
and a richer set of semantics in the body of messages
|
||||
(the Multipurpose Internet Mail Extensions, a.k.a. MIME)
|
||||
[RFC1521, RFC1344].
|
||||
Neither the IDA group nor most vendors
|
||||
were modifying
|
||||
.i sendmail
|
||||
to conform to these new standards.
|
||||
It seemed clear that these were ``good things''
|
||||
that should be encouraged.
|
||||
However, since no one was working on a publically available version of
|
||||
.i sendmail
|
||||
with these updates,
|
||||
they were unlikely to be widely deployed any time in the near future.
|
||||
.pp
|
||||
There are, of course, other mail transport agents available,
|
||||
such as
|
||||
.i MMDF
|
||||
.\"[ref],
|
||||
.i zmailer
|
||||
.\"[ref],
|
||||
.i smail
|
||||
.\"[ref],
|
||||
and
|
||||
.i PP
|
||||
.\"[ref].
|
||||
However, none of these seemed to be gaining the prominence of
|
||||
.i sendmail ;
|
||||
it appeared that most companies would not convert to another
|
||||
mail transport agent any time in the forseeable future.
|
||||
However, they might be persuaded to convert to a newer version of
|
||||
.i sendmail .
|
||||
.pp
|
||||
All of these convinced the author
|
||||
to work on a updated version of
|
||||
.i sendmail
|
||||
for public distribution.
|
||||
.pp
|
||||
The new version of
|
||||
.i sendmail
|
||||
is referred to as version eight (V8).
|
||||
Versions six and seven were skipped
|
||||
because of an agreement
|
||||
that all files in 4.4BSD would be numbered as
|
||||
.q 8.1 .
|
||||
Rather than have an external version number
|
||||
that differed from the file version numbers,
|
||||
.i sendmail
|
||||
just jumped directly to V8.
|
||||
.sh 1 "CHANGES IN VERSION EIGHT"
|
||||
.pp
|
||||
The following is a summary of the changes between the last commonly
|
||||
available version of sendmail from Berkeley (5.67) and the latest
|
||||
version (8.6.6).
|
||||
.pp
|
||||
Many of these are ideas that had been tried in IDA,
|
||||
but many of them were generalized in V8.
|
||||
.sh 2 "Performance Enhancements"
|
||||
.pp
|
||||
Instead of closing SMTP connections immediately, open connections are
|
||||
cached for possible future use. There is a limit to the number of
|
||||
simultaneous open connections and the idle time of any individual
|
||||
connection.
|
||||
.pp
|
||||
This is of best help during queue processing (since there is the
|
||||
potential of many different messages going to one site), although
|
||||
it can also help when processing MX records which aren't handled
|
||||
by MX Piggybacking.
|
||||
.pp
|
||||
If two hosts with different names in a single message happen to
|
||||
have the same set of MX hosts, they can be sent in the same
|
||||
transaction. Version 8 notices this and tries to batch the messages.
|
||||
.pp
|
||||
For example, if two sites ``foo.com'' and ``bar.com'' are both
|
||||
served by UUNET, they will have the same set of MX hosts and will
|
||||
be sent in one transaction. UUNET will then split the message
|
||||
and send it to the two individual hosts.
|
||||
.sh 2 "RFC 1123 Changes"
|
||||
.pp
|
||||
A number of changes have been made to make sendmail ``conditionally
|
||||
compliant'' (that is, it satisfies all of the MUST clauses and most
|
||||
but not all of the SHOULD clauses in RFC 1123).
|
||||
.pp
|
||||
The major areas of change are (numbers are RFC 1123 section numbers):
|
||||
.nr ii 0.75i
|
||||
.ip \(sc5.2.7
|
||||
Response to RCPT command is fast. Previously, sendmail
|
||||
expanded all aliases as far as it could \*- this could
|
||||
take a very long time, particularly if there were
|
||||
name server delays. Version 8 only checks for the
|
||||
existence of an alias and does the expansion later.
|
||||
It does still do a DNS lookup if there is an explicit host name
|
||||
in the RCPT command,
|
||||
but this time is bounded.
|
||||
.ip \(sc5.2.8
|
||||
Numeric IP addresses are logged in Received: lines.
|
||||
This helps tracing spoofed messages.
|
||||
.ip \(sc5.2.17
|
||||
Self domain literal is properly handled. Previously,
|
||||
if someone sent to user@[1.2.3.4], where 1.2.3.4 is
|
||||
your IP address, the mail would probably be rejected
|
||||
with a ``configuration error''.
|
||||
Version 8 can handle these addresses.
|
||||
.ip \(sc5.3.2
|
||||
Better control over individual timeouts. RFC 821 specified
|
||||
no timeouts. Older versions of sendmail had a single
|
||||
timeout, typically set to two hours. Version 8 allows
|
||||
the configuration file to set timeouts for various
|
||||
SMTP commands individually.
|
||||
.ip \(sc5.3.3
|
||||
Error messages are sent as From:<>. This was urged by
|
||||
RFC 821 and reiterated by RFC 1123, but older versions
|
||||
of sendmail never really did it properly. Version 8
|
||||
does. However, some systems cannot handle this
|
||||
perfectly legal address; if necessary, you can create
|
||||
a special mailer that uses the `g' flag to disable this.
|
||||
.ip \(sc5.3.3
|
||||
Error messages are never sent to <>. Previously,
|
||||
sendmail was happy to send responses-to-responses which
|
||||
sometimes resulted in responses-to-responses-to-responses
|
||||
which resulted in .... you get the idea.
|
||||
.ip \(sc5.3.3
|
||||
Route-addrs (the ugly ``<@hosta,@hostb:user@hostc>''
|
||||
syntax) are pruned. RFC 821 urged the use of this
|
||||
bletcherous syntax. RFC 1123 has seen the light and
|
||||
officially deprecates them, further urging that you
|
||||
eliminate all but ``user@hostc'' should you receive
|
||||
one of these things. Version 8 is slightly more generous
|
||||
than the standards suggest; instead of stripping off all
|
||||
the route addressees, it only strips hosts off up to
|
||||
the one before the last one known to DNS, thus allowing
|
||||
you to have pseudo-hosts such as foo.BITNET. The `R'
|
||||
option will turn this off.
|
||||
.lp
|
||||
The areas in which sendmail is not ``unconditionally compliant'' are:
|
||||
.ip \(sc5.2.6
|
||||
Sendmail does do header munging.
|
||||
.ip \(sc5.2.10
|
||||
Sendmail doesn't always use the exact SMTP message
|
||||
text from RFC 821. This is a rather silly requirement.
|
||||
.ip \(sc5.3.1.1
|
||||
Sendmail doesn't guarantee only one connect for each
|
||||
host on queue runs. Connection caching gives you most
|
||||
of this, but it does not provide a guarantee.
|
||||
.ip \(sc5.3.1.1
|
||||
Sendmail doesn't always provide an adequate limit
|
||||
on concurrency. That is, there can be several
|
||||
independent sendmails running at once. My feeling
|
||||
is that doing an absolute limit would be a mistake
|
||||
(it might result in lost mail). However, if you use
|
||||
the XLA contributed software, most of this will be
|
||||
guaranteed (but I don't guarantee the guarantee).
|
||||
.sh 2 "Extended SMTP Support
|
||||
.pp
|
||||
Version 8 includes both sending and receiving support for Extended
|
||||
SMTP support as defined by RFC 1425 (basic) and RFC 1427 (SIZE);
|
||||
and limited support for RFC 1426 (BODY).
|
||||
The body support is minimal because the
|
||||
.q 8BITMIME
|
||||
body type is not currently advertised.
|
||||
Although such a body type will be accepted,
|
||||
it will not be correctly converted to 7 bits
|
||||
if speaking to a non-8-bit-MIME aware SMTP server.
|
||||
.pp
|
||||
.i Sendmail
|
||||
tries to speak ESMTP if you have the `a' flag set
|
||||
in the flags for the mailer descriptor,
|
||||
or if the other end advertises the fact that it speaks ESMTP.
|
||||
This is a non-standard advertisement:
|
||||
.i sendmail
|
||||
announces
|
||||
.q "ESMTP spoken here"
|
||||
during the initial connection message,
|
||||
and client sendmails search for this message.
|
||||
This creates some problems for some PC-based mailers,
|
||||
which do not understand two-line greeting messages
|
||||
as required by RFC 821.
|
||||
.sh 2 "Eight-Bit Clean
|
||||
.pp
|
||||
Previous versions of sendmail used the 0200 bit for quoting. This
|
||||
version avoids that use.
|
||||
However, you can set option `7' to get seven bit stripping
|
||||
for compatibility with RFC 821,
|
||||
which is a 7-bit protocol.
|
||||
This option says ``strip to 7 bits on input''.
|
||||
.pp
|
||||
Individual mailers can still produce seven bit out put using the
|
||||
`7' mailer flag.
|
||||
This flag says ``strip to 7 bits on output''.
|
||||
.sh 2 "User Database"
|
||||
.pp
|
||||
The User Database (UDB) is an as-yet experimental attempt to provide
|
||||
unified large-site name support.
|
||||
We are installing it at Berkeley;
|
||||
future versions may show significant modifications.
|
||||
Briefly, UDB contains a database that is intended to contain
|
||||
all the per-user information for your workgroup,
|
||||
such as people's full names, their .plan information,
|
||||
their outgoing mail name, and their mail drop.
|
||||
.pp
|
||||
The user database allows you to map both incoming and outgoing
|
||||
addresses, much like IDA. However, the interface is still
|
||||
better with IDA;
|
||||
in particular, the alias file with incoming/outgoing marks
|
||||
provides better locality of information.
|
||||
.sh 2 "Improved BIND Support"
|
||||
.pp
|
||||
The BIND support, particularly for MX records, had a number of
|
||||
annoying ``features'' which have been removed in this release. In
|
||||
particular, these more tightly bind (pun intended) the name server
|
||||
to sendmail, so that the name server resolution rules are incorporated
|
||||
directly into sendmail.
|
||||
.pp
|
||||
The major change has been that the $[ ... $] operator didn't fully
|
||||
qualify names that were in DNS as A or MX records. Version 8 does
|
||||
this qualification.
|
||||
.pp
|
||||
This has proven to be an annoyance in Sun shops,
|
||||
who often still run without BIND support.
|
||||
However, it is really critical that this be supported,
|
||||
since MX records are mandatory.
|
||||
In SunOS you can choose either MX support or NIS support,
|
||||
but not both.
|
||||
This is fixed in Solaris,
|
||||
and some
|
||||
.i sendmail
|
||||
support to allow this in SunOS should be forthcoming in a future release.
|
||||
.sh 2 "Keyed Files"
|
||||
.pp
|
||||
Generalized keyed files is an idea taken directly from IDA sendmail
|
||||
(albeit with a completely different implementation).
|
||||
They can be useful on large sites.
|
||||
.pp
|
||||
Version 8 includes the following built-in map classes:
|
||||
.ip dbm
|
||||
Support for the ndbm(3) library.
|
||||
.ip hash
|
||||
Support for the ``Hash'' type from the new Berkeley db(3) library.
|
||||
this library provides substantially better database support
|
||||
than ndbm(3),
|
||||
including in-memory caching,
|
||||
arbitrarily long keys and values,
|
||||
and better disk utilization.
|
||||
.ip btree
|
||||
Support for the ``B-Tree'' type from the new Berkeley db(3) library.
|
||||
B-Trees provide better clustering than Hashed files
|
||||
if you are fetching lots of records that have similar keys,
|
||||
such as searching a dictionary for words beginning with ``detr''.
|
||||
.ip nis
|
||||
Support for NIS (a.k.a. YP) maps.
|
||||
NIS+ is not supported in this version.
|
||||
.ip host
|
||||
Support for DNS lookups.
|
||||
.ip dequote
|
||||
A ``pseudo-map'' (that is, once that does not have any external data)
|
||||
that allows a configuration file to break apart a quoted string
|
||||
in the address.
|
||||
This is necessary primarily for DECnet addresses,
|
||||
which often have quoted addresses that need to be unwrapped on gateways.
|
||||
.sh 2 "Multi-Word Classes & Macros in Classes"
|
||||
.pp
|
||||
Classes can now be multiple words. For example,
|
||||
.(b
|
||||
CShofmann.CS.Berkeley.EDU
|
||||
.)b
|
||||
allows you to match the entire string ``hofmann.CS.Berkeley.EDU''
|
||||
using the single construct ``$=S''.
|
||||
.pp
|
||||
Class definitions are now allowed to include macros \*- for example:
|
||||
.(b
|
||||
Cw$k
|
||||
.)b
|
||||
is legal.
|
||||
.sh 2 "IDENT Protocol Support"
|
||||
.pp
|
||||
The IDENT protocol as defined in RFC 1413 [RFC1413] is supported.
|
||||
However, many systems have a TCP/IP bug that renders this useless,
|
||||
and the feature must be turned off.
|
||||
Roughly, if one of these system receives a
|
||||
.q "No route to host"
|
||||
message (ICMP message ICMP_UNREACH_HOST) on
|
||||
.i any
|
||||
connection, all connections to that host are closed.
|
||||
Some firewalls return this error if you try to connect
|
||||
to the IDENT port,
|
||||
so you can't receive email from these hosts on these systems.
|
||||
It's possible that if the firewall used a more specific message
|
||||
(such as ICMP_UNREACH_PROTOCOL, ICMP_UNREACH_PORT or ICMP_UNREACH_NET_PROHIB)
|
||||
it would work, but this hasn't been verified.
|
||||
.pp
|
||||
IDENT protocol support cannot be used on
|
||||
4.3BSD,
|
||||
Apollo DomainOS,
|
||||
Apple A/UX,
|
||||
ConvexOS,
|
||||
Data General DG/UX,
|
||||
HP-UX,
|
||||
Sequent Dynix,
|
||||
or
|
||||
Ultrix 4.x, x \(<= 3.
|
||||
It seems to work on
|
||||
4.4BSD,
|
||||
IBM AIX 3.x,
|
||||
OSF/1,
|
||||
SGI IRIX,
|
||||
Solaris,
|
||||
SunOS,
|
||||
and Ultrix 4.4.
|
||||
.sh 2 "Separate Envelope/Header Processing
|
||||
.pp
|
||||
Since the From: line is passed in separately from the envelope
|
||||
sender, these have both been made visible; the $g macro is set to
|
||||
the envelope sender during processing of mailer argument vectors
|
||||
and the header sender during processing of headers.
|
||||
.pp
|
||||
It is also possible to specify separate per-mailer envelope and
|
||||
header processing. The SenderRWSet and RecipientRWset arguments
|
||||
for mailers can be specified as ``envelope/header'' to give different
|
||||
rewritings for envelope versus header addresses.
|
||||
.sh 2 "Owner-List Propagates to Envelope
|
||||
.pp
|
||||
When an alias has an associated owner-list name, that alias is used
|
||||
to change the envelope sender address. This will cause downstream
|
||||
errors to be returned to that owner.
|
||||
.pp
|
||||
Some people find this confusing
|
||||
because the envelope sender is what appears in the first
|
||||
``From_'' line in UNIX messages
|
||||
(that is, the line beginning ``From<space>''
|
||||
instead of ``From:'';
|
||||
the latter is the header from, which
|
||||
.i does
|
||||
indicate the sender of the message).
|
||||
In previous versions,
|
||||
.i sendmail
|
||||
has tried to avoid changing the envelope sender
|
||||
for back compatibility with UNIX convention;
|
||||
at this point that back compatibility is creating too many problems,
|
||||
and it is necessary to move forward into the 1980s.
|
||||
.sh 2 "Command Line Flags"
|
||||
.pp
|
||||
The
|
||||
.b \-B
|
||||
flag has been added to pass in body type information.
|
||||
.pp
|
||||
The
|
||||
.b \-p
|
||||
flag has been added to pass in protocol information
|
||||
that was previously passed in by defining the
|
||||
.b $r
|
||||
and
|
||||
.b $s
|
||||
macros.
|
||||
.pp
|
||||
The
|
||||
.b \-X
|
||||
flag has been added to allow logging of all protocol in and
|
||||
out of sendmail for debugging.
|
||||
You can set
|
||||
.q "\-X filename"
|
||||
and a complete transcript will be logged in that file.
|
||||
This gets big fast: the option is only for debugging.
|
||||
.pp
|
||||
The
|
||||
.b \-q
|
||||
flag can limit limit a queue run to specific recipients,
|
||||
senders, or queue ids using \-qRsubstring, \-qSsubstring, or
|
||||
\-qIsubstring respectively.
|
||||
.sh 2 "New Configuration Line Types
|
||||
.pp
|
||||
The `T' (Trusted users) configuration line has been deleted. It
|
||||
will still be accepted but will be ignored.
|
||||
.pp
|
||||
The `K' line has been added to declare database maps.
|
||||
.pp
|
||||
The `V' line has been added to declare the configuration version
|
||||
level.
|
||||
.pp
|
||||
The `M' (mailer) line takes a D= field to specify execution
|
||||
directory.
|
||||
.sh 2 "New and Extended Options"
|
||||
.pp
|
||||
Several new options have been added, many to support new features,
|
||||
others to allow tuning that was previously available only by
|
||||
recompiling. Briefly:
|
||||
.nr ii 0.5i
|
||||
.ip A
|
||||
The alias file specification can now be a list of alias files.
|
||||
Also, the configuration can specify a class of file.
|
||||
For example, to search the NIS aliases, use
|
||||
.q OAnis:mail.aliases .
|
||||
.ip b
|
||||
Insist on a minimum number of disk blocks.
|
||||
.ip C
|
||||
Delivery checkpoint interval. Checkpoint the queue (to avoid
|
||||
duplicate deliveries) every C addresses.
|
||||
.ip E
|
||||
Default error message. This message (or the contents of the
|
||||
indicated file) are prepended to error messages.
|
||||
.ip G
|
||||
Enable GECOS matching. If you can't find a local user name
|
||||
and this option is enabled, do a sequential scan of the passwd
|
||||
file to match against full names. Previously a compile option.
|
||||
.ip h
|
||||
Maximum hop count. Previously this was compiled in.
|
||||
.ip I
|
||||
This option has been extended to allow setting of resolver parameters.
|
||||
.ip j
|
||||
Send errors in MIME-encapsulated format.
|
||||
.ip J
|
||||
Forward file path. Where to search for .forward files \*- defaults
|
||||
to $HOME/.forward.
|
||||
.ip k
|
||||
Connection cache size. The total number of connections that will
|
||||
be kept open at any time.
|
||||
.ip K
|
||||
Connection cache lifetime. The amount of time any connection
|
||||
will be permitted to sit idle.
|
||||
.ip l
|
||||
Enable Errors-To: header. These headers violate RFC 1123;
|
||||
this option is included to provide back compatibility with
|
||||
old versions of sendmail.
|
||||
.ip O
|
||||
Incoming daemon options (e.g., use alternate SMTP port).
|
||||
.ip p
|
||||
Privacy options. These can be used to make your SMTP server
|
||||
less friendly.
|
||||
.ip r
|
||||
This option has been extended to allow finer grained control
|
||||
over timeouts.
|
||||
For example, you can set the timeout for SMTP commands individually.
|
||||
.ip R
|
||||
Don't prune route-addrs. Normally, if version 8 sees an address
|
||||
like "<@hostA,@hostB:user@hostC>, sendmail will try to strip off
|
||||
as much as it can (up to user@hostC) as suggested by RFC 1123.
|
||||
This option disables that behaviour.
|
||||
.ip T
|
||||
The
|
||||
.q "Return To Sender"
|
||||
timeout has been extended
|
||||
to allow specification of a warning message interval,
|
||||
typically something on the order of four hours.
|
||||
If a message cannot be delivered in that interval,
|
||||
a warning message is sent back to the sender
|
||||
but the message continues to be tried.
|
||||
.ip U
|
||||
User database spec. This is still experimental.
|
||||
.ip V
|
||||
Fallback ``MX'' host. This can be thought of as an MX host
|
||||
that applies to all addresses that has a very high preference
|
||||
value (that is, use it only if everything else fails).
|
||||
.ip w
|
||||
If set, assume that if you are the best MX host for a host,
|
||||
you should send directly to that host. This is intended
|
||||
for compatibility with UIUC sendmail, and may have some
|
||||
use on firewalls.
|
||||
.ip 7
|
||||
Do not run eight bit clean. Technically, you have to assert
|
||||
this option to be RFC 821 compatible.
|
||||
.sh 2 "New Mailer Definitions"
|
||||
.ip L=
|
||||
Set the allowable line length. In V5, the L mailer flag implied
|
||||
a line length limit of 990 characters; this is now settable to
|
||||
an arbitrary value.
|
||||
.ip F=a
|
||||
Try to use ESMTP. It will fall back to SMTP if the initial
|
||||
EHLO packet is rejected.
|
||||
.ip F=b
|
||||
Ensure a blank line at the end of messages. Useful on the
|
||||
*file* mailer.
|
||||
.ip F=c
|
||||
Strip all comments from addresses; this should only be used as
|
||||
a last resort when dealing with cranky mailers.
|
||||
.ip F=g
|
||||
Never use the null sender as the envelope sender, even when
|
||||
running SMTP. This violates RFC 1123.
|
||||
.ip F=7
|
||||
Strip all output to this mailer to 7 bits.
|
||||
.ip F=L
|
||||
Used to set the line limit to 990 bytes for SMTP compatibility.
|
||||
It now does that only if the L= keyletter is not specified.
|
||||
This flag is obsolete and should not be used.
|
||||
.sh 2 "New or Changed Pre-Defined Macros"
|
||||
.ip $k
|
||||
UUCP node name from uname(2).
|
||||
.ip $m
|
||||
Domain part of our full hostname.
|
||||
.ip $_
|
||||
RFC 1413-provided sender address.
|
||||
.ip $w
|
||||
Previously was sometimes the full domain name, sometimes
|
||||
just the first word. Now guaranteed to be the first word
|
||||
of the domain name (i.e., the host name).
|
||||
.ip $j
|
||||
Previously had to be defined \*- it is now predefined to be
|
||||
the full domain name, if that can be determined. That is,
|
||||
it is equivalent to $w.$m.
|
||||
.sh 2 "New and Changed Classes"
|
||||
.ip $=k
|
||||
Initialized to contain $k.
|
||||
.ip $=w
|
||||
Now includes
|
||||
.q [1.2.3.4]
|
||||
(where 1.2.3.4 is your IP address)
|
||||
to allow the configuration file to recognize your own IP address.
|
||||
.sh 2 "New Rewriting Tokens"
|
||||
.pp
|
||||
The
|
||||
.b $&
|
||||
construct has been adopted from IDA to defer macro evaluation.
|
||||
Normally, macros in rulesets are bound when the rule is first parsed
|
||||
during startup.
|
||||
Some macros change during processing and are uninteresting during startup.
|
||||
However, that macro can be referenced using
|
||||
.q $&x
|
||||
to defer the evaulation of
|
||||
$x
|
||||
until the rule is processed.
|
||||
.pp
|
||||
The tokens
|
||||
.b $(
|
||||
and
|
||||
.b $)
|
||||
have been added to allow specification of map rewriting.
|
||||
.pp
|
||||
Version 8 allows
|
||||
.b $@
|
||||
on the Left Hand Side of an `R' line to match
|
||||
zero tokens.
|
||||
This is intended to be used to match the null input.
|
||||
.sh 2 "Bigger Defaults
|
||||
.pp
|
||||
Version 8 allows up to 100 rulesets instead of 30. It is recommended
|
||||
that rulesets 0\-9 be reserved for sendmail's dedicated use in future
|
||||
releases.
|
||||
.pp
|
||||
The total number of MX records that can be used has been raised to
|
||||
20.
|
||||
.pp
|
||||
The number of queued messages that can be handled at one time has
|
||||
been raised from 600 to 1000.
|
||||
.sh 2 "Different Default Tuning Parameters
|
||||
.pp
|
||||
Version 8 has changed the default parameters for tuning queue costs
|
||||
to make the number of recipients more important than the size of
|
||||
the message (for small messages). This is reasonable if you are
|
||||
connected with reasonably fast links.
|
||||
.sh 2 "Auto-Quoting in Addresses
|
||||
.pp
|
||||
Previously, the ``Full Name <email address>'' syntax would generate
|
||||
incorrect protocol output if ``Full Name'' had special characters
|
||||
such as dot. This version puts quotes around such names.
|
||||
.sh 2 "Symbolic Names On Error Mailer
|
||||
.pp
|
||||
Several names have been built in to the $@ portion of the $#error
|
||||
mailer. For example:
|
||||
.(b
|
||||
$#error $@NOHOST $: Host unknown
|
||||
.)b
|
||||
Prints the indicated message
|
||||
and sets the exit status of
|
||||
.i sendmail
|
||||
to
|
||||
.sm EX_NOHOST .
|
||||
.sh 2 "New Built-In Mailers"
|
||||
.pp
|
||||
Two new mailers, *file* and *include*, are included to define options
|
||||
when mailing to a file or a :include: file respectively. Previously
|
||||
these were overloaded on the local mailer.
|
||||
.sh 2 "SMTP VRFY Doesn't Expand
|
||||
.pp
|
||||
Previous versions of sendmail treated VRFY and EXPN the same. In
|
||||
this version, VRFY doesn't expand aliases or follow .forward files.
|
||||
.pp
|
||||
As an optimization, if you run with your default delivery mode
|
||||
being queue-only, the RCPT command will also not chase aliases and
|
||||
\&.forward files.
|
||||
It will chase them when it processes the queue.
|
||||
This speeds up RCPT processing.
|
||||
.sh 2 "[IPC] Mailers Allow Multiple Hosts
|
||||
.pp
|
||||
When an address resolves to a mailer that has ``[IPC]'' as its
|
||||
``Path'', the $@ part (host name) can be a colon-separated list of
|
||||
hosts instead of a single hostname. This asks sendmail to search
|
||||
the list for the first entry that is available exactly as though
|
||||
it were an MX record. The intent is to route internal traffic
|
||||
through internal networks without publishing an MX record to the
|
||||
net. MX expansion is still done on the individual items.
|
||||
.sh 2 "Aliases Extended"
|
||||
.pp
|
||||
The implementation has been merged with maps. Among other things,
|
||||
this supports multiple alias files and NIS-based aliases. For
|
||||
example:
|
||||
.(b
|
||||
OA/etc/aliases,nis:mail.aliases
|
||||
.)b
|
||||
will search first the local database
|
||||
.q /etc/aliases
|
||||
followed by the NIS map
|
||||
|
||||
.sh 2 "Portability and Security Enhancements
|
||||
.pp
|
||||
A number of internal changes have been made to enhance portability.
|
||||
.pp
|
||||
Several fixes have been made to increase the paranoia factor.
|
||||
.pp
|
||||
In particular, the permissions required for .forward and :include:
|
||||
files have been tightened up considerably. V5 would pretty much
|
||||
read any file it could get to as root, which exposed some security
|
||||
holes. V8 insists that all directories leading up to the .forward
|
||||
or :include: file be searchable ("x" permission) by the controlling
|
||||
user" (defined below), that the file itself be readable by the
|
||||
controlling user, and that .forward files be owned by the user
|
||||
who is being forwarded to or root.
|
||||
.pp
|
||||
The "controlling user" is the user on whose behalf the mail is
|
||||
being delivered. For example, if you mail to "user1" then the
|
||||
controlling user for ~user1/.forward and any mailers invoked
|
||||
by that .forward file, including :include: files.
|
||||
.pp
|
||||
Previously, anyone who had a home directory could create a .forward
|
||||
could forward to a program. Now, sendmail checks to make sure
|
||||
that they have an "approved shell", that is, a shell listed in
|
||||
the /etc/shells file.
|
||||
.sh 2 "Miscellaneous Fixes and Enhancements"
|
||||
.pp
|
||||
A number of small bugs having to do with things like backslash-escaped
|
||||
quotes inside of comments have been fixed.
|
||||
.pp
|
||||
The fixed size limit on header lines
|
||||
(such as
|
||||
.q To:
|
||||
and
|
||||
.q Cc: )
|
||||
has been eliminated;
|
||||
those buffers are dynamically allocated now.
|
||||
.pp
|
||||
Sendmail writes a /etc/sendmail.pid file with the current process id
|
||||
and the current invocation flags.
|
||||
.pp
|
||||
Two people using the same program (e.g., submit) are considered
|
||||
"different" so that duplicate elimination doesn't delete one of
|
||||
them. For example, two people forwarding their email to
|
||||
|submit will be treated as two recipients.
|
||||
.pp
|
||||
The mailstats program prints mailer names and gets the location of
|
||||
the sendmail.st file from /etc/sendmail.cf.
|
||||
.pp
|
||||
Many minor bugs have been fixed, such as handling of backslashes
|
||||
inside of quotes.
|
||||
.pp
|
||||
A hook has been added to allow rewriting of local addresses after
|
||||
aliasing.
|
||||
.sh 1 "FUTURE WORK"
|
||||
.pp
|
||||
The previous section describes
|
||||
.i sendmail
|
||||
as of version 8.6.6.
|
||||
There is still much to be done.
|
||||
Some high points are described below.
|
||||
This list is by no means exhaustive.
|
||||
.sh 2 "Full MIME Support"
|
||||
.pp
|
||||
Currently
|
||||
.i sendmail
|
||||
only supports seven bit MIME messages.
|
||||
Although it can pass eight bit MIME messages,
|
||||
it cannot advertise that fact because the standards say
|
||||
that the mail agent must be able to do 8- to 7-bit conversion
|
||||
to have full 8-bit support.
|
||||
This requires far more extensive modification of the message body
|
||||
than is currently supported.
|
||||
.pp
|
||||
The best way to do this would be to support the general concept
|
||||
of an external
|
||||
``message filter''
|
||||
that could do arbitrary modifications of the message.
|
||||
This would allow MIME conversion as well as such things as
|
||||
automatic encryption of messages sent over external links.
|
||||
This is probably an extremely non-trivial change.
|
||||
.sh 2 "Service Switch Abstraction"
|
||||
.pp
|
||||
Most modern systems include some concept of a
|
||||
.q "service switch"
|
||||
\*- for example, to look up host names you can try
|
||||
DNS, NIS, NIS+, text tables, NetInfo,
|
||||
or other services in some arbitrary order.
|
||||
This is currently very clumsy in
|
||||
.i sendmail ,
|
||||
with only limited control of the services provided.
|
||||
.sh 2 "More Control of Local Addresses"
|
||||
.pp
|
||||
Currently some addresses are declared as
|
||||
.q local
|
||||
and are handled specially \*-
|
||||
for example, they may have .forward files,
|
||||
may be translated into program calls or file deliveries,
|
||||
and so forth.
|
||||
These should be broken out into separate flags
|
||||
to allow the local system administrator
|
||||
to have more fine-grained control over operations.
|
||||
.sh 2 "More Run-Time Configuration Options"
|
||||
.pp
|
||||
There are many options that are configured at compile time,
|
||||
such as the method of file locking
|
||||
and the use of the IDENT protocol
|
||||
[RFC1413].
|
||||
These should be transfered to run time
|
||||
by adding new options.
|
||||
.pp
|
||||
Similarly, some options are currently overloaded,
|
||||
that is, a single option controls more than one thing.
|
||||
These should probably be broken out into separate options.
|
||||
.pp
|
||||
This implies that options will change from single characters
|
||||
to words.
|
||||
.sh 2 "More Configuration Control Over Errors"
|
||||
.pp
|
||||
Currently,
|
||||
the configuration file can generate an error message during parsing.
|
||||
However,
|
||||
it cannot tweak other operations,
|
||||
such as issuing a warning message to the system postmaster.
|
||||
Similarly,
|
||||
some errors should not be triggered if they are in aliases
|
||||
during an alias file rebuild,
|
||||
but should be triggered if that alias is actually used.
|
||||
.sh 2 "Long Term Host State"
|
||||
.pp
|
||||
Currently,
|
||||
.i sendmail
|
||||
only remembers host status during a single queue run.
|
||||
This should be converted to long term status
|
||||
stored on disk
|
||||
so it can be shared between instantiations of
|
||||
.i sendmail .
|
||||
Entries will have to be timestamped
|
||||
so they can time out.
|
||||
This will allow
|
||||
.i sendmail
|
||||
to implement exponential backoff on queue runs
|
||||
on a per-host basis.
|
||||
.sh 2 "Connection Control"
|
||||
.pp
|
||||
Modern networks have different types of connectivity
|
||||
than the past.
|
||||
In particular, the rising prominence of dialup IP
|
||||
has created certain challenges for automated servers.
|
||||
It is not uncommon to try to make a connection to a host
|
||||
and have it fail, even though if you tried again it would succeed.
|
||||
The connection management could be a bit cleverer
|
||||
to try to adapt to such situations.
|
||||
.sh 2 "Other Caching"
|
||||
.pp
|
||||
When you do an MX record lookup,
|
||||
the name server automatically returns the IP addresses
|
||||
of the associated MX servers.
|
||||
This information is currently ignored,
|
||||
and another query is done to get this information.
|
||||
It should be cached to avoid excess name server traffic.
|
||||
.sh 1 "REFERENCES"
|
||||
.ip [Allman83a]
|
||||
.q "Sendmail \*- An Internetwork Mail Router."
|
||||
E. Allman.
|
||||
In
|
||||
.ul
|
||||
Unix Programmers's Manual,
|
||||
4.2 Berkeley Software Distribution,
|
||||
volume 2C.
|
||||
August 1983.
|
||||
.ip [Allman83b]
|
||||
.q "Mail Systems and Addressing in 4.2BSD."
|
||||
E. Allman
|
||||
In
|
||||
.ul
|
||||
UNICOM Conference Proceedings.
|
||||
San Diego, California.
|
||||
January 1983.
|
||||
.ip [Allman&Amos85]
|
||||
``Sendmail Revisited.''
|
||||
E. Allman and M. Amos.
|
||||
In
|
||||
.ul
|
||||
Usenix Summer 1985 Conference Proceedings.
|
||||
Portland, Oregon.
|
||||
June 1985.
|
||||
.ip [IDA87]
|
||||
.ul 3
|
||||
Electronic Mail Addressing in Theory and Practice
|
||||
with the IDA Sendmail Enhancement Kit
|
||||
(or The Postmaster's Last Will and Testament).
|
||||
Lennart Lo\*:vstrand.
|
||||
Department of Computer and Information Science,
|
||||
University of Linko\*:ping,
|
||||
Sweden,
|
||||
Report no. LiTH-IDA-Ex-8715.
|
||||
May 1987.
|
||||
.ip [RFC821]
|
||||
.ul
|
||||
Simple Mail Transport Protocol.
|
||||
J. Postel.
|
||||
August 1982.
|
||||
.ip [RFC1123]
|
||||
.ul
|
||||
Requirements for Internet Hosts \*- Application and Support.
|
||||
Internet Engineering Task Force,
|
||||
R. Braden, Editor.
|
||||
October 1989.
|
||||
.ip [RFC1344]
|
||||
.ul
|
||||
Implications of MIME for Internet Mail Gateways.
|
||||
N. Borenstein.
|
||||
June 1992.
|
||||
.ip [RFC1413]
|
||||
.ul
|
||||
Identification Protocol.
|
||||
M. St. Johns.
|
||||
February 1993.
|
||||
.ip [RFC1425]
|
||||
.ul
|
||||
SMTP Service Extensions.
|
||||
J. Klensin, N. Freed, M. Rose, E. Stefferud, and D. Crocker.
|
||||
February 1993.
|
||||
.ip [RFC1426]
|
||||
.ul
|
||||
SMTP Service Extension for 8bit-MIMEtransport.
|
||||
J. Klensin, N. Freed, M. Rose, E. Stefferud, and D. Crocker.
|
||||
February 1993.
|
||||
.ip [RFC1427]
|
||||
.ul
|
||||
SMTP Service Extension for Message Size Declaration.
|
||||
J. Klensin, N. Freed, and K. Moore.
|
||||
February 1993.
|
||||
.ip [RFC1521]
|
||||
.ul 3
|
||||
MIME (Multipurpose Internet Mail Extensions) Part One:
|
||||
Mechanisms for Specifying and Describing
|
||||
the Format of Internet Message Bodies.
|
||||
N. Borenstein and N. Freed.
|
||||
September 1993.
|
1092
usr.sbin/sendmail/doc/changes/changes.ps
Normal file
1092
usr.sbin/sendmail/doc/changes/changes.ps
Normal file
File diff suppressed because it is too large
Load Diff
7593
usr.sbin/sendmail/doc/op/op.me
Normal file
7593
usr.sbin/sendmail/doc/op/op.me
Normal file
File diff suppressed because it is too large
Load Diff
5944
usr.sbin/sendmail/doc/op/op.ps
Normal file
5944
usr.sbin/sendmail/doc/op/op.ps
Normal file
File diff suppressed because it is too large
Load Diff
9
usr.sbin/sendmail/mail.local/Makefile
Normal file
9
usr.sbin/sendmail/mail.local/Makefile
Normal file
@ -0,0 +1,9 @@
|
||||
# @(#)Makefile 8.1 (Berkeley) 7/19/93
|
||||
|
||||
PROG= mail.local
|
||||
MAN8= mail.local.0
|
||||
BINOWN= root
|
||||
BINMODE=4555
|
||||
INSTALLFLAGS=-fschg
|
||||
|
||||
.include <bsd.prog.mk>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user