sendmail 8.11.3

This commit is contained in:
itojun 2001-02-28 03:57:37 +00:00
parent e2bb0a8f78
commit a182a19e83
4 changed files with 41 additions and 16 deletions

View File

@ -1,5 +1,5 @@
# #
# Copyright (c) 1998-2000 Sendmail, Inc. and its suppliers. # Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.
# All rights reserved. # All rights reserved.
# Copyright (c) 1983, 1995 Eric P. Allman. All rights reserved. # Copyright (c) 1983, 1995 Eric P. Allman. All rights reserved.
# Copyright (c) 1988, 1993 # Copyright (c) 1988, 1993
@ -16,14 +16,14 @@
##### #####
##### SENDMAIL CONFIGURATION FILE ##### SENDMAIL CONFIGURATION FILE
##### #####
##### built by gshapiro@horsey.gshapiro.net on Fri Dec 29 22:31:00 PST 2000 ##### built by gshapiro@horsey.gshapiro.net on Tue Feb 27 14:54:24 PST 2001
##### in /usr/local/src/sendmail/devel/8.11/OpenSource/sendmail-8.11.2/cf/cf ##### in /usr/local/src/sendmail/devel/8.11/OpenSource/sendmail-8.11.3/cf/cf
##### using ../ as configuration include directory ##### using ../ as configuration include directory
##### #####
###################################################################### ######################################################################
###################################################################### ######################################################################
##### Id: cfhead.m4,v 8.76.4.13 2000/08/24 17:09:50 gshapiro Exp ##### ##### Id: cfhead.m4,v 8.76.4.15 2001/02/14 04:07:20 gshapiro Exp #####
##### Id: cf.m4,v 8.32 1999/02/07 07:26:14 gshapiro Exp ##### ##### Id: cf.m4,v 8.32 1999/02/07 07:26:14 gshapiro Exp #####
##### Id: generic-nextstep3.3.mc,v 8.10 1999/02/07 07:26:02 gshapiro Exp ##### ##### Id: generic-nextstep3.3.mc,v 8.10 1999/02/07 07:26:02 gshapiro Exp #####
@ -105,7 +105,7 @@ Kdequote dequote
# class M: domains that should be converted to $M # class M: domains that should be converted to $M
# class N: domains that should not be converted to $M # class N: domains that should not be converted to $M
#CL root #CL root
CEroot C{E}root
# who I masquerade as (null for no masquerading) (see also $=M) # who I masquerade as (null for no masquerading) (see also $=M)
DM DM
@ -117,7 +117,7 @@ DnMAILER-DAEMON
CPREDIRECT CPREDIRECT
# Configuration version number # Configuration version number
DZ8.11.2 DZ8.11.3
############### ###############

View File

@ -1,6 +1,6 @@
#!/usr/bin/perl -w #!/usr/bin/perl -w
# Copyright (c) 1999-2000 Gregory Neil Shapiro. All Rights Reserved. # Copyright (c) 1999-2001 Gregory Neil Shapiro. All Rights Reserved.
# #
# Redistribution and use in source and binary forms, with or without # Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions # modification, are permitted provided that the following conditions
@ -27,7 +27,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE. # SUCH DAMAGE.
# Id: buildvirtuser,v 1.1.2.1 2000/10/26 22:51:03 gshapiro Exp # Id: buildvirtuser,v 1.1.2.3 2001/02/12 02:57:13 gshapiro Exp
=head1 NAME =head1 NAME
@ -45,7 +45,10 @@ directory should contain one file per virtual domain with the filename
matching the virtual domain name and the contents containing a list of matching the virtual domain name and the contents containing a list of
usernames on the left and the actual address for that username on the usernames on the left and the actual address for that username on the
right. An empty left column translates to the default for that domain. right. An empty left column translates to the default for that domain.
Blank lines and lines beginning with '#' are ignored. Blank lines and lines beginning with '#' are ignored. Occurrences of
$DOMAIN in the file are replaced by the current domain being processed.
Occurrences of $LHS in the right hand side are replaced by the address on
the left hand side.
=head1 CONFIGURATION =head1 CONFIGURATION
@ -66,21 +69,21 @@ Here are some example files from the /etc/mail/virtusers/ directory:
=head2 /etc/mail/virtusers/bsdunix.org: =head2 /etc/mail/virtusers/bsdunix.org:
# Services # Services
MAILER-DAEMON gshapiro+MAILER-DAEMON.bsdunix.org@gshapiro.net MAILER-DAEMON gshapiro+bounce.$DOMAIN@gshapiro.net
postmaster gshapiro+postmaster.bsdunix.org@gshapiro.net postmaster gshapiro+$LHS.$DOMAIN@gshapiro.net
webmaster gshapiro+webmaster.bsdunix.org@gshapiro.net webmaster gshapiro+$LHS.$DOMAIN@gshapiro.net
# Defaults # Defaults
error:nouser No such user error:nouser No such user
# Users # Users
gshapiro gshapiro+bsdunix.org@gshapiro.net gshapiro gshapiro+$DOMAIN@gshapiro.net
bob robert@smtp.org bob robert@smtp.org
=head2 /etc/mail/virtusers/smtp.org: =head2 /etc/mail/virtusers/smtp.org:
# Defaults # Defaults
gshapiro+smtp.org@gshapiro.net gshapiro+$DOMAIN@gshapiro.net
# Users # Users
john john@wookie.org john john@wookie.org
@ -92,6 +95,8 @@ Gregory Neil Shapiro E<lt>F<gshapiro@gshapiro.net>E<gt>
=cut =cut
use strict;
my $makemap = "/usr/sbin/makemap"; my $makemap = "/usr/sbin/makemap";
my $dbtype = "hash"; my $dbtype = "hash";
my $maildir = "/etc/mail"; my $maildir = "/etc/mail";
@ -102,6 +107,7 @@ my $newvirt = "$maildir/virtusertable.new.db";
my $virt = "$maildir/virtusertable.db"; my $virt = "$maildir/virtusertable.db";
my %virt = (); my %virt = ();
my $newest = 0; my $newest = 0;
my ($lhs, $domain, $key, $value);
opendir(VIRTS, $virts) || die "Could not open directory $virts: $!\n"; opendir(VIRTS, $virts) || die "Could not open directory $virts: $!\n";
my @virts = grep { -f "$virts/$_" } readdir(VIRTS); my @virts = grep { -f "$virts/$_" } readdir(VIRTS);
@ -126,10 +132,12 @@ LINE: while (<DOMAIN>)
{ {
if (defined($1)) if (defined($1))
{ {
$lhs = "$1";
$key = "$1\@$domain"; $key = "$1\@$domain";
} }
else else
{ {
$lhs = "";
$key = "\@$domain"; $key = "\@$domain";
} }
$value = $2; $value = $2;
@ -138,6 +146,11 @@ LINE: while (<DOMAIN>)
{ {
die "Bogus line $line in $virts/$domain\n"; die "Bogus line $line in $virts/$domain\n";
} }
# Variable subsitution
$key =~ s/\$DOMAIN/$domain/g;
$value =~ s/\$DOMAIN/$domain/g;
$value =~ s/\$LHS/$lhs/g;
$virt{$key} = $value; $virt{$key} = $value;
} }
close(DOMAIN) || die "Could not close $virts/$domain: $!\n"; close(DOMAIN) || die "Could not close $virts/$domain: $!\n";

12
gnu/dist/sendmail/devtools/OS/OSF1.V5.x vendored Normal file
View File

@ -0,0 +1,12 @@
# Id: OSF1.V5.x,v 8.1.2.1 2001/02/26 21:09:00 gshapiro Exp
define(`confCC', `cc -std1 -Olimit 1000')
define(`confMAPDEF', `-DNDBM -DNIS -DMAP_REGEX')
define(`confENVDEF', `-DHASSNPRINTF=1')
define(`confLIBS', `-ldbm')
define(`confSTDIR', `/var/adm/sendmail')
define(`confINSTALL', `installbsd')
define(`confEBINDIR', `/usr/lbin')
define(`confUBINDIR', `${BINDIR}')
define(`confDEPEND_TYPE', `CC-M')
define(`confMTLDOPTS', `-lpthread')

View File

@ -16,9 +16,9 @@ APPENDDEF(`confENVDEF', `-DNOT_SENDMAIL')
divert(bldTARGETS_SECTION) divert(bldTARGETS_SECTION)
# Install the API header file # Install the API header file
MFAPI= ${SRCDIR}/include/libmilter/mfapi.h MFAPI= ${SRCDIR}/inc`'lude/libmilter/mfapi.h
install-mfapi: ${MFAPI} install-mfapi: ${MFAPI}
${INSTALL} ${MFAPI} ${DESTDIR}${INCLUDEDIR} ${INSTALL} -c -o ${INCOWN} -g ${INCGRP} -m ${INCMODE} ${MFAPI} ${DESTDIR}${INCLUDEDIR}
divert(0) divert(0)
bldFINISH bldFINISH