mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Adding WorkAroundBrokenAAAA seems a necessity even in the submit.mc given
the number of broken DNS servers out there in the world. Since we are diverging from the sendmail.org submit.mc, it's time to make our own freebsd.submit.mc. PR: conf/57733 Reviewed by: nork MFC after: 2 weeks
This commit is contained in:
parent
38e7cb26d4
commit
1f9b7c9633
3 changed files with 30 additions and 11 deletions
|
|
@ -59,6 +59,7 @@ infrastructure in FreeBSD:
|
|||
etc/rc
|
||||
etc/sendmail/Makefile
|
||||
etc/sendmail/freebsd.mc
|
||||
etc/sendmail/freebsd.submit.mc
|
||||
etc/sendmail/freefall.mc
|
||||
etc/sendmail/rc.sendmail
|
||||
lib/Makefile
|
||||
|
|
|
|||
|
|
@ -60,13 +60,6 @@ ${mc:T:R}.cf: ${mc}
|
|||
|
||||
all: ${ALL}
|
||||
|
||||
# Build the installed submit.cf from the sendmail distributed submit.mc.
|
||||
freebsd.submit.cf: ${SENDMAIL_CF_DIR}/cf/submit.mc
|
||||
${RM} ${.TARGET}
|
||||
${M4} -D_CF_DIR_=${SENDMAIL_CF_DIR}/ ${SENDMAIL_M4_FLAGS} \
|
||||
${SENDMAIL_CF_DIR}/m4/cf.m4 ${.ALLSRC} > ${.TARGET}
|
||||
${CHMOD} ${ROMODE} ${.TARGET}
|
||||
|
||||
install distribution:
|
||||
.if defined(SENDMAIL_MC) && defined(SENDMAIL_CF)
|
||||
@echo ">>> ERROR: Both SENDMAIL_MC and SENDMAIL_CF cannot be set"
|
||||
|
|
@ -76,10 +69,7 @@ install distribution:
|
|||
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
|
||||
${.CURDIR}/freebsd.mc freebsd.cf ${DESTDIR}/etc/mail
|
||||
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
||||
${SENDMAIL_CF_DIR}/cf/submit.mc \
|
||||
${DESTDIR}/etc/mail/freebsd.submit.mc
|
||||
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
||||
freebsd.submit.cf ${DESTDIR}/etc/mail
|
||||
${.CURDIR}/freebsd.submit.mc freebsd.submit.cf ${DESTDIR}/etc/mail
|
||||
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
|
||||
${SMDIR}/helpfile ${DESTDIR}/etc/mail
|
||||
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 \
|
||||
|
|
|
|||
28
etc/sendmail/freebsd.submit.mc
Normal file
28
etc/sendmail/freebsd.submit.mc
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
divert(-1)
|
||||
#
|
||||
# Copyright (c) 2001-2003 Sendmail, Inc. and its suppliers.
|
||||
# All rights reserved.
|
||||
#
|
||||
# By using this file, you agree to the terms and conditions set
|
||||
# forth in the LICENSE file which can be found at the top level of
|
||||
# the sendmail distribution.
|
||||
#
|
||||
#
|
||||
|
||||
#
|
||||
# This is the FreeBSD configuration for a set-group-ID sm-msp sendmail
|
||||
# that acts as a initial mail submission program.
|
||||
#
|
||||
#
|
||||
|
||||
divert(0)dnl
|
||||
VERSIONID(`$FreeBSD$')
|
||||
define(`confCF_VERSION', `Submit')dnl
|
||||
define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining
|
||||
define(`_USE_DECNET_SYNTAX_', `1')dnl support DECnet
|
||||
define(`confTIME_ZONE', `USE_TZ')dnl
|
||||
define(`confDONT_INIT_GROUPS', `True')dnl
|
||||
define(`confBIND_OPTS', `WorkAroundBrokenAAAA')dnl
|
||||
dnl
|
||||
dnl If you use IPv6 only, change [127.0.0.1] to [IPv6:::1]
|
||||
FEATURE(`msp', `[127.0.0.1]')dnl
|
||||
Loading…
Reference in a new issue