diff options
author | pat <pat@FreeBSD.org> | 2002-01-30 03:56:09 +0000 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2002-01-30 03:56:09 +0000 |
commit | e5e8bcd5441299fc507a6b0de89aebcf1d635553 (patch) | |
tree | eca6ab800a13404586bfec163116f69b01bc91da /mail/courier/files | |
parent | 60dd2f1197eb00147b684005b6e68eadc0b8524d (diff) | |
download | FreeBSD-ports-e5e8bcd5441299fc507a6b0de89aebcf1d635553.zip FreeBSD-ports-e5e8bcd5441299fc507a6b0de89aebcf1d635553.tar.gz |
Update to 0.37.2.20020125
PR: 34398
Submitted by: maintainer
Diffstat (limited to 'mail/courier/files')
-rw-r--r-- | mail/courier/files/courier.sh | 21 | ||||
-rw-r--r-- | mail/courier/files/patch-courier_perms.sh.in | 300 | ||||
-rw-r--r-- | mail/courier/files/patch-courier_submit2.C | 26 |
3 files changed, 36 insertions, 311 deletions
diff --git a/mail/courier/files/courier.sh b/mail/courier/files/courier.sh index 042be9f..fe9339f 100644 --- a/mail/courier/files/courier.sh +++ b/mail/courier/files/courier.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/mail/courier/files/Attic/courier.sh,v 1.1 2002-01-15 06:17:27 dwhite Exp $ +# $FreeBSD: /tmp/pcvs/ports/mail/courier/files/Attic/courier.sh,v 1.2 2002-01-30 03:56:09 pat Exp $ # # This is the ${PREFIX}/etc/rc.d file for Courier SMTP, IMAP and POP3 servers # @@ -124,6 +124,19 @@ start) # First time after install create aliases.dat and makesmtpaccess.dat esac fi + ESMTPDSSLSTART="" + if [ -f ${sysconfdir}/esmtpd-ssl ]; then + . ${sysconfdir}/esmtpd-ssl + case $ESMTPDSSLSTART in + [Yy]*) + if [ -x $COURIERTLS \ + -a -x ${sbindir}/esmtpd-ssl ]; then + ${sbindir}/esmtpd-ssl start && echo -n " esmtpd-ssl" + fi + ;; + esac + fi + IMAPDSTART="" if [ -f ${sysconfdir}/imapd ]; then . ${sysconfdir}/imapd @@ -203,10 +216,14 @@ stop) # kill courier services in the reverse order of starting them ${sbindir}/imapd stop && echo -n " imapd" fi + if [ -x ${sbindir}/esmtpd-ssl ]; then + ${sbindir}/esmtpd-ssl stop && echo -n " esmtpd-ssl" + fi + if [ -x ${sbindir}/esmtpd-msa ]; then ${sbindir}/esmtpd-msa stop && echo -n " esmtpd-msa" fi - + if [ -x ${sbindir}/esmtpd ]; then ${sbindir}/esmtpd stop && echo -n " esmtpd" fi diff --git a/mail/courier/files/patch-courier_perms.sh.in b/mail/courier/files/patch-courier_perms.sh.in index 5ac4405..fd757b9 100644 --- a/mail/courier/files/patch-courier_perms.sh.in +++ b/mail/courier/files/patch-courier_perms.sh.in @@ -1,302 +1,36 @@ --- courier/perms.sh.in.orig Fri Dec 7 08:37:35 2001 -+++ courier/perms.sh.in Mon Jan 21 18:46:38 2002 -@@ -10,9 +10,7 @@ ++++ courier/perms.sh.in Sun Jan 27 23:12:48 2002 +@@ -10,9 +10,6 @@ exec_prefix="@exec_prefix@" PERMS=" -. 755 - -@localstatedir@ 755 x bin bin -+@localstatedir@ 755 x root wheel @localstatedir@/tmp 770 @localstatedir@/msgs 750 @localstatedir@/msgq 750 -@@ -41,120 +39,125 @@ +@@ -41,7 +38,6 @@ @sysconfdir@/rfcerr2046.txt 444 config @sysconfdir@/rfcerr2047.txt 444 config -@libexecdir@ 755 x bin bin --@libexecdir@/authlib 755 x bin bin --@libexecdir@/courier 755 x bin bin --@libexecdir@/courier/modules 755 x bin bin --@libexecdir@/courier/modules/modules.ctl 444 x bin bin -+@libexecdir@/authlib 755 x root wheel -+@libexecdir@/courier 755 x root wheel -+@libexecdir@/courier/modules 755 x root wheel -+@libexecdir@/courier/modules/dsn 755 x root wheel -+@libexecdir@/courier/modules/esmtp 755 x root wheel -+@libexecdir@/courier/modules/esmtp/authend 555 x root wheel -+@libexecdir@/courier/modules/local 755 x root wheel -+@libexecdir@/courier/modules/local/courierdeliver 555 x root wheel -+@libexecdir@/courier/modules/local/courierlocal 555 x root wheel -+@libexecdir@/courier/modules/modules.ctl 444 x root wheel - @libexecdir@/courier/submitmkdir 4550 --@libexecdir@/courier/courierd 550 --@libexecdir@/courier/courierpop3d 555 --@libexecdir@/courier/courierpop3login 555 -+@libexecdir@/courier/courierd 550 -+@libexecdir@/courier/courierpop3d 555 x root wheel -+@libexecdir@/courier/courierpop3login 555 x root wheel - @libexecdir@/courier/aliasexp 550 - @libexecdir@/courier/aliascombine 550 - @libexecdir@/courier/aliascreate 550 - @libexecdir@/courier/submit 550 --@libexecdir@/courier/makedatprog 555 --@libexecdir@/courier/imaplogin 555 x bin bin --@libexecdir@/courier/pcpd 555 x bin bin --@libexecdir@/courier/webmail 700 x root bin --@libexecdir@/courier/webmail/webmail 4555 x root bin --@libexecdir@/courier/webmail/webadmin 4555 x root bin -- + @libexecdir@/authlib 755 x bin bin + @libexecdir@/courier 755 x bin bin + @libexecdir@/courier/modules 755 x bin bin +@@ -61,7 +57,6 @@ + @libexecdir@/courier/webmail/webmail 4555 x root bin + @libexecdir@/courier/webmail/webadmin 4555 x root bin + -@sbindir@ 755 x bin bin --@sbindir@/courier 555 --@sbindir@/showconfig 555 -+@libexecdir@/courier/makedatprog 555 x root wheel -+@libexecdir@/courier/imaplogin 555 x root wheel -+@libexecdir@/courier/pcpd 555 x root wheel -+@libexecdir@/courier/webmail 700 x root wheel -+@libexecdir@/courier/webmail/webmail 4555 x root wheel -+@libexecdir@/courier/webmail/webadmin 4555 x root wheel -+@libexecdir@/filters 755 x root wheel -+@libexecdir@/filters/dupfilter 555 x root wheel -+@libexecdir@/filters/perlfilter 555 x root wheel -+ -+@sbindir@/courier 555 x root wheel -+@sbindir@/showconfig 555 x root wheel + @sbindir@/courier 555 + @sbindir@/showconfig 555 @sbindir@/showmodules 550 --@sbindir@/userdbpw 555 --@sbindir@/couriertcpd 555 --@sbindir@/logger 555 --@sbindir@/imapd 555 --@sbindir@/imapd-ssl 555 --@datadir@/imapd 555 x bin bin --@datadir@/imapd-ssl 555 x bin bin -+@sbindir@/userdbpw 555 x root wheel -+@sbindir@/couriertcpd 555 x root wheel -+@sbindir@/logger 555 x root wheel -+@sbindir@/imapd 555 x root wheel -+@sbindir@/imapd-ssl 555 x root wheel -+@datadir@/imapd 555 x root wheel -+@datadir@/imapd-ssl 555 x root wheel +@@ -73,7 +68,6 @@ + @datadir@/imapd 555 x bin bin + @datadir@/imapd-ssl 555 x bin bin -@bindir@ 755 x bin bin @bindir@/cancelmsg 6555 --@bindir@/courier-config 555 --@bindir@/mailq 2555 --@bindir@/maildirmake 555 --@bindir@/sendmail 4511 x root --@bindir@/rmail 4511 x root --@bindir@/dotlock 555 --@bindir@/deliverquota 555 --@bindir@/mailbot 555 --@bindir@/makemime 555 --@bindir@/reformail 555 --@bindir@/reformime 555 --@bindir@/mimegpg 555 --@bindir@/couriermlm 555 --@bindir@/dotforward 555 -- --@datadir@/makedat 555 x bin bin --@bindir@/makedat 555 --@bindir@/testmxlookup 555 --@bindir@/imapd 555 --@datadir@/makealiases 550 --@sbindir@/makealiases 550 --@datadir@/makehosteddomains 555 --@sbindir@/makehosteddomains 555 --@datadir@/pop3d 755 --@sbindir@/pop3d 755 --@datadir@/pop3d-ssl 755 --@sbindir@/pop3d-ssl 755 --@datadir@/makeuserdb 555 --@sbindir@/makeuserdb 555 --@datadir@/webgpg 555 --@sbindir@/webgpg 555 --@datadir@/userdb 555 --@sbindir@/userdb 555 --@datadir@/pw2userdb 555 --@sbindir@/pw2userdb 555 --@datadir@/vchkpw2userdb 555 --@sbindir@/vchkpw2userdb 555 -- --@datadir@ 755 x bin bin --@datadir@/courierctl.start 555 -- --@datadir@/mkimapdcert 755 --@sbindir@/mkimapdcert 755 --@datadir@/mkpop3dcert 755 --@sbindir@/mkpop3dcert 755 --@datadir@/couriermlm 755 -- --@datadir@/couriermlm/adminrequest.tmpl 644 --@datadir@/couriermlm/confsubj.tmpl 644 --@datadir@/couriermlm/digestsubj.tmpl 644 --@datadir@/couriermlm/fetch.tmpl 644 --@datadir@/couriermlm/fetchsubj.tmpl 644 --@datadir@/couriermlm/help.tmpl 644 --@datadir@/couriermlm/idxsubject.tmpl 644 --@datadir@/couriermlm/idxheaderhtml.tmpl 644 --@datadir@/couriermlm/idxheader2html.tmpl 644 --@datadir@/couriermlm/idxheadertxt.tmpl 644 --@datadir@/couriermlm/modrejbody.tmpl 644 --@datadir@/couriermlm/modreject.tmpl 644 --@datadir@/couriermlm/modrejheader.tmpl 644 --@datadir@/couriermlm/modsubject.tmpl 644 --@datadir@/couriermlm/modtext.tmpl 644 --@datadir@/couriermlm/modtext2.tmpl 644 --@datadir@/couriermlm/sub.tmpl 644 --@datadir@/couriermlm/sub2.tmpl 644 --@datadir@/couriermlm/sub3.tmpl 644 --@datadir@/couriermlm/sub4.tmpl 644 --@datadir@/couriermlm/sub5.tmpl 644 --@datadir@/couriermlm/subreportfooter.tmpl 644 --@datadir@/couriermlm/subreporthdr.tmpl 644 --@datadir@/couriermlm/subreporthdr1.tmpl 644 --@datadir@/couriermlm/subreporthdr2.tmpl 644 --@datadir@/couriermlm/subreporthdr3.tmpl 644 --@datadir@/couriermlm/unsub.tmpl 644 --@datadir@/couriermlm/unsub2.tmpl 644 --@datadir@/couriermlm/unsub3.tmpl 644 --@datadir@/couriermlm/warn1headers.tmpl 644 --@datadir@/couriermlm/warn1text.tmpl 644 --@datadir@/couriermlm/warn1text2.tmpl 644 --@datadir@/couriermlm/warn2msg.tmpl 644 -+@bindir@/courier-config 555 x root wheel -+@bindir@/mailq 2555 x root -+@bindir@/maildirmake 555 x root wheel -+@bindir@/sendmail 4511 x root wheel -+@bindir@/rmail 4511 x root wheel -+@bindir@/dotlock 555 x root wheel -+@bindir@/deliverquota 555 x root wheel -+@bindir@/mailbot 555 x root wheel -+@bindir@/makemime 555 x root wheel -+@bindir@/reformail 555 x root wheel -+@bindir@/reformime 555 x root wheel -+@bindir@/mimegpg 555 x root wheel -+@bindir@/couriermlm 555 x root wheel -+@bindir@/dotforward 555 x root wheel -+ -+@datadir@/makedat 555 x root wheel -+@bindir@/makedat 555 x root wheel -+@bindir@/testmxlookup 555 x root wheel -+@bindir@/imapd 555 x root wheel -+@datadir@/makealiases 555 x root wheel -+@sbindir@/makealiases 555 x root wheel -+@datadir@/makehosteddomains 555 x root wheel -+@sbindir@/makehosteddomains 555 x root wheel -+@datadir@/pop3d 555 x root wheel -+@sbindir@/pop3d 555 x root wheel -+@datadir@/pop3d-ssl 555 x root wheel -+@sbindir@/pop3d-ssl 555 x root wheel -+@datadir@/makeuserdb 555 x root wheel -+@sbindir@/makeuserdb 555 x root wheel -+@datadir@/webgpg 555 x root wheel -+@sbindir@/webgpg 555 x root wheel -+@datadir@/userdb 555 x root wheel -+@sbindir@/userdb 555 x root wheel -+@datadir@/pw2userdb 555 x root wheel -+@sbindir@/pw2userdb 555 x root wheel -+@datadir@/vchkpw2userdb 555 x root wheel -+@sbindir@/vchkpw2userdb 555 x root wheel -+ -+@datadir@/courierctl.start 555 x root wheel -+ -+@datadir@/mkimapdcert 555 x root wheel -+@sbindir@/mkimapdcert 555 x root wheel -+@datadir@/mkpop3dcert 555 x root wheel -+@sbindir@/mkpop3dcert 555 x root wheel -+@datadir@/couriermlm 555 x root wheel -+ -+@datadir@/couriermlm/adminrequest.tmpl 444 x root wheel -+@datadir@/couriermlm/confsubj.tmpl 444 x root wheel -+@datadir@/couriermlm/digestsubj.tmpl 444 x root wheel -+@datadir@/couriermlm/fetch.tmpl 444 x root wheel -+@datadir@/couriermlm/fetchsubj.tmpl 444 x root wheel -+@datadir@/couriermlm/help.tmpl 444 x root wheel -+@datadir@/couriermlm/idxsubject.tmpl 444 x root wheel -+@datadir@/couriermlm/idxheaderhtml.tmpl 444 x root wheel -+@datadir@/couriermlm/idxheader2html.tmpl 444 x root wheel -+@datadir@/couriermlm/idxheadertxt.tmpl 444 x root wheel -+@datadir@/couriermlm/modrejbody.tmpl 444 x root wheel -+@datadir@/couriermlm/modreject.tmpl 444 x root wheel -+@datadir@/couriermlm/modrejheader.tmpl 444 x root wheel -+@datadir@/couriermlm/modsubject.tmpl 444 x root wheel -+@datadir@/couriermlm/modtext.tmpl 444 x root wheel -+@datadir@/couriermlm/modtext2.tmpl 444 x root wheel -+@datadir@/couriermlm/sub.tmpl 444 x root wheel -+@datadir@/couriermlm/sub2.tmpl 444 x root wheel -+@datadir@/couriermlm/sub3.tmpl 444 x root wheel -+@datadir@/couriermlm/sub4.tmpl 444 x root wheel -+@datadir@/couriermlm/sub5.tmpl 444 x root wheel -+@datadir@/couriermlm/subreportfooter.tmpl 444 x root wheel -+@datadir@/couriermlm/subreporthdr.tmpl 444 x root wheel -+@datadir@/couriermlm/subreporthdr1.tmpl 444 x root wheel -+@datadir@/couriermlm/subreporthdr2.tmpl 444 x root wheel -+@datadir@/couriermlm/subreporthdr3.tmpl 444 x root wheel -+@datadir@/couriermlm/unsub.tmpl 444 x root wheel -+@datadir@/couriermlm/unsub2.tmpl 444 x root wheel -+@datadir@/couriermlm/unsub3.tmpl 444 x root wheel -+@datadir@/couriermlm/warn1headers.tmpl 444 x root wheel -+@datadir@/couriermlm/warn1text.tmpl 444 x root wheel -+@datadir@/couriermlm/warn1text2.tmpl 444 x root wheel -+@datadir@/couriermlm/warn2msg.tmpl 444 x root wheel - " - - echo "$PERMS" | while read FILE MODE SPECIAL USER GROUP -@@ -198,7 +201,7 @@ - - if test "$couriertls" != "" - then -- echo @bindir@/couriertls 555 bin bin -+ echo @bindir@/couriertls 555 root wheel - fi - - if test "@HAVE_LDAP@" != 0 -@@ -207,23 +210,23 @@ - echo @sbindir@/courierldapaliasd 700 @mailuser@ @mailgroup@ - fi - --echo @datadir@/sqwebmail/images 755 @mailuser@ @mailgroup@ -+echo @datadir@/sqwebmail/images 755 root wheel - - for f in `cat ../webmail/images/filelist 2>/dev/null` - do -- echo @datadir@/sqwebmail/images/$f 444 @mailuser@ @mailgroup@ -+ echo @datadir@/sqwebmail/images/$f 444 root wheel - done - - . ../maildrop/uidgid - --echo @bindir@/maildrop 4511 $uid @mailgroup@ -+echo @bindir@/maildrop 4511 $uid mail - - sed 's:^:'@sysconfdir@/':;s/$/ 660 @mailuser@ @mailgroup@ config/' <../authlib/authconfiglist - - for f in `cat ../authlib/installlist ../authlib/installlist.sh` - do - test -z "$f" && continue -- echo @libexecdir@/authlib/$f 755 bin bin -+ echo @libexecdir@/authlib/$f 555 root wheel - done - - . ../authlib/authdaemonrc -@@ -240,16 +243,16 @@ - - . ../authlib/authpwdprogs - --echo "@authchangepwdir@ 755 @mailuser@ @mailgroup@" -+echo "@authchangepwdir@ 755 root wheel" - for f in `echo $PWPROGS dummy` - do - test "$f" = "dummy" && continue -- echo "@authchangepwdir@/$f 4555 root bin" -+ echo "@authchangepwdir@/$f 4555 root wheel" - done - - for f in `echo $PWSCRIPTS dummy` - do - test "$f" = "dummy" && continue - echo "@authchangepwdir@/$f 555 @mailuser@ @mailgroup@" -- echo "@datadir@/$f 555 @mailuser@ @mailgroup@" -+ echo "@datadir@/$f 555 root wheel" - done + @bindir@/courier-config 555 + @bindir@/mailq 2555 diff --git a/mail/courier/files/patch-courier_submit2.C b/mail/courier/files/patch-courier_submit2.C deleted file mode 100644 index b1f049d..0000000 --- a/mail/courier/files/patch-courier_submit2.C +++ /dev/null @@ -1,26 +0,0 @@ ---- courier/submit2.C.orig Tue Jan 15 17:44:37 2002 -+++ courier/submit2.C Mon Jan 21 15:38:40 2002 -@@ -777,6 +777,8 @@ - { - int is8bit=0, dorewrite=0, rwmode=0; - const char *mime=getenv("MIME"); -+const char *q=getenv("BOFHACCEPT8BIT"); -+const int accept8bit=(q && *q == '1' ? 1 : 0); - unsigned n; - struct stat stat_buf; - const char *rfcerr=NULL; -@@ -800,12 +802,12 @@ - return (1); - } - -- if (rwrfcptr->rfcviolation & RFC2045_ERR8BITHEADER) -+ if (!accept8bit && (rwrfcptr->rfcviolation & RFC2045_ERR8BITHEADER)) - { - rfcerr= SYSCONFDIR "/rfcerr2047.txt"; - dorewrite=1; - } -- else if (rwrfcptr->rfcviolation & RFC2045_ERR8BITCONTENT) -+ else if (!accept8bit && (rwrfcptr->rfcviolation & RFC2045_ERR8BITCONTENT)) - { - rfcerr= SYSCONFDIR "/rfcerr2045.txt"; - dorewrite=1; |