forked from pool/courier-imap
This commit is contained in:
commit
dc05804c3b
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
265
courier-imap-4.0.6.diff
Normal file
265
courier-imap-4.0.6.diff
Normal file
@ -0,0 +1,265 @@
|
||||
--- bdbobj/Makefile.in
|
||||
+++ bdbobj/Makefile.in 2005/12/06 09:07:04
|
||||
@@ -217,7 +217,6 @@
|
||||
@FOUND_DB_TRUE@testbdb_SOURCES = $(TESTBDBSOURCES)
|
||||
@FOUND_DB_TRUE@testbdb_DEPENDENCIES = libbdbobj.la
|
||||
@FOUND_DB_TRUE@testbdb_LDADD = libbdbobj.la @LIBDB@
|
||||
-@FOUND_DB_TRUE@testbdb_LDFLAGS = -static
|
||||
@FOUND_DB_FALSE@noinst_SCRIPTS = notfound
|
||||
EXTRA_DIST = $(LIBDBOBJSOURCES) $(TESTBDBSOURCES) testsuite testsuite.txt
|
||||
all: config.h
|
||||
--- gdbmobj/Makefile.in
|
||||
+++ gdbmobj/Makefile.in 2005/12/06 09:07:09
|
||||
@@ -218,7 +218,6 @@
|
||||
@FOUND_GDBM_TRUE@testgdbm_SOURCES = $(TESTGDBMSOURCES)
|
||||
@FOUND_GDBM_TRUE@testgdbm_DEPENDENCIES = libgdbmobj.la
|
||||
@FOUND_GDBM_TRUE@testgdbm_LDADD = libgdbmobj.la @LIBGDBM@
|
||||
-@FOUND_GDBM_TRUE@testgdbm_LDFLAGS = -static
|
||||
@FOUND_GDBM_FALSE@noinst_SCRIPTS = notfound
|
||||
EXTRA_DIST = $(LIBGDBMSOURCES) $(TESTGDBMSOURCES) testsuite testsuite.txt
|
||||
all: config.h
|
||||
--- imap/imapd.8.in
|
||||
+++ imap/imapd.8.in 2005/12/06 09:05:42
|
||||
@@ -15,7 +15,7 @@
|
||||
\fB@libexecdir@/couriertcpd\fR \fBcouriertcpd options\fR \fB@prefix@/sbin/imaplogin\fR [ \fB\fImodules\fB\fR\fI ...\fR ] \fB@prefix@/bin/imapd\fR \fB\&./Maildir\fR
|
||||
|
||||
|
||||
-\fB@prefix@/bin/imapd\fR \fB\&./Maildir\fR
|
||||
+\fB@prefix@/sbin/imapd\fR \fB\&./Maildir\fR
|
||||
|
||||
.SH "DESCRIPTION"
|
||||
.PP
|
||||
--- imap/imapd-ssl.dist.in
|
||||
+++ imap/imapd-ssl.dist.in 2005/12/06 09:05:42
|
||||
@@ -104,7 +104,7 @@
|
||||
##NAME: COURIERTLS:0
|
||||
#
|
||||
|
||||
-COURIERTLS=@bindir@/couriertls
|
||||
+COURIERTLS=@sbindir@/couriertls
|
||||
|
||||
##NAME: TLS_PROTOCOL:0
|
||||
#
|
||||
--- imap/Makefile.in
|
||||
+++ imap/Makefile.in 2005/12/06 09:07:25
|
||||
@@ -275,7 +275,6 @@
|
||||
noinst_LTLIBRARIES = libimaplogin.la libimapd.la libpop3d.la
|
||||
libimaplogin_la_SOURCES =
|
||||
libimaplogin_la_LIBADD = ../tcpd/libspipe.la ../numlib/libnumlib.la
|
||||
-libimaplogin_la_LDFLAGS = -static
|
||||
libimapd_la_SOURCES = mainloop.c imaptoken.c imaptoken.h imapwrite.c \
|
||||
imapwrite.h capability.c smap.c smapsnapshot.c
|
||||
|
||||
@@ -283,7 +282,6 @@
|
||||
../rfc822/librfc822.la ../liblock/liblock.la ../numlib/libnumlib.la \
|
||||
../unicode/libunicode.la
|
||||
|
||||
-libimapd_la_LDFLAGS = -static
|
||||
imaplogin_SOURCES = imaplogin.c authenticate_auth.c proxy.c proxy.h
|
||||
imaplogin_DEPENDENCIES = libimapd.la libimaplogin.la
|
||||
imaplogin_LDADD = libimapd.la libimaplogin.la \
|
||||
@@ -313,7 +311,6 @@
|
||||
../numlib/libnumlib.la
|
||||
|
||||
libpop3d_la_DEPENDENCIES = $(libpop3d_la_LIBADD)
|
||||
-libpop3d_la_LDFLAGS = -static
|
||||
pop3d_SOURCES = pop3dserver.c pop3dcapa.c
|
||||
pop3d_DEPENDENCIES = libpop3d.la
|
||||
pop3d_LDADD = libpop3d.la @LDAUTH@ -lcourierauth
|
||||
--- imap/pop3d-ssl.dist.in
|
||||
+++ imap/pop3d-ssl.dist.in 2005/12/06 09:05:42
|
||||
@@ -91,7 +91,7 @@
|
||||
# at your own risk. Only the basic SSL/TLS functionality is known to be
|
||||
# working. Keep this in mind as you play with the following variables.
|
||||
|
||||
-COURIERTLS=@bindir@/couriertls
|
||||
+COURIERTLS=@sbindir@/couriertls
|
||||
|
||||
##NAME: TLS_PROTOCOL:0
|
||||
#
|
||||
--- libhmac/Makefile.in
|
||||
+++ libhmac/Makefile.in 2005/12/06 09:07:30
|
||||
@@ -203,11 +203,9 @@
|
||||
md5hmactest_SOURCES = md5hmactest.c
|
||||
md5hmactest_DEPENDENCIES = libhmac.la @hashlibs@
|
||||
md5hmactest_LDADD = $(md5hmactest_DEPENDENCIES)
|
||||
-md5hmactest_LDFLAGS = -static
|
||||
sha1hmactest_SOURCES = sha1hmactest.c
|
||||
sha1hmactest_DEPENDENCIES = libhmac.la @hashlibs@
|
||||
sha1hmactest_LDADD = $(sha1hmactest_DEPENDENCIES)
|
||||
-sha1hmactest_LDFLAGS = -static
|
||||
EXTRA_DIST = md5hmactest.txt sha1hmactest.txt
|
||||
all: config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
--- liblock/Makefile.in
|
||||
+++ liblock/Makefile.in 2005/12/06 09:07:33
|
||||
@@ -220,7 +220,6 @@
|
||||
lockmail_SOURCES = lockmail.c
|
||||
lockmail_DEPENDENCIES = liblock.la ../numlib/libnumlib.la
|
||||
lockmail_LDADD = liblock.la ../numlib/libnumlib.la
|
||||
-lockmail_LDFLAGS = -static
|
||||
noinst_DATA = lockmail.html lockmail.1
|
||||
EXTRA_DIST = lockfcntl.c lockflock.c locklockf.c locktest.c $(noinst_DATA)
|
||||
all: config.h
|
||||
--- maildir/Makefile.in
|
||||
+++ maildir/Makefile.in 2005/12/06 09:07:45
|
||||
@@ -287,7 +287,6 @@
|
||||
../numlib/libnumlib.la
|
||||
|
||||
deliverquota_LDADD = libmaildir.la ../rfc822/librfc822.la ../numlib/libnumlib.la
|
||||
-deliverquota_LDFLAGS = -static
|
||||
maildirmake_SOURCES = maildirmake.c
|
||||
maildirmake_DEPENDENCIES = libmaildir.la ../numlib/libnumlib.la \
|
||||
../rfc822/librfc822.la
|
||||
@@ -295,15 +294,12 @@
|
||||
maildirmake_LDADD = libmaildir.la ../numlib/libnumlib.la \
|
||||
../rfc822/librfc822.la
|
||||
|
||||
-maildirmake_LDFLAGS = -static
|
||||
testmaildirfilter_SOURCES = maildirfiltertypelist.h testmaildirfilter.c
|
||||
testmaildirfilter_DEPENDENCIES = libmaildir.la ../numlib/libnumlib.la
|
||||
testmaildirfilter_LDADD = libmaildir.la ../numlib/libnumlib.la @LIBPCRE@
|
||||
-testmaildirfilter_LDFLAGS = -static
|
||||
maildirkwtest_SOURCES = maildirkwtest.c
|
||||
maildirkwtest_LDADD = libmaildir.la
|
||||
maildirkwtest_DEPENDENCIES = libmaildir.la
|
||||
-maildirkwtest_LDFLAGS = -static
|
||||
maildirkw_SOURCES = maildirkw.c
|
||||
maildirkw_LDADD = libmaildir.la ../liblock/liblock.la ../numlib/libnumlib.la \
|
||||
`cat maildir.libdeps`
|
||||
@@ -311,7 +307,6 @@
|
||||
maildirkw_DEPENDENCIES = libmaildir.la ../liblock/liblock.la \
|
||||
../numlib/libnumlib.la maildir.libdeps
|
||||
|
||||
-maildirkw_LDFLAGS = -static
|
||||
maildiracl = maildiracl.c
|
||||
maildiracl_LDADD = libmaildir.la ../liblock/liblock.la ../numlib/libnumlib.la \
|
||||
`cat maildir.libdeps`
|
||||
@@ -319,7 +314,6 @@
|
||||
maildiracl_DEPENDENCIES = libmaildir.la ../liblock/liblock.la \
|
||||
../numlib/libnumlib.la maildir.libdeps
|
||||
|
||||
-maildiracl_LDFLAGS = -static
|
||||
maildiraclttest_SOURCES = testmaildiraclt.c
|
||||
maildiraclttest_LDADD = libmaildir.la ../liblock/liblock.la \
|
||||
../numlib/libnumlib.la `cat maildir.libdeps`
|
||||
@@ -327,7 +321,6 @@
|
||||
maildiraclttest_DEPENDENCIES = libmaildir.la ../liblock/liblock.la \
|
||||
../numlib/libnumlib.la maildir.libdeps
|
||||
|
||||
-maildiraclttest_LDFLAGS = -static
|
||||
EXTRA_DIST = README.maildirquota.html README.maildirquota.txt \
|
||||
README.imapkeywords.html \
|
||||
README.maildirfilter.html \
|
||||
--- makedat/Makefile.in
|
||||
+++ makedat/Makefile.in 2005/12/06 09:07:49
|
||||
@@ -200,7 +200,6 @@
|
||||
makedatprog_SOURCES = makedatprog.c
|
||||
makedatprog_DEPENDENCIES = @dblibrary@
|
||||
makedatprog_LDADD = @dblibrary@ @LIBGDBM@ @LIBDB@
|
||||
-makedatprog_LDFLAGS = -static
|
||||
all: config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
|
||||
--- md5/Makefile.in
|
||||
+++ md5/Makefile.in 2005/12/06 09:07:52
|
||||
@@ -204,7 +204,6 @@
|
||||
md5test_SOURCES = md5test.c
|
||||
md5test_DEPENDENCIES = libmd5.la
|
||||
md5test_LDADD = libmd5.la
|
||||
-md5test_LDFLAGS = -static
|
||||
EXTRA_DIST = md5test.txt hmac.c
|
||||
all: config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
--- rfc1035/Makefile.in
|
||||
+++ rfc1035/Makefile.in 2005/12/06 09:08:01
|
||||
@@ -230,7 +230,6 @@
|
||||
testlookup_LDADD = librfc1035.a ../soxwrap/libsoxwrap.a ../md5/libmd5.la \
|
||||
../random128/librandom128.la `cat ../soxwrap/soxlibs.dep`
|
||||
|
||||
-testlookup_LDFLAGS = -static
|
||||
EXTRA_DIST = testsuite.txt
|
||||
testspf_SOURCES = testspf.c
|
||||
testspf_DEPENDENCIES = librfc1035.a ../md5/libmd5.la \
|
||||
@@ -241,7 +240,6 @@
|
||||
../random128/librandom128.la ../soxwrap/libsoxwrap.a \
|
||||
`cat ../soxwrap/soxlibs.dep`
|
||||
|
||||
-testspf_LDFLAGS = -static
|
||||
all: config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
|
||||
--- rfc2045/Makefile.in
|
||||
+++ rfc2045/Makefile.in 2005/12/06 09:08:06
|
||||
@@ -239,15 +239,12 @@
|
||||
../numlib/libnumlib.la
|
||||
|
||||
reformime_DEPENDENCIES = $(reformime_LDADD)
|
||||
-reformime_LDFLAGS = -static
|
||||
makemime_SOURCES = makemime.c
|
||||
makemime_LDADD = ../rfc822/libencode.la ../rfc822/librfc822.la librfc2045.la @UNICODE_LIB@ ../numlib/libnumlib.la
|
||||
makemime_DEPENDENCIES = $(makemime_LDADD)
|
||||
-makemime_LDFLAGS = -static
|
||||
headercheck_SOURCES = headercheck.c
|
||||
headercheck_LDADD = librfc2045.la ../rfc822/librfc822.la ../numlib/libnumlib.la
|
||||
headercheck_DEPENDENCIES = $(headercheck_LDADD)
|
||||
-headercheck_LDFLAGS = -static
|
||||
all: $(BUILT_SOURCES) rfc2045_config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
|
||||
--- rfc822/Makefile.in
|
||||
+++ rfc822/Makefile.in 2005/12/06 09:08:09
|
||||
@@ -217,11 +217,9 @@
|
||||
testsuite_SOURCES = testsuite.c
|
||||
testsuite_DEPENDENCIES = librfc822.la
|
||||
testsuite_LDADD = librfc822.la
|
||||
-testsuite_LDFLAGS = -static
|
||||
reftest_SOURCES = reftest.c imaprefs.h
|
||||
reftest_DEPENDENCIES = librfc822.la
|
||||
reftest_LDADD = librfc822.la
|
||||
-reftest_LDFLAGS = -static
|
||||
EXTRA_DIST = testsuite.txt reftest.txt $(BUILT_SOURCES)
|
||||
all: $(BUILT_SOURCES) config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
--- sha1/Makefile.in
|
||||
+++ sha1/Makefile.in 2005/12/06 09:08:12
|
||||
@@ -205,7 +205,6 @@
|
||||
testsuite_SOURCES = testsuite.c
|
||||
testsuite_DEPENDENCIES = libsha1.la
|
||||
testsuite_LDADD = $(testsuite_DEPENDENCIES)
|
||||
-testsuite_LDFLAGS = -static
|
||||
EXTRA_DIST = testsuite.txt hmac.c
|
||||
all: config.h
|
||||
$(MAKE) $(AM_MAKEFLAGS) all-am
|
||||
--- tcpd/Makefile.in
|
||||
+++ tcpd/Makefile.in 2005/12/06 09:08:21
|
||||
@@ -266,11 +266,9 @@
|
||||
../md5/libmd5.la ../random128/librandom128.la \
|
||||
@LIBGDBM@ @LIBDB@ $(couriertcpd_t:%=-Wl,%)
|
||||
|
||||
-couriertcpd_LDFLAGS = -static
|
||||
tlscachetest_SOURCES = tlscachetest.c
|
||||
tlscachetest_DEPENDENCIES = ../numlib/libnumlib.la ../liblock/liblock.la
|
||||
tlscachetest_LDADD = ../numlib/libnumlib.la ../liblock/liblock.la
|
||||
-tlscachetest_LDFLAGS = -static
|
||||
libspipe_la_SOURCES = spipe.c spipe.h
|
||||
couriertls_SOURCES = starttls.c argparse.c argparse.h
|
||||
couriertls_t = @tlsdep@ @soxdep@
|
||||
@@ -284,7 +282,6 @@
|
||||
../numlib/libnumlib.la ../liblock/liblock.la \
|
||||
../soxwrap/libsoxwrap.a $(couriertls_t:%=-Wl,%)
|
||||
|
||||
-couriertls_LDFLAGS = -static
|
||||
libcouriertls_la_SOURCES = libcouriertls.c libcouriertls.h tlsinfo.c \
|
||||
tlscache.c tlscache.h
|
||||
|
||||
--- unicode/Makefile.in
|
||||
+++ unicode/Makefile.in 2005/12/06 09:08:23
|
||||
@@ -220,7 +220,6 @@
|
||||
unicode_info_SOURCES = unicodeinfo.c
|
||||
unicode_info_DEPENDENCIES = libunicode.la
|
||||
unicode_info_LDADD = libunicode.la
|
||||
-unicode_info_LDFLAGS = -static
|
||||
ISO8859CFILES = iso88591.c iso88592.c iso88593.c iso88594.c iso88595.c\
|
||||
iso88596.c iso88597.c iso88598.c iso88599.c iso885910.c iso885913.c\
|
||||
iso885914.c iso885915.c
|
3
courier-imap-4.1.1.tar.bz2
Normal file
3
courier-imap-4.1.1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:96e9eeaee64db2cf2f4aa9658392e7b7977bee9f434af1e85906bd725d7c8201
|
||||
size 3211569
|
105
courier-imap-ssl.init
Normal file
105
courier-imap-ssl.init
Normal file
@ -0,0 +1,105 @@
|
||||
#! /bin/sh
|
||||
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Author: Thorsten Kukuk <feedback@suse.de>
|
||||
#
|
||||
# /etc/init.d/courier-imap-ssl
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: courier-imap-ssl
|
||||
# Required-Start: $syslog $remote_fs courier-authdaemon
|
||||
# X-UnitedLinux-Should-Start:
|
||||
# Required-Stop: $syslog $remote_fs
|
||||
# X-UnitedLinux-Should-Stop:
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop: 0 1 2 6
|
||||
# Short-Description: Courier-IMAP server for SSL connections
|
||||
# Description: Start the Courier-IMAP server, which is an
|
||||
# IMAP server for Maildir mailboxes. This
|
||||
# version only accepts SSL connections.
|
||||
### END INIT INFO
|
||||
|
||||
# Check for missing binaries (stale symlinks should not happen)
|
||||
IMAP_BIN=/usr/sbin/imapd
|
||||
test -x $IMAP_BIN || exit 5
|
||||
|
||||
. /etc/rc.status
|
||||
|
||||
# Read configuration
|
||||
TLS_CACHEFILE=""
|
||||
. /etc/courier/imapd
|
||||
. /etc/courier/imapd-ssl
|
||||
test "$MAILDIRPATH" == "" && MAILDIRPATH=Maildir
|
||||
test "$PIDFILE" == "" && PIDFILE=/var/run/imapd.pid
|
||||
test "$SSLPIDFILE" == "" && SSLPIDFILE=/var/run/imapd-ssl.pid
|
||||
|
||||
# Reset status of this service
|
||||
rc_reset
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
/etc/init.d/courier-authdaemon status > /dev/null || /etc/init.d/courier-authdaemon start
|
||||
echo -n "Starting Courier-IMAP (SSL)"
|
||||
if test ! -f $TLS_CERTFILE
|
||||
then
|
||||
echo -n " generating-SSL-certificate..."
|
||||
/usr/sbin/mkimapdcert >/dev/null 2>&1
|
||||
fi
|
||||
if test "$TLS_CACHEFILE" != ""
|
||||
then
|
||||
rm -f $TLS_CACHEFILE
|
||||
fi
|
||||
umask $IMAP_UMASK
|
||||
ulimit -v $IMAP_ULIMITD
|
||||
/usr/bin/env - /bin/sh -c " set -a ;
|
||||
. /etc/courier/imapd ; \
|
||||
. /etc/courier/imapd-ssl ; \
|
||||
IMAP_TLS=1;\
|
||||
PROXY_HOSTNAME=$PROXY_HOSTNAME ; \
|
||||
/usr/sbin/courierlogger -pid=$SSLPIDFILE -start $SSLLOGGEROPTS \
|
||||
/usr/lib/courier-imap/couriertcpd -address=$SSLADDRESS \
|
||||
-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP $TCPDOPTS \
|
||||
$SSLPORT $COURIERTLS -server -tcpd /usr/sbin/imaplogin \
|
||||
$IMAP_BIN ${MAILDIRPATH}"
|
||||
rc_status -v
|
||||
;;
|
||||
stop)
|
||||
echo -n "Shutting down Courier-IMAP (SSL)"
|
||||
/usr/sbin/courierlogger -pid=$SSLPIDFILE -stop
|
||||
rc_status -v
|
||||
rm -f $SSLPIDFILE{,.lock}
|
||||
;;
|
||||
try-restart)
|
||||
$0 status >/dev/null && $0 restart
|
||||
rc_status
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
rc_status
|
||||
;;
|
||||
force-reload)
|
||||
echo -n "Reload Courier-IMAP (SSL)"
|
||||
$0 stop && $0 start
|
||||
rc_status
|
||||
;;
|
||||
reload)
|
||||
echo -n "Reload Courier-IMAP (SSL)"
|
||||
rc_failed 3
|
||||
rc_status -v
|
||||
;;
|
||||
status)
|
||||
echo -n "Checking for Courier-IMAP (SSL)"
|
||||
/sbin/checkproc -p $SSLPIDFILE /usr/sbin/courierlogger
|
||||
rc_status -v
|
||||
;;
|
||||
probe)
|
||||
test /etc/courier/imapd -nt $SSLPIDFILE && echo restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
rc_exit
|
143
courier-imap.changes
Normal file
143
courier-imap.changes
Normal file
@ -0,0 +1,143 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 11 13:05:45 CEST 2006 - tpatzig@suse.de
|
||||
|
||||
- Add Conflict to qpopper
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 1 14:49:40 CEST 2006 - mskibbe@suse.de
|
||||
|
||||
- update to version 4.1.1 which
|
||||
o fixed some compiler warnings
|
||||
o fix segfault if non-cert files were found in the cert dir
|
||||
o Added koi8-u character set
|
||||
o fix quota calculations on 32 bit platforms with 64 bit off_t
|
||||
o Don't assume that connect() of a non-blocking socket always
|
||||
fails with INPROGRESS
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 25 21:35:11 CET 2006 - mls@suse.de
|
||||
|
||||
- converted neededforbuild to BuildRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 6 10:54:05 CET 2005 - kukuk@suse.de
|
||||
|
||||
- Don't link static
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 14 11:58:37 CET 2005 - kukuk@suse.de
|
||||
|
||||
- Add postfix to nfb to fix location of sendmail [#133327]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 2 16:36:29 CET 2005 - kukuk@suse.de
|
||||
|
||||
- Update to version 4.0.6
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 23 11:37:09 CEST 2005 - kukuk@suse.de
|
||||
|
||||
- Fix imapd and pop3d init scripte for SSL connections [#113213]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 19 10:26:35 CEST 2005 - kukuk@suse.de
|
||||
|
||||
- Update to version 4.0.5
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 26 12:45:24 CEST 2005 - kukuk@suse.de
|
||||
|
||||
- Rename courier-pop3* init scripts to courier-pop* to be
|
||||
LSB conform
|
||||
- Source imapd-ssl and pop3-ssl from init scripts [#113213],
|
||||
use correct SSLPIDFILE variable and add path to checkproc
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 3 17:58:47 CEST 2005 - kukuk@suse.de
|
||||
|
||||
- Update to version 4.0.4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 21 13:11:47 CEST 2005 - kukuk@suse.de
|
||||
|
||||
- Use Maildir from config file [#94231]
|
||||
- If user removed PIDFILE entry from config file, set default
|
||||
one [#85845]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 18 16:13:25 CET 2004 - kukuk@suse.de
|
||||
|
||||
- Update to release 3.0.8
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 15 14:36:25 CET 2004 - kukuk@suse.de
|
||||
|
||||
- Use common-* PAM config files for imap and pop3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 6 13:58:53 CEST 2004 - kukuk@suse.de
|
||||
|
||||
- Fix permission of /usr/lib/courier-imap/authlib/authdaemond.ldap
|
||||
[#44721]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 16 13:06:02 CEST 2004 - kukuk@suse.de
|
||||
|
||||
- Update to bug fix release 3.0.7
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 12 17:26:08 CEST 2004 - kukuk@suse.de
|
||||
|
||||
- Update to 3.0.3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 25 17:24:18 CET 2004 - mmj@suse.de
|
||||
|
||||
- Add postfix to # neededforbuild
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 17 10:34:32 CET 2004 - kukuk@suse.de
|
||||
|
||||
- Update to 3.0.2: vpopmail password fixes, filesystem/ACL fixes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 8 14:57:30 CET 2004 - kukuk@suse.de
|
||||
|
||||
- Update to official 3.0.0 release
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 9 09:56:22 CET 2004 - kukuk@suse.de
|
||||
|
||||
- Update to official 2.2.1 release
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 10 16:12:16 CET 2004 - adrian@suse.de
|
||||
|
||||
- build as user
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 29 14:10:05 CEST 2003 - kukuk@suse.de
|
||||
|
||||
- Add conflict with imap package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 26 09:11:00 CEST 2003 - kukuk@suse.de
|
||||
|
||||
- Fix typo in spec file
|
||||
- Update to 2.1.1
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 3 18:29:57 CEST 2003 - aj@suse.de
|
||||
|
||||
- Package sysconftool also.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 1 10:30:38 CEST 2003 - kukuk@suse.de
|
||||
|
||||
- Rename imapd.8 to courier-imapd.8 to resolve file conflicts.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 30 21:02:52 CEST 2003 - kukuk@suse.de
|
||||
|
||||
- Initial version
|
||||
|
93
courier-imap.init
Normal file
93
courier-imap.init
Normal file
@ -0,0 +1,93 @@
|
||||
#! /bin/sh
|
||||
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Author: Thorsten Kukuk <feedback@suse.de>
|
||||
#
|
||||
# /etc/init.d/courier-imap
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: courier-imap
|
||||
# Required-Start: $syslog $remote_fs courier-authdaemon
|
||||
# X-UnitedLinux-Should-Start:
|
||||
# Required-Stop: $syslog $remote_fs
|
||||
# X-UnitedLinux-Should-Stop:
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop: 0 1 2 6
|
||||
# Short-Description: Courier-IMAP server
|
||||
# Description: Start the Courier-IMAP server, which is an
|
||||
# IMAP server for Maildir mailboxes.
|
||||
### END INIT INFO
|
||||
|
||||
# Check for missing binaries (stale symlinks should not happen)
|
||||
IMAP_BIN=/usr/sbin/imapd
|
||||
test -x $IMAP_BIN || exit 5
|
||||
|
||||
. /etc/rc.status
|
||||
|
||||
# Read configuration
|
||||
. /etc/courier/imapd
|
||||
test "$MAILDIRPATH" == "" && MAILDIRPATH=Maildir
|
||||
test "$PIDFILE" == "" && PIDFILE=/var/run/imapd.pid
|
||||
|
||||
# Reset status of this service
|
||||
rc_reset
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
/etc/init.d/courier-authdaemon status > /dev/null || /etc/init.d/courier-authdaemon start
|
||||
echo -n "Starting Courier-IMAP "
|
||||
umask $IMAP_UMASK
|
||||
ulimit -v $IMAP_ULIMITD
|
||||
/usr/bin/env - /bin/sh -c " set -a ;
|
||||
. /etc/courier/imapd ; \
|
||||
. /etc/courier/imapd-ssl ; \
|
||||
IMAP_STARTTLS=$IMAPDSTARTTLS ; \
|
||||
PROXY_HOSTNAME=$PROXY_HOSTNAME ; \
|
||||
TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL ; \
|
||||
/usr/sbin/courierlogger -pid=$PIDFILE -start $LOGGEROPTS \
|
||||
/usr/lib/courier-imap/couriertcpd -address=$ADDRESS \
|
||||
-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP $TCPDOPTS \
|
||||
$PORT /usr/sbin/imaplogin \
|
||||
$IMAP_BIN ${MAILDIRPATH}"
|
||||
rc_status -v
|
||||
;;
|
||||
stop)
|
||||
echo -n "Shutting down Courier-IMAP "
|
||||
/usr/sbin/courierlogger -pid=$PIDFILE -stop
|
||||
rc_status -v
|
||||
rm -f $PIDFILE{,.lock}
|
||||
;;
|
||||
try-restart)
|
||||
$0 status >/dev/null && $0 restart
|
||||
rc_status
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
rc_status
|
||||
;;
|
||||
force-reload)
|
||||
echo -n "Reload Courier-IMAP "
|
||||
$0 stop && $0 start
|
||||
rc_status
|
||||
;;
|
||||
reload)
|
||||
echo -n "Reload Courier-IMAP "
|
||||
rc_failed 3
|
||||
rc_status -v
|
||||
;;
|
||||
status)
|
||||
echo -n "Checking for Courier-IMAP "
|
||||
/sbin/checkproc -p $PIDFILE /usr/sbin/courierlogger
|
||||
rc_status -v
|
||||
;;
|
||||
probe)
|
||||
test /etc/courier/imapd -nt $PIDFILE && echo restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
rc_exit
|
242
courier-imap.spec
Normal file
242
courier-imap.spec
Normal file
@ -0,0 +1,242 @@
|
||||
#
|
||||
# spec file for package courier-imap (Version 4.1.1)
|
||||
#
|
||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: courier-imap
|
||||
BuildRequires: courier-authlib-devel fam-devel gcc-c++ libstdc++-devel openssl-devel postfix
|
||||
URL: http://www.courier-mta.org/imap/
|
||||
Summary: An IMAP and POP3 Server for Maildir MTAs
|
||||
Version: 4.1.1
|
||||
Release: 5
|
||||
License: GPL
|
||||
Conflicts: imap qpopper
|
||||
Group: Productivity/Networking/Email/Servers
|
||||
Obsoletes: %{name}-ldap
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
Source1: pop3.pamd
|
||||
Source2: imap.pamd
|
||||
Source4: courier-imap.init
|
||||
Source5: courier-imap-ssl.init
|
||||
Source6: courier-pop.init
|
||||
Source7: courier-pop-ssl.init
|
||||
Patch: %{name}-4.0.6.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Prefix: /usr
|
||||
%define _sysconfdir /etc/courier
|
||||
%define _localstatedir /var/run
|
||||
%define authdaemondir %{_localstatedir}/authdaemon.courier-imap
|
||||
|
||||
%description
|
||||
Courier-IMAP is a lightweight server that provides IMAP access to
|
||||
maildir mailboxes. It supports folders, custom authentication modules,
|
||||
and virtual mailboxes. A compatible POP3 server is also provided. The
|
||||
source code is based on the IMAP module in the Courier Mail Server, but
|
||||
this build is independently repackaged to work with any other MTA that
|
||||
delivers to maildir format mailboxes.
|
||||
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch
|
||||
|
||||
%build
|
||||
%{suse_update_config}
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir} \
|
||||
--datadir=%{_datadir}/courier-imap \
|
||||
--libdir=%{_libdir} --libexecdir=%{_prefix}/lib/courier-imap \
|
||||
--localstatedir=%{_localstatedir} \
|
||||
--sharedstatedir=%{_sharedstatedir}/courier-imap --mandir=%{_mandir} \
|
||||
--infodir=%{_infodir} --with-piddir=/var/run \
|
||||
--disable-root-check \
|
||||
--enable-unicode \
|
||||
--with-authdaemonvar=%{authdaemondir} \
|
||||
--enable-workarounds-for-imap-client-bugs \
|
||||
--host=%{_host} --build=%{_build} --target=%{_target_platform}
|
||||
make
|
||||
#make check
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
# Move daemons into sbin
|
||||
mv $RPM_BUILD_ROOT%{_prefix}/bin/{couriertls,imapd,pop3d} $RPM_BUILD_ROOT%{_prefix}/sbin/
|
||||
# Rename imapd.8 to courier-imapd.8
|
||||
mv $RPM_BUILD_ROOT%{_mandir}/man8/imapd.8 $RPM_BUILD_ROOT%{_mandir}/man8/courier-imapd.8
|
||||
# Install PAM config files
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/pam.d
|
||||
install -m 644 $RPM_SOURCE_DIR/pop3.pamd $RPM_BUILD_ROOT/etc/pam.d/pop3
|
||||
install -m 644 $RPM_SOURCE_DIR/imap.pamd $RPM_BUILD_ROOT/etc/pam.d/imap
|
||||
# Install init scripts
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
||||
for i in imap imap-ssl pop pop-ssl ; do
|
||||
install -m 644 $RPM_SOURCE_DIR/courier-$i.init $RPM_BUILD_ROOT/etc/init.d/courier-$i
|
||||
ln -sf /etc/init.d/courier-$i $RPM_BUILD_ROOT%{_prefix}/sbin/rccourier-$i
|
||||
done
|
||||
# Remove original init scripts, will not work longer
|
||||
rm $RPM_BUILD_ROOT%{_prefix}/lib/courier-imap/imapd.rc
|
||||
rm $RPM_BUILD_ROOT%{_prefix}/lib/courier-imap/imapd-ssl.rc
|
||||
rm $RPM_BUILD_ROOT%{_prefix}/lib/courier-imap/pop3d.rc
|
||||
rm $RPM_BUILD_ROOT%{_prefix}/lib/courier-imap/pop3d-ssl.rc
|
||||
#
|
||||
# Fix imapd.dist
|
||||
#
|
||||
%{__sed} 's/^IMAPDSTART=.*/IMAPDSTART=YES/' \
|
||||
<$RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist \
|
||||
>$RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist.tmp
|
||||
%{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist.tmp \
|
||||
$RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist
|
||||
%{__sed} 's/^IMAPDSSLSTART=.*/IMAPDSSLSTART=YES/' \
|
||||
<$RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist \
|
||||
>$RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist.tmp
|
||||
%{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist.tmp \
|
||||
$RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist
|
||||
%{__chmod} 600 $RPM_BUILD_ROOT%{_sysconfdir}/imapd.dist
|
||||
%{__chmod} 600 $RPM_BUILD_ROOT%{_sysconfdir}/imapd-ssl.dist
|
||||
%{__sed} 's/^POP3DSTART=.*/POP3DSTART=YES/' \
|
||||
<$RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist \
|
||||
>$RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist.tmp
|
||||
%{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist.tmp \
|
||||
$RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist
|
||||
%{__sed} 's/^POP3DSSLSTART=.*/POP3DSSLSTART=YES/' \
|
||||
<$RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist \
|
||||
>$RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist.tmp
|
||||
%{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist.tmp \
|
||||
$RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist
|
||||
%{__chmod} 600 $RPM_BUILD_ROOT%{_sysconfdir}/pop3d.dist
|
||||
%{__chmod} 600 $RPM_BUILD_ROOT%{_sysconfdir}/pop3d-ssl.dist
|
||||
# For %doc macro
|
||||
cp -p imap/README README.imap
|
||||
cp -p maildir/README.maildirquota.txt README.maildirquota
|
||||
cp -p maildir/README.sharedfolders.txt README.sharedfolders
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/courier-imap
|
||||
cp -p sysconftool $RPM_BUILD_ROOT%{_datadir}/courier-imap/sysconftool
|
||||
chmod 755 $RPM_BUILD_ROOT%{_datadir}/courier-imap/sysconftool
|
||||
cat >$RPM_BUILD_ROOT%{_datadir}/courier-imap/configlist <<EOF
|
||||
%{_sysconfdir}/imapd.dist
|
||||
%{_sysconfdir}/imapd-ssl.dist
|
||||
%{_sysconfdir}/pop3d.dist
|
||||
%{_sysconfdir}/pop3d-ssl.dist
|
||||
EOF
|
||||
|
||||
%post
|
||||
%{_datadir}/courier-imap/sysconftool `%{__cat} %{_datadir}/courier-imap/configlist` >/dev/null
|
||||
|
||||
%preun
|
||||
%stop_on_removal courier-imap courier-imap-ssl courier-pop courier-pop-ssl
|
||||
if [ "$1" = "0" ]; then
|
||||
rm -f %{_localstatedir}/couriersslcache
|
||||
rm -f %{_localstatedir}/imapd.pid
|
||||
rm -f %{_localstatedir}/imapd-ssl.pid
|
||||
rm -f %{_localstatedir}/imapd.pid.lock
|
||||
rm -f %{_localstatedir}/imapd-ssl.pid.lock
|
||||
rm -f %{_localstatedir}/pop3d.pid
|
||||
rm -f %{_localstatedir}/pop3d-ssl.pid
|
||||
rm -f %{_localstatedir}/pop3d.pid.lock
|
||||
rm -f %{_localstatedir}/pop3d-ssl.pid.lock
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%postun
|
||||
%restart_on_update courier-imap courier-imap-ssl courier-pop courier-pop-ssl
|
||||
%insserv_cleanup
|
||||
exit 0
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,755)
|
||||
%doc AUTHORS COPYING imap/BUGS README README.imap README.maildirquota
|
||||
%doc README.sharedfolders
|
||||
%attr(644,root,root) %config /etc/pam.d/imap
|
||||
%attr(644,root,root) %config /etc/pam.d/pop3
|
||||
%attr(755 root,root) %config /etc/init.d/courier-*
|
||||
%dir %{_sysconfdir}
|
||||
%config %{_sysconfdir}/imap*
|
||||
%config %{_sysconfdir}/pop3*
|
||||
%config %{_sysconfdir}/quotawarnmsg.example
|
||||
%dir %{_prefix}/lib/courier-imap
|
||||
%{_prefix}/lib/courier-imap/makedatprog
|
||||
%{_prefix}/lib/courier-imap/couriertcpd
|
||||
%{_bindir}/*
|
||||
%{_sbindir}/*
|
||||
%{_mandir}/man?/*
|
||||
%dir %{_datadir}/courier-imap/
|
||||
%{_datadir}/courier-imap/*
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%changelog -n courier-imap
|
||||
* Mon Sep 11 2006 - tpatzig@suse.de
|
||||
- Add Conflict to qpopper
|
||||
* Tue Aug 01 2006 - mskibbe@suse.de
|
||||
- update to version 4.1.1 which
|
||||
o fixed some compiler warnings
|
||||
o fix segfault if non-cert files were found in the cert dir
|
||||
o Added koi8-u character set
|
||||
o fix quota calculations on 32 bit platforms with 64 bit off_t
|
||||
o Don't assume that connect() of a non-blocking socket always
|
||||
fails with INPROGRESS
|
||||
* Wed Jan 25 2006 - mls@suse.de
|
||||
- converted neededforbuild to BuildRequires
|
||||
* Tue Dec 06 2005 - kukuk@suse.de
|
||||
- Don't link static
|
||||
* Mon Nov 14 2005 - kukuk@suse.de
|
||||
- Add postfix to nfb to fix location of sendmail [#133327]
|
||||
* Wed Nov 02 2005 - kukuk@suse.de
|
||||
- Update to version 4.0.6
|
||||
* Fri Sep 23 2005 - kukuk@suse.de
|
||||
- Fix imapd and pop3d init scripte for SSL connections [#113213]
|
||||
* Mon Sep 19 2005 - kukuk@suse.de
|
||||
- Update to version 4.0.5
|
||||
* Fri Aug 26 2005 - kukuk@suse.de
|
||||
- Rename courier-pop3* init scripts to courier-pop* to be
|
||||
LSB conform
|
||||
- Source imapd-ssl and pop3-ssl from init scripts [#113213],
|
||||
use correct SSLPIDFILE variable and add path to checkproc
|
||||
* Wed Aug 03 2005 - kukuk@suse.de
|
||||
- Update to version 4.0.4
|
||||
* Thu Jul 21 2005 - kukuk@suse.de
|
||||
- Use Maildir from config file [#94231]
|
||||
- If user removed PIDFILE entry from config file, set default
|
||||
one [#85845]
|
||||
* Thu Nov 18 2004 - kukuk@suse.de
|
||||
- Update to release 3.0.8
|
||||
* Mon Nov 15 2004 - kukuk@suse.de
|
||||
- Use common-* PAM config files for imap and pop3
|
||||
* Mon Sep 06 2004 - kukuk@suse.de
|
||||
- Fix permission of /usr/lib/courier-imap/authlib/authdaemond.ldap
|
||||
[#44721]
|
||||
* Mon Aug 16 2004 - kukuk@suse.de
|
||||
- Update to bug fix release 3.0.7
|
||||
* Wed May 12 2004 - kukuk@suse.de
|
||||
- Update to 3.0.3
|
||||
* Thu Mar 25 2004 - mmj@suse.de
|
||||
- Add postfix to # neededforbuild
|
||||
* Wed Mar 17 2004 - kukuk@suse.de
|
||||
- Update to 3.0.2: vpopmail password fixes, filesystem/ACL fixes
|
||||
* Mon Mar 08 2004 - kukuk@suse.de
|
||||
- Update to official 3.0.0 release
|
||||
* Mon Feb 09 2004 - kukuk@suse.de
|
||||
- Update to official 2.2.1 release
|
||||
* Sat Jan 10 2004 - adrian@suse.de
|
||||
- build as user
|
||||
* Fri Aug 29 2003 - kukuk@suse.de
|
||||
- Add conflict with imap package
|
||||
* Tue Aug 26 2003 - kukuk@suse.de
|
||||
- Fix typo in spec file
|
||||
- Update to 2.1.1
|
||||
* Sun Aug 03 2003 - aj@suse.de
|
||||
- Package sysconftool also.
|
||||
* Fri Aug 01 2003 - kukuk@suse.de
|
||||
- Rename imapd.8 to courier-imapd.8 to resolve file conflicts.
|
||||
* Wed Jul 30 2003 - kukuk@suse.de
|
||||
- Initial version
|
104
courier-pop-ssl.init
Normal file
104
courier-pop-ssl.init
Normal file
@ -0,0 +1,104 @@
|
||||
#! /bin/sh
|
||||
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Author: Thorsten Kukuk <feedback@suse.de>
|
||||
#
|
||||
# /etc/init.d/courier-pop-ssl
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: courier-pop-ssl
|
||||
# Required-Start: $syslog $remote_fs courier-authdaemon
|
||||
# X-UnitedLinux-Should-Start:
|
||||
# Required-Stop: $syslog $remote_fs
|
||||
# X-UnitedLinux-Should-Stop:
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop: 0 1 2 6
|
||||
# Short-Description: Courier-POP3 server for SSL connections
|
||||
# Description: Start the Courier-POP3 server, which is an
|
||||
# POP3 server for Maildir mailboxes. This
|
||||
# version only accepts SSL connections.
|
||||
### END INIT INFO
|
||||
|
||||
# Check for missing binaries (stale symlinks should not happen)
|
||||
POP3_BIN=/usr/sbin/pop3d
|
||||
test -x $POP3_BIN || exit 5
|
||||
|
||||
. /etc/rc.status
|
||||
|
||||
# Read configuration
|
||||
TLS_CACHEFILE=""
|
||||
. /etc/courier/pop3d
|
||||
. /etc/courier/pop3d-ssl
|
||||
test "$MAILDIRPATH" == "" && MAILDIRPATH=Maildir
|
||||
test "$PIDFILE" == "" && PIDFILE=/var/run/pop3d.pid
|
||||
test "$SSLPIDFILE" == "" && PIDFILE=/var/run/pop3d-ssl.pid
|
||||
|
||||
# Reset status of this service
|
||||
rc_reset
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
/etc/init.d/courier-authdaemon status > /dev/null || /etc/init.d/courier-authdaemon start
|
||||
echo -n "Starting Courier-POP3 (SSL)"
|
||||
if test ! -f $TLS_CERTFILE
|
||||
then
|
||||
echo -n " generating-SSL-certificate..."
|
||||
/usr/sbin/mkpop3dcert >/dev/null 2>&1
|
||||
fi
|
||||
if test "$TLS_CACHEFILE" != ""
|
||||
then
|
||||
rm -f $TLS_CACHEFILE
|
||||
fi
|
||||
ulimit -v $POP3_ULIMITD
|
||||
/usr/bin/env - /bin/sh -c " set -a ;
|
||||
. /etc/courier/pop3d ; \
|
||||
. /etc/courier/pop3d-ssl ; \
|
||||
POP3_TLS=1; POP3_STARTTLS=NO; POP3_TLS_REQUIRED=0; \
|
||||
PROXY_HOSTNAME=$PROXY_HOSTNAME ; \
|
||||
/usr/sbin/courierlogger -pid=$SSLPIDFILE -start $LOGGEROPTS \
|
||||
/usr/lib/courier-imap/couriertcpd -address=$SSLADDRESS \
|
||||
-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP $TCPDOPTS \
|
||||
$SSLPORT $COURIERTLS -server -tcpd \
|
||||
/usr/sbin/pop3login $POP3_BIN ${MAILDIRPATH}"
|
||||
rc_status -v
|
||||
;;
|
||||
stop)
|
||||
echo -n "Shutting down Courier-POP3 (SSL)"
|
||||
/usr/sbin/courierlogger -pid=$SSLPIDFILE -stop
|
||||
rc_status -v
|
||||
rm -f $SSLPIDFILE{,.lock}
|
||||
;;
|
||||
try-restart)
|
||||
$0 status >/dev/null && $0 restart
|
||||
rc_status
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
rc_status
|
||||
;;
|
||||
force-reload)
|
||||
echo -n "Reload Courier-POP3 (SSL)"
|
||||
$0 stop && $0 start
|
||||
rc_status
|
||||
;;
|
||||
reload)
|
||||
echo -n "Reload Courier-POP3 (SSL)"
|
||||
rc_failed 3
|
||||
rc_status -v
|
||||
;;
|
||||
status)
|
||||
echo -n "Checking for Courier-POP3 (SSL)"
|
||||
/sbin/checkproc -p $SSLPIDFILE /usr/sbin/courierlogger
|
||||
rc_status -v
|
||||
;;
|
||||
probe)
|
||||
test /etc/courier/pop3d -nt $SSLPIDFILE && echo restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
rc_exit
|
90
courier-pop.init
Normal file
90
courier-pop.init
Normal file
@ -0,0 +1,90 @@
|
||||
#! /bin/sh
|
||||
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# All rights reserved.
|
||||
#
|
||||
# Author: Thorsten Kukuk <feedback@suse.de>
|
||||
#
|
||||
# /etc/init.d/courier-pop
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: courier-pop
|
||||
# Required-Start: $syslog $remote_fs courier-authdaemon
|
||||
# Should-Start:
|
||||
# Required-Stop: $syslog $remote_fs
|
||||
# Should-Stop:
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop: 0 1 2 6
|
||||
# Short-Description: Courier-POP3 server
|
||||
# Description: Start the Courier-POP3 server, which is an
|
||||
# POP3 server for Maildir mailboxes.
|
||||
### END INIT INFO
|
||||
|
||||
# Check for missing binaries (stale symlinks should not happen)
|
||||
POP3_BIN=/usr/sbin/pop3d
|
||||
test -x $POP3_BIN || exit 5
|
||||
|
||||
. /etc/rc.status
|
||||
|
||||
# Read configuration
|
||||
. /etc/courier/pop3d
|
||||
test "$MAILDIRPATH" == "" && MAILDIRPATH=Maildir
|
||||
test "$PIDFILE" == "" && PIDFILE=/var/run/pop3d.pid
|
||||
|
||||
# Reset status of this service
|
||||
rc_reset
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
/etc/init.d/courier-authdaemon status > /dev/null || /etc/init.d/courier-authdaemon start
|
||||
echo -n "Starting Courier-POP3 "
|
||||
/usr/bin/env - /bin/sh -c " set -a ;
|
||||
. /etc/courier/pop3d ; \
|
||||
. /etc/courier/pop3d-ssl ; \
|
||||
PROXY_HOSTNAME=$PROXY_HOSTNAME ; \
|
||||
TLS_PROTOCOL=$TLS_STARTTLS_PROTOCOL ; \
|
||||
/usr/sbin/courierlogger -pid=$PIDFILE -start $LOGGEROPTS \
|
||||
/usr/lib/courier-imap/couriertcpd -address=$ADDRESS \
|
||||
-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP $TCPDOPTS \
|
||||
$PORT /usr/sbin/pop3login \
|
||||
$POP3_BIN ${MAILDIRPATH}"
|
||||
rc_status -v
|
||||
;;
|
||||
stop)
|
||||
echo -n "Shutting down Courier-POP3 "
|
||||
/usr/sbin/courierlogger -pid=$PIDFILE -stop
|
||||
rc_status -v
|
||||
rm -f $PIDFILE{,.lock}
|
||||
;;
|
||||
try-restart)
|
||||
$0 status >/dev/null && $0 restart
|
||||
rc_status
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
$0 start
|
||||
rc_status
|
||||
;;
|
||||
force-reload)
|
||||
echo -n "Reload Courier-POP3 "
|
||||
$0 stop && $0 start
|
||||
rc_status
|
||||
;;
|
||||
reload)
|
||||
echo -n "Reload Courier-POP3 "
|
||||
rc_failed 3
|
||||
rc_status -v
|
||||
;;
|
||||
status)
|
||||
echo -n "Checking for Courier-POP3 "
|
||||
/sbin/checkproc -p $PIDFILE /usr/sbin/courierlogger
|
||||
rc_status -v
|
||||
;;
|
||||
probe)
|
||||
test /etc/courier/pop3d -nt $PIDFILE && echo restart
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
rc_exit
|
5
imap.pamd
Normal file
5
imap.pamd
Normal file
@ -0,0 +1,5 @@
|
||||
#%PAM-1.0
|
||||
auth include common-auth
|
||||
account include common-account
|
||||
password include common-password
|
||||
session include common-session
|
5
pop3.pamd
Normal file
5
pop3.pamd
Normal file
@ -0,0 +1,5 @@
|
||||
#%PAM-1.0
|
||||
auth include common-auth
|
||||
account include common-account
|
||||
password include common-password
|
||||
session include common-session
|
Loading…
Reference in New Issue
Block a user