summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2014-09-15 22:28:59 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2014-09-15 22:28:59 +0000
commit55a5f514d38a96ba09fc1acfa782fda9bc5c8ccf (patch)
treea71970634e61d1d1f4188822e8a723029d4871c3
parent0421a525e4046200184299a37e9fe1bf0986ef9a (diff)
Remove sendmail tentacles. ok krw@ ajacoutot@
-rw-r--r--etc/Makefile7
-rw-r--r--etc/changelist15
-rw-r--r--etc/crontab5
-rw-r--r--etc/mail/Makefile64
-rw-r--r--etc/master.passwd1
-rw-r--r--etc/mtree/4.4BSD.dist34
-rw-r--r--etc/rc4
-rw-r--r--etc/rc.conf4
8 files changed, 16 insertions, 118 deletions
diff --git a/etc/Makefile b/etc/Makefile
index 9bcb1de390b..b3c004e0227 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.394 2014/09/15 20:26:32 rpe Exp $
+# $OpenBSD: Makefile,v 1.395 2014/09/15 22:28:58 matthieu Exp $
TZDIR= /usr/share/zoneinfo
LOCALTIME= Canada/Mountain
@@ -55,7 +55,7 @@ RCDAEMONS= amd apmd bgpd bootparamd cron dhcpd dhcrelay dvmrpd \
ftpd ftpproxy hostapd hotplugd httpd identd ifstated iked \
inetd isakmpd ldapd npppd ldattach ldpd lpd mopd mrouted \
nsd ntpd ospfd ospf6d portmap pflogd rarpd rbootd \
- relayd ripd route6d rtadvd rtsold sasyncd sendmail \
+ relayd ripd route6d rtadvd rtsold sasyncd \
sensorsd slowcgi smtpd snmpd spamd sshd syslogd watchdogd \
wsmoused xdm ypbind ypldap yppasswdd ypserv nfsd mountd lockd \
statd spamlogd sndiod tftpd tftpproxy ldomd unbound iscsid
@@ -190,13 +190,10 @@ distribution-etc-root-var: distrib-dirs
${DESTDIR}/var/log/messages
${INSTALL} -c -o ${BINOWN} -g wheel -m 600 /dev/null \
${DESTDIR}/var/log/secure
- ${INSTALL} -c -o ${BINOWN} -g wheel -m 664 /dev/null \
- ${DESTDIR}/var/log/sendmail.st
${INSTALL} -c -o ${BINOWN} -g wheel -m 644 /dev/null \
${DESTDIR}/var/log/wtmp
${INSTALL} -c -o ${BINOWN} -g wheel -m 640 /dev/null \
${DESTDIR}/var/log/xferlog
- cd ../gnu/usr.sbin/sendmail/cf/cf && exec ${MAKE} distribution
cd ../usr.sbin/ypserv/ypinit && exec ${MAKE} distribution
cd ../usr.bin/ssh && exec ${MAKE} distribution
cd ../lib/libcrypto && exec ${MAKE} distribution
diff --git a/etc/changelist b/etc/changelist
index dc2fc42fc52..115381d0158 100644
--- a/etc/changelist
+++ b/etc/changelist
@@ -1,4 +1,4 @@
-# $OpenBSD: changelist,v 1.101 2014/09/03 21:19:34 matthieu Exp $
+# $OpenBSD: changelist,v 1.102 2014/09/15 22:28:58 matthieu Exp $
#
# List of files which the security script backs up and checks
# for modifications.
@@ -55,22 +55,9 @@
/etc/locate.rc
/etc/login.conf
/etc/mail.rc
-/etc/mail/access
/etc/mail/aliases
-/etc/mail/genericstable
-/etc/mail/helpfile
-/etc/mail/local-host-names
-/etc/mail/localhost.cf
-/etc/mail/mailertable
-/etc/mail/relay-domains
-+/etc/mail/secrets
-/etc/mail/sendmail.cf
/etc/mail/smtpd.conf
/etc/mail/spamd.conf
-/etc/mail/submit.cf
-/etc/mail/trusted-users
-/etc/mail/virtual
-/etc/mail/virtusertable
/etc/mailer.conf
/etc/man.conf
/etc/master.passwd
diff --git a/etc/crontab b/etc/crontab
index f32cd8c36d8..1f909713b88 100644
--- a/etc/crontab
+++ b/etc/crontab
@@ -1,4 +1,4 @@
-# $OpenBSD: crontab,v 1.20 2014/03/12 18:21:34 tedu Exp $
+# $OpenBSD: crontab,v 1.21 2014/09/15 22:28:58 matthieu Exp $
#
# /var/cron/tabs/root - root's crontab
#
@@ -8,9 +8,6 @@ HOME=/var/log
#
#minute hour mday month wday command
#
-# sendmail clientmqueue runner
-#*/30 * * * * /usr/sbin/sendmail -L sm-msp-queue -Ac -q
-#
# rotate log files every hour, if necessary
0 * * * * /usr/bin/newsyslog
# send log file notifications, if necessary
diff --git a/etc/mail/Makefile b/etc/mail/Makefile
index 09f1fc85a7a..7ecacd427a6 100644
--- a/etc/mail/Makefile
+++ b/etc/mail/Makefile
@@ -1,18 +1,9 @@
-# $OpenBSD: Makefile,v 1.8 2014/03/12 21:40:27 tedu Exp $
+# $OpenBSD: Makefile,v 1.9 2014/09/15 22:28:58 matthieu Exp $
#
# Generate the various .db versions from their source files.
-# The sendmail .mc files are not built here. They live in
-# /usr/share/sendmail/cf and have their own Makefile.
-#
-
-SENDMAIL= /usr/libexec/sendmail/sendmail
-MAKEMAP= /usr/libexec/sendmail/makemap
-.for DB in access aliases genericstable mailertable virtusertable userdb
-. if exists(${DB})
-DB_FILES+= ${DB}.db
-. endif
-.endfor
+DB_FILES= aliases.db
+MAKEMAP= /usr/libexec/smtpd/makemap
all: ${DB_FILES}
@@ -22,58 +13,19 @@ clean:
distribution:
${INSTALL} -c -o root -g wheel -m 644 Makefile \
${DESTDIR}/etc/mail/Makefile
- ${INSTALL} -c -o root -g wheel -m 644 README \
- ${DESTDIR}/etc/mail/README
- ${INSTALL} -c -o root -g wheel -m 644 access \
- ${DESTDIR}/etc/mail/access
- ${MAKEMAP} hash ${DESTDIR}/etc/mail/access < access
${INSTALL} -c -o root -g wheel -m 644 aliases \
${DESTDIR}/etc/mail/aliases
- ${SENDMAIL} -C${DESTDIR}/etc/mail/sendmail.cf \
- -bi -O AliasFile=${DESTDIR}/etc/mail/aliases \
- -O DontBlameSendmail=mapinunsafedirpath
- ${INSTALL} -c -o root -g wheel -m 644 local-host-names \
- ${DESTDIR}/etc/mail/local-host-names
- ${INSTALL} -c -o root -g wheel -m 644 genericstable \
- ${DESTDIR}/etc/mail/genericstable
- ${MAKEMAP} hash ${DESTDIR}/etc/mail/genericstable < genericstable
- ${INSTALL} -c -o root -g wheel -m 644 mailertable \
- ${DESTDIR}/etc/mail/mailertable
- ${MAKEMAP} hash ${DESTDIR}/etc/mail/mailertable < mailertable
- ${INSTALL} -c -o root -g wheel -m 644 relay-domains \
- ${DESTDIR}/etc/mail/relay-domains
- ${INSTALL} -c -o root -g wheel -m 644 trusted-users \
- ${DESTDIR}/etc/mail/trusted-users
- ${INSTALL} -c -o root -g wheel -m 644 virtusertable \
- ${DESTDIR}/etc/mail/virtusertable
- ${INSTALL} -c -o root -g wheel -m 644 spamd.conf \
- ${DESTDIR}/etc/mail/spamd.conf
+ ${MAKEMAP} -t aliases -o ${DESTDIR}/etc/mail/aliases.db \
+ aliases
${INSTALL} -c -o root -g wheel -m 644 smtpd.conf \
${DESTDIR}/etc/mail/smtpd.conf
- ${MAKEMAP} hash ${DESTDIR}/etc/mail/virtusertable < virtusertable
- @for db in access.db aliases.db genericstable.db mailertable.db \
- virtusertable.db; do \
- chmod 644 ${DESTDIR}/etc/mail/$$db; \
- done
-
-access.db: access
- ${MAKEMAP} hash ${.ALLSRC} < ${.ALLSRC}
+ ${INSTALL} -c -o root -g wheel -m 644 spamd.conf \
+ ${DESTDIR}/etc/mail/spamd.conf
+ chmod 644 ${DESTDIR}/etc/mail/aliases.db
aliases.db: aliases
newaliases
-genericstable.db: genericstable
- ${MAKEMAP} hash ${.ALLSRC} < ${.ALLSRC}
-
-mailertable.db: mailertable
- ${MAKEMAP} hash ${.ALLSRC} < ${.ALLSRC}
-
-virtusertable.db: virtusertable
- ${MAKEMAP} hash ${.ALLSRC} < ${.ALLSRC}
-
-userdb.db: userdb
- ${MAKEMAP} btree ${.ALLSRC} < ${.ALLSRC}
-
.PHONY: distribution
.include <bsd.own.mk>
.include <bsd.sys.mk>
diff --git a/etc/master.passwd b/etc/master.passwd
index 7423d9424c8..2972a62cd22 100644
--- a/etc/master.passwd
+++ b/etc/master.passwd
@@ -2,7 +2,6 @@ root::0:0:daemon:0:0:Charlie &:/root:/bin/ksh
daemon:*:1:1::0:0:The devil himself:/root:/sbin/nologin
operator:*:2:5::0:0:System &:/operator:/sbin/nologin
bin:*:3:7::0:0:Binaries Commands and Source:/:/sbin/nologin
-smmsp:*:25:25::0:0:Sendmail Message Submission Program:/nonexistent:/sbin/nologin
sshd:*:27:27::0:0:sshd privsep:/var/empty:/sbin/nologin
_portmap:*:28:28::0:0:portmap:/var/empty:/sbin/nologin
_identd:*:29:29::0:0:identd:/var/empty:/sbin/nologin
diff --git a/etc/mtree/4.4BSD.dist b/etc/mtree/4.4BSD.dist
index d7cf5555340..dc4e0eb907d 100644
--- a/etc/mtree/4.4BSD.dist
+++ b/etc/mtree/4.4BSD.dist
@@ -1,4 +1,4 @@
-# $OpenBSD: 4.4BSD.dist,v 1.263 2014/08/26 19:33:48 robert Exp $
+# $OpenBSD: 4.4BSD.dist,v 1.264 2014/09/15 22:28:58 matthieu Exp $
/set type=dir uname=root gname=wheel mode=0755
@@ -147,10 +147,6 @@ usr
std gname=bin uname=root mode=0755
..
..
-
- # ./usr/include/libmilter
- libmilter gname=bin uname=root mode=0755
- ..
objc gname=bin uname=root mode=0755
..
openssl gname=bin uname=root mode=0755
@@ -191,8 +187,6 @@ usr
..
lpr
..
- sendmail type=dir uname=root gname=wheel mode=0755
- ..
smtpd type=dir uname=root gname=wheel mode=0755
..
..
@@ -636,28 +630,6 @@ usr
nls
..
- # ./usr/share/sendmail
- sendmail
- cf
- ..
- domain
- ..
- feature
- ..
- hack
- ..
- m4
- ..
- mailer
- ..
- ostype
- ..
- sh
- ..
- siteconfig
- ..
- ..
-
# ./usr/share/snmp
snmp
mibs
@@ -795,8 +767,6 @@ var
# ./var/spool
spool
- clientmqueue mode=0770 uname=smmsp gname=smmsp
- ..
# ./var/spool/ftp
ftp mode=0555
@@ -813,8 +783,6 @@ var
# ./var/spool/lock
lock uname=uucp gname=dialer mode=1775
..
- mqueue mode=0700
- ..
output gname=daemon mode=0775
..
smtpd type=dir uname=root gname=wheel mode=0711
diff --git a/etc/rc b/etc/rc
index 8955d7c7c53..ac70196d3b6 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.441 2014/08/26 19:33:48 robert Exp $
+# $OpenBSD: rc,v 1.442 2014/09/15 22:28:58 matthieu Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -498,7 +498,7 @@ if ifconfig lo0 inet6 >/dev/null 2>&1; then
fi
fi
-start_daemon hostapd lpd sendmail smtpd slowcgi httpd ftpd
+start_daemon hostapd lpd smtpd slowcgi httpd ftpd
start_daemon ftpproxy tftpd tftpproxy identd inetd rarpd bootparamd
start_daemon rbootd mopd spamd spamlogd sndiod
echo '.'
diff --git a/etc/rc.conf b/etc/rc.conf
index c4af1a86b37..8ea12680237 100644
--- a/etc/rc.conf
+++ b/etc/rc.conf
@@ -1,4 +1,4 @@
-# $OpenBSD: rc.conf,v 1.198 2014/08/27 14:04:15 florian Exp $
+# $OpenBSD: rc.conf,v 1.199 2014/09/15 22:28:58 matthieu Exp $
# DO NOT EDIT THIS FILE!!
#
@@ -67,8 +67,6 @@ iscsid_flags=NO # for normal use: ""
slowcgi_flags=NO # for normal use: ""
-# For normal use: "-L sm-mta -bd -q30m", and note there is a cron job
-sendmail_flags=NO
spamd_flags=NO # for normal use: "" and see spamd(8)
spamd_black=NO # set to YES to run spamd without greylisting
spamlogd_flags= # use eg. "-i interface" and see spamlogd(8)