SHA256
1
0
forked from pool/courier-imap

- update to 5.2.9

* courier-debuild: implement DEBGCC=default, to help with pbuilder.
- update to 5.2.8
  * configure.ac: rpm and deb packaging fixes: remove incorrect MANPATH
    setting, fix warning with newer versions of grep.

- update to 5.2.7
  * tcpd: support per-local port custom -haproxy configuration.
    Multiple updates to the couriertcpd man page, updated documentation
    for ipv6 and CIDR support.
  * tcpd: remove -noidentlookup, implement -haproxy
  * couriertcpd: set the IP_FREEBIND option on all listening sockets.

OBS-URL: https://build.opensuse.org/package/show/server:mail/courier-imap?expand=0&rev=129
This commit is contained in:
Dirk Mueller 2024-08-09 08:59:19 +00:00 committed by Git OBS Bridge
commit 169a7a0a51
20 changed files with 1623 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ac89cbd8e84bfb9e0e7bc9130304b0202a9d3192823d13956c88023f91661581
size 3411210

Binary file not shown.

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d8eecd4de90ad0f45d3179a58e008a54170727304d36fc3b5bbe3a04544287bc
size 3415384

Binary file not shown.

84
courier-imap-config.patch Normal file
View File

@ -0,0 +1,84 @@
diff -purN libs/imap/imapd.dist.in libs/imap/imapd.dist.in
--- libs/imap/imapd.dist.in 2021-03-01 13:29:08.000000000 +0100
+++ libs/imap/imapd.dist.in 2021-03-02 08:28:34.862607943 +0100
@@ -21,7 +21,7 @@
#
# ADDRESS=127.0.0.1
-ADDRESS=0
+ADDRESS=127.0.0.1
##NAME: PORT:1
#
@@ -57,7 +57,7 @@ MAXDAEMONS=40
#
# Maximum number of connections to accept from the same IP address
-MAXPERIP=4
+MAXPERIP=20
##NAME: PIDFILE:0
#
@@ -480,7 +480,7 @@ HEADERFROM=X-IMAP-Sender
# The default setting is going to be NO, so you'll have to manually flip
# it to yes.
-IMAPDSTART=NO
+IMAPDSTART=YES
##NAME: MAILDIRPATH:0
#
diff -purN libs/imap/imapd-ssl.dist.in libs/imap/imapd-ssl.dist.in
--- libs/imap/imapd-ssl.dist.in 2021-03-01 13:29:07.000000000 +0100
+++ libs/imap/imapd-ssl.dist.in 2021-03-02 08:30:10.370603684 +0100
@@ -72,7 +72,7 @@ SSLLOGGEROPTS="-name=imapd-ssl"
#
# Whether or not to start IMAP over SSL on simap port:
-IMAPDSSLSTART=NO
+IMAPDSSLSTART=YES
##NAME: IMAPDSTARTTLS:0
#
@@ -313,7 +313,7 @@ TLS_VERIFYPEER=NONE
# automatically created, TLS_CACHESIZE bytes long, and used as a cache
# buffer.
-TLS_CACHEFILE=@localstatedir@/couriersslimapcache
+TLS_CACHEFILE=@localstatedir@/cache/courier-imap/sslimapcache
TLS_CACHESIZE=524288
##NAME: TLS_ALPN:0
diff -purN libs/imap/pop3d.dist.in libs/imap/pop3d.dist.in
--- libs/imap/pop3d.dist.in 2021-03-01 13:29:08.000000000 +0100
+++ libs/imap/pop3d.dist.in 2021-03-02 08:31:18.846600632 +0100
@@ -146,7 +146,7 @@ LOGGEROPTS="-name=pop3d"
# with enough platforms so that people get annoyed with having to flip it to
# YES every time.
-POP3DSTART=NO
+POP3DSTART=YES
##NAME: POP3_LOG_DELETIONS:0
#
diff -purN libs/imap/pop3d-ssl.dist.in libs/imap/pop3d-ssl.dist.in
--- libs/imap/pop3d-ssl.dist.in 2021-03-01 13:29:07.000000000 +0100
+++ libs/imap/pop3d-ssl.dist.in 2021-03-02 08:32:03.754598629 +0100
@@ -61,7 +61,7 @@ SSLLOGGEROPTS="-name=pop3d-ssl"
#
# Whether or not to start POP3 over SSL on spop3 port:
-POP3DSSLSTART=NO
+POP3DSSLSTART=YES
##NAME: POP3_STARTTLS:0
#
@@ -310,7 +310,7 @@ TLS_VERIFYPEER=NONE
# problems with SSL clients. Disable SSL caching by commenting out the
# following settings:
-TLS_CACHEFILE=@localstatedir@/couriersslpop3cache
+TLS_CACHEFILE=@localstatedir@/cache/courier-imap/sslpop3cache
TLS_CACHESIZE=524288
##NAME: TLS_ALPN:0

View File

@ -0,0 +1,8 @@
[Unit]
Description=Courier IMAP (SSL) Cert Generation
ConditionPathExists=!/etc/ssl/private/imapd.pem
[Service]
Type=oneshot
ExecStart=/usr/sbin/mkimapdcert
RemainAfterExit=yes

View File

@ -0,0 +1,43 @@
Index: libs/imap/imapd.8.in
===================================================================
--- libs/imap/imapd.8.in.orig
+++ libs/imap/imapd.8.in
@@ -33,9 +33,9 @@
imapd \- The Courier IMAP server
.SH "SYNOPSIS"
.HP \w'\fB@libexecdir@/couriertcpd\fR\ 'u
-\fB@libexecdir@/couriertcpd\fR {couriertcpd\ options} {@prefix@/sbin/imaplogin} [\fImodules\fR...] {@prefix@/bin/imapd} {\&./Maildir}
-.HP \w'\fB@prefix@/bin/imapd\fR\ 'u
-\fB@prefix@/bin/imapd\fR {\&./Maildir}
+\fB@libexecdir@/couriertcpd\fR {couriertcpd\ options} {@sbindir@/imaplogin} [\fImodules\fR...] {@sbindir@/imapd} {\&./Maildir}
+.HP \w'\fB@sbindir@/imapd\fR\ 'u
+\fB@sbindir@/imapd\fR {\&./Maildir}
.SH "DESCRIPTION"
.PP
\fBimapd\fR
Index: libs/imap/imapd-ssl.dist.in
===================================================================
--- libs/imap/imapd-ssl.dist.in.orig
+++ libs/imap/imapd-ssl.dist.in
@@ -102,7 +102,7 @@ IMAP_TLS_REQUIRED=0
##NAME: COURIERTLS:0
#
-COURIERTLS=@bindir@/couriertls
+COURIERTLS=@sbindir@/couriertls
##NAME: TLS_PRIORITY:0
#
Index: libs/imap/pop3d-ssl.dist.in
===================================================================
--- libs/imap/pop3d-ssl.dist.in.orig
+++ libs/imap/pop3d-ssl.dist.in
@@ -87,7 +87,7 @@ POP3_TLS_REQUIRED=0
# 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_PRIORITY:0
#

32
courier-imap-ssl.service Normal file
View File

@ -0,0 +1,32 @@
[Unit]
Description=Courier IMAP (SSL)
Wants=courier-authdaemon.service
Wants=courier-imap-gencert.service
After=syslog.target
After=network.target
After=courier-authdaemon.target
After=courier-authdaemon.service
After=courier-imap-gencert.service
[Service]
EnvironmentFile=/etc/courier/imapd
EnvironmentFile=/etc/courier/imapd-ssl
Environment="SSLPIDFILE=/run/imapd-ssl.pid" "LOCKFILE=/run/imapd-ssl.pid.lock"
PIDFile=/run/imapd-ssl.pid
LimitNOFILE=65536
ExecStart=/usr/bin/env - /bin/sh -c " set -a ; \
. /etc/courier/imapd ; \
. /etc/courier/imapd-ssl ; \
IMAP_TLS=1; export IMAP_TLS; \
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 \
/usr/sbin/imapd $MAILDIRPATH"
ExecStop=/usr/sbin/courierlogger -pid=$SSLPIDFILE -stop
ExecStopPost=/usr/bin/rm $SSLPIDFILE $LOCKFILE
Restart=always
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,30 @@
Index: libs/imap/pop3d.dist.in
===================================================================
--- libs/imap/pop3d.dist.in.orig
+++ libs/imap/pop3d.dist.in
@@ -28,6 +28,25 @@ MAXDAEMONS=40
MAXPERIP=4
+##NAME: POP3_ULIMITD:0
+#
+# POP3_ULIMITD sets the maximum size of the data segment of the server
+# process. The value of POP3_ULIMITD is simply passed to the "ulimit -d"
+# command (or ulimit -v). The argument to ulimi sets the upper limit on the
+# size of the data segment of the server process, in kilobytes. The default
+# value of 65536 sets a very generous limit of 64 megabytes, which should
+# be more than plenty for anyone.
+#
+# This feature is used as an additional safety check that should stop
+# any potential denial-of-service attacks that exploit any kind of
+# a memory leak to exhaust all the available memory on the server.
+# It is theoretically possible that obscenely huge folders will also
+# result in the server running out of memory when doing server-side
+# sorting (by my calculations you have to have at least 100,000 messages
+# in a single folder, for that to happen).
+
+POP3_ULIMITD=65536
+
##NAME: POP3AUTH:1
#
# To advertise the SASL capability, per RFC 2449, uncomment the POP3AUTH

980
courier-imap.changes Normal file
View File

@ -0,0 +1,980 @@
-------------------------------------------------------------------
Thu Aug 8 19:25:27 UTC 2024 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.2.9
* courier-debuild: implement DEBGCC=default, to help with pbuilder.
- update to 5.2.8
* configure.ac: rpm and deb packaging fixes: remove incorrect MANPATH
setting, fix warning with newer versions of grep.
-------------------------------------------------------------------
Sat Aug 3 17:09:16 UTC 2024 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.2.7
* tcpd: support per-local port custom -haproxy configuration.
Multiple updates to the couriertcpd man page, updated documentation
for ipv6 and CIDR support.
* tcpd: remove -noidentlookup, implement -haproxy
* couriertcpd: set the IP_FREEBIND option on all listening sockets.
-------------------------------------------------------------------
Sun Nov 26 16:59:53 UTC 2023 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.2.6
* Fix generated Date: header issues in timezones that have a
non-standard alternate timezone offset
* pop3 and imap logs also indicate whether the connections used
starttls or stls
* add missing TLS_PRIVATE_KEYFILE setting to esmtpd.dist
-------------------------------------------------------------------
Wed Aug 30 19:25:32 UTC 2023 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.2.5
* Turn off IMAP_TLS_REQUIRED if IMAP_TLS is already set.
* Compiling with -DMAILDIR_SKIP_SYMLINK_CHECKS turns off checking for
rogue symlinks in maildirs.
- update courier-imap.keyring with new signing key
-------------------------------------------------------------------
Sun Apr 30 14:22:53 UTC 2023 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.2.4
* Fix spurious gcc 13 compiler warnings. Have configure script
include the standardized location of the CA certificate bundle,
in addition to various legacy compatibility paths.
-------------------------------------------------------------------
Wed Apr 5 11:27:09 UTC 2023 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.2.3
* all: update configure.ac to require at least version 2.0.5 of
libidn
-------------------------------------------------------------------
Mon Feb 20 08:45:57 UTC 2023 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.2.2
* imapd.c (append): No longer accept a non-standard single
flag name instead of a parenthesized flag list to APPEND, due to
ambiguity with the UTF8 extension.
-------------------------------------------------------------------
Thu Jan 12 17:42:55 UTC 2023 - Stefan Schubert <schubi@suse.com>
- Migration of PAM settings to /usr/lib/pam.d.
-------------------------------------------------------------------
Sun Dec 18 09:30:09 UTC 2022 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.2.1
* Fix a compatibility problem with OpenSSL 3 that results in TLS
negotiation failures in some non-default configurations.
* Fix an error in courier-imap's installation script that results in
creation of absolute, rather than relative, symbolic links.
-------------------------------------------------------------------
Sun Dec 4 20:16:13 UTC 2022 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.2.0
* Switch to libidn2.
* Debian/Ubuntu: update lintian overrides
* make install: replace absolute links with relative links.
- update to 5.1.9
* Adjust deb packaging. Check /etc/lsb-release and include the
distribution release in the deb package version, to faciliate
updating to the same version of the package in an updated release.
* Fix build dependencies.
-------------------------------------------------------------------
Sat Aug 20 19:07:14 UTC 2022 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.1.8
* gcc 12 and autotools update. OpenSSL 3.0 update.
* courier, courier-imap: remove the --disable-root-check configure
option, now that make check can deal with it.
* Add scripts to create installable .deb packages, update
documentation.
* imap/authenticate_auth.c: Fix broken SASL authentication.
* Adjust behavior of inherited ACLs. After deleting and recreating
a folder, have the recreated folder inherit its parent folder's ACLs,
normally, instead of mysteriously restoring whatever ACLs the folder
had when it was deleted.
* Fixes to Makefile to workaround test suite failures related to
permission checking when make check runs as root.
* Fix minor memory leaks.
-------------------------------------------------------------------
Mon Jan 17 07:29:18 UTC 2022 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.1.7
* Fix linking failure on some Linux distributions.
- update to 5.1.6
* Fix linking failure on some Linux distributions.
- update to 5.1.5
* Fix minor memory leaks. If valgrind is installed, "make check" will
run it to check for memory leaks.
* Convert to PCRE2.
* libcouriertls: use ALARM to kill couriertls if the server process
terminates but openssl hangs trying to shut down the socket.
-------------------------------------------------------------------
Mon Aug 2 09:16:44 UTC 2021 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.1.4
* all: code changes so that courier can be compiled with -Wall
-Werror gcc flags. The default compilation flags are not changed.
This also includes changes to the configuration scripts, which
includes removing outdated configuration settings.
* pop3: buffer input by ourselves, clear input buffer before
switching to TLS.
* imap: fix crash if the connection to the client is terminated at
the wrong/right time.
-------------------------------------------------------------------
Sun Apr 25 12:29:04 UTC 2021 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.1.3
* pop3d: pro-forma POP3 LANG extension.
* pop3d-ssl.dist.in (TLS_STARTTLS_PROTOCOL): Remove duplicate entry
in the pop3d-ssl configuration file.
-------------------------------------------------------------------
Sat Mar 27 14:54:45 UTC 2021 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.1.2
* make: Individual files that did not end in a newline were
not handled correctly.
* imap: adjust error message.
-------------------------------------------------------------------
Sun Mar 21 09:44:47 UTC 2021 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.1.1
* Fix swapped TLS_CACHEFILE settings in the IMAP and POP3
configuration files
-------------------------------------------------------------------
Sat Mar 20 10:03:07 UTC 2021 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.1.0
* Implement support for the TLS ALPN extension.
* Replace FAM/Gamin with inotify.
* Install the maildirwatch tool.
* Remove the IMAP_ENHANCEDIDLE setting from the imapd configuration
file.
- update source download URL
- remove courier-imap-Makefile.patch (upstreamed)
-------------------------------------------------------------------
Tue Mar 2 07:36:29 UTC 2021 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.0.14
* Fix packaging problem with a faulty courier-unicode dependency
- update to 5.0.13
* Fixes a crash caused by a malformed DNS query/response
- move SSL cache files to /var/cache/courier-imap/ and put (open)SUSE
specific changes to configuration files in a patch file (instead of
sed scripts)
+ courier-imap-config.patch
- remove obsolete SysV init files
- courier-imap.init
- courier-imap-ssl.init
- courier-pop.init
- courier-pop-ssl.init
-------------------------------------------------------------------
Wed Feb 10 08:53:30 UTC 2021 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.0.12
* openssl: Add TLS_PROTOCOL setting to disable client-initiated
renegotiation.
* imap: send corrupted Unicode alerts only for new messages.
* waitlib: fix testwait.c failure with LTO enabled on F33.
* pop3login.c: fflush before STARTLS.
-------------------------------------------------------------------
Fri Jun 19 08:25:12 UTC 2020 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.0.11
* courier-authlib API update.
* Add AC_PROG_CC_C99 to configure
- remove courier-imap-stdc.patch (no longer needed)
-------------------------------------------------------------------
Thu May 28 11:44:19 UTC 2020 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.0.10
* tcpd/starttls.c (dossl): Start client after negotiating SSL, in
order to allow EXTERNAL client certificate authentication.
* Fix virtual IP and hostname handling when using GnuTLS for SSL.
* imap, pop3: include remote port TCP port number together with the
IP address, in log messages.
- add courier-imap-stdc.patch to remove 'for' loop initial declarations
-------------------------------------------------------------------
Tue Nov 12 15:23:15 UTC 2019 - Arjen de Korte <suse+build@de-korte.org>
- update to 5.0.8
* Update documentation in the imapd and pop3d ssl config flies.
- update to 5.0.7
* pop3dserver.c (do_retr): Use the new MIME_UNICODE_MESSAGE_TYPE
setting to set the type of the wrapped MIME attachment.
- update to 5.0.6
* pop3dserver.c: Fix parsing of pop3d file cache, on some
architectures.
* tcpd/libcouriertls.c: Ignore unreadable cert files.
- update to 5.0.5
* fetch.c: Send an alert about a Unicode messages to a non-Unicode
client at most once per IMAP session.
- update to 5.0.4
* pop3dserver.c: Deal with MS Outlook's broken implementation of
RFC 6856.
- update to 5.0.3
* pop3dserver.c (calcsize): Fix spurious flagging of non-UTF8
messages as UTF-8.
To fix existing mailboxes with erroneously-flagged messages. In
each mailbox, if its existing courierpop3dsizelist file starts with
/3 [followed by additional data]
Only if the first line in courierpop3dsizelist starts with /3, then
execute:
perl -p -i -e 's/:\d+$/:0/' courierpop3dsizelist
* pop3dserver.c (readpop3dlist): Be able to update
courierpop3dsizelist from version 2 to 3 in place.
(do_retr): Instead of returning an ERR to a non-Unicode client,
handle Unicode messages by wrapping them as an attachment.
- update to 5.0.2
* configure.ac: Additional changes to how Unicode messages are
handled with non-Unicode clients: disclaim all warranties, still
report an error, but provide the raw message content, as is.
- update to 5.0.1
* Provide an substitute message to IMAP clients that did not enable
UTF-8.
* couriertls: additional fixes.
* couriertls: option to use a separate file for the SSL certificate's
private key, as an alternative to the combined keyfile+certificate.
- update to 5.0.0
* pop3dserver.c: update Courier-IMAP to support UTF8 POP3. Update
version of the courierpop3dsizelist cache file.
* courier-imap, sqwebmail: update Courier-IMAP to support UTF8 IMAP.
Convert maildir folders to use UTF-8 for folder names. Add
--checkutf8 and --convutf8 options to maildirmake to convert
pre-UTF8 maildirs to UTF8 maildirs, a mandatory upgrade procedure.
* waitlib/configure.ac: Fix typo.
* libs/tcpd/starttls.c (main): Add -user option. Additional fixes
to startup script to have couriertls drop root privileges.
* libs/tcpd/tlsclient.h: add username option, used in couriertls_start
to set the child process's uid and gid.
* imaplogin.c (starttls): Set username option for couriertls
* pop3login.c (starttls): Set username option for couriertls
* imapd-ssl.dist, pop3d-ssl.dist: Use separate imap and pop3 session
cache files. Startup script: remove/set ownership and permsission
on the imap and pop3 session cache files.
* libs/tcpd/libcouriergnutls.c: Remove usage of deprecated OpenPGP
API. Tag the "Unexpected SSL connection shutdown" with the "DEBUG"
label just like the OpenSSL version does.
* libs/tcpd/starttls.c: If TCPREMOTEIP is set, prepend it to error
messages.
- delete reproducible.patch (upstreamed)
- add courier-imap.keyring for source verification
- cleanup spec
-------------------------------------------------------------------
Fri Jul 19 09:50:17 UTC 2019 - matthias.gerstner@suse.com
- removal of SuSEfirewall2 services, since SuSEfirewall2 has been replaced by
firewalld, see [1].
[1]: https://lists.opensuse.org/opensuse-factory/2019-01/msg00490.html
-------------------------------------------------------------------
Tue Jun 11 12:38:44 UTC 2019 - Dominique Leuenberger <dimstar@opensuse.org>
- BuildRequire pkgconfig(systemd) instead of systemd: allow OBS to
shortcut the build queues by allowing usage of systemd-mini
-------------------------------------------------------------------
Thu Jan 3 10:09:46 UTC 2019 - Bernhard Wiedemann <bwiedemann@suse.com>
- Add reproducible.patch to override build date (boo#1047218)
-------------------------------------------------------------------
Mon Dec 4 11:55:19 UTC 2017 - suse+build@de-korte.org
- update to 4.18.2
* imapd.c (do_folder_delete): Fix check for DELETE INBOX.
* libs/maildrop/maildir.C (MaildirSave): Fix new/delete mismatch.
* libs/sqwebmail/gpg.c: Fix external linkage.
* libs/tcpd/libcouriertls.c: OpenSSL API update.
* courier-unicode library API update.
* libs/maildir/maildirquota.c (docheckquota): Skip DT_LNK.
* OpenSSL 1.1.0 compilation fixes.
* courier: switch default header encoding to UTF-8.
* Fix to configure.ac
-------------------------------------------------------------------
Mon Feb 20 14:53:44 CET 2017 - kukuk@suse.de
- Don't call insserv if we use systemd
- Don't install LSB init scripts if we use systemd
- Create rc* links to service command if we use systemd
-------------------------------------------------------------------
Fri May 20 10:34:20 CEST 2016 - kukuk@suse.de
- Remove directories already part of filesystem rpm
-------------------------------------------------------------------
Tue May 17 13:24:37 CEST 2016 - kukuk@suse.de
- Fix path of SuSEfirewall2.d directory
-------------------------------------------------------------------
Mon May 16 12:59:14 UTC 2016 - chris@computersalat.de
- update to 4.17.1
* Fix TLS SNI code.
- update to 4.17.0
* Stop using SSL2 and SSL3 openssl configuration methods.
* libs/tcpd/libcouriertls.c: Add support for TLS SNI.
* imaplogin.c (starttls): flush stdin after negotiating STARTTLS.
* Fix Courier-IMAP rpm build on pre-systemd systems.
- rebase courier-imap-Makefile.patch
-------------------------------------------------------------------
Wed Aug 5 01:45:26 UTC 2015 - chris@computersalat.de
- update to 4.16.2
* imap/mailboxlist.c (match_mailbox_prep): Use strncmp instead of
memcmp, to pacify overzealous static analysis checkers.
* Drop SSLv3 from TLS_CIPHER_LIST.
* imap, pop3: Added AUTH_MKHOMEDIR_SKEL setting.
- update to 4.16.1
* maildircache.c: fix use after free.
* mkdhparams: make compatible with libressl
* Handle 01-Jan-1970 for date-based searches.
* Update to courier-unicode 1.2.
* Add the makeimapaccess script.
- add Patch courier-imap-Makefile.patch
-------------------------------------------------------------------
Wed Oct 29 22:05:29 UTC 2014 - chris@computersalat.de
- update to 4.15.1.20141122
* tcpd/libcouriertls.c: add parsing options for different protocol
combination.
* Update comments in *ssl config files.
* libs/tcpd/libcouriertls.c (tls_create): Set SSL_OP_NOSSLv3 flag,
to disable SSL3 support.
* mkdhparams: TLS_DHPARAMS environmnt variable overrides default
DH parameter file location.
* courier-imap.spec.in: generate the default DH parameter file and
package it into the rpm, instead of generating one on the first
start.
* libs/maildir/maildirinfo.c (maildir_info_imapmunge): Fix
UTF-8 charset name.
* tcpd/libcouriertls.c (tls_create): Initialize temporary ecdh
parameters.
* imap: try to print a message on stderr if the alarm() call, that
detects FAM library breakage, goes off.
* mkdhparams: default to 2048 DH params for OpenSSL.
* courier-imap.service: bump up startup timeout, initial service start
may take several minutes to generate DH parameters for the first
time.
- add new dependency
* courier-unicode-devel (libunicode)
-------------------------------------------------------------------
Thu Sep 25 15:19:51 UTC 2014 - chris@computersalat.de
- fix courier-imap.service
* STARTTLS on port 143 (thanks to cschweingruber)
-------------------------------------------------------------------
Sat Mar 15 20:24:10 UTC 2014 - chris@computersalat.de
- update to 4.15
* pop3login.c (starttls): Clear input buffer after STARTTLS.
* imaplogin.c (starttls): Clear input buffer after STARTTLS.
* Fix various compiler warnings about unchecked results from setuid
and setgid calls.
* libs/tcpd/libcouriergnutls.c, libs/tcpd/libcouriertls.c: remove the
TLS_DHCERTFILE setting, and use TLS_CERTFILE for all functionality.
Read DH parameters from TLS_CERTFILE, or from the new TLS_DHPARAMS
environment variable.
* mkdhparams: New script that generates DH parameters into a standalone
file.
* Remove TLS_DHCERTFILE setting from imapd-ssl, pop3d-ssl, esmtpd and
esmtpd-ssl. Add TLS_DHPARAMS.
* Update imapd.cnf.openssl, pop3d.cnf.openssl, esmtpd.cnf.openssl,
set default number of bits for RSA keys to 4096.
* libs/tcpd/libcouriertls.c (tls_create): Add TLSv1_1_method() and
TLSv1_2 method(), based on patch by Rob Austein <sra@hactrn.net>.
* pop3d-ssl.dist.in, imapd-ssl.dist.in: Fix up differences in the
documentation of TLS options in various config files.
- added systemd service files
- fix build for SLE
* fam-devel vs gamin-devel
- cleanup spec
* RPM_BUILD_ROOT -> buildroot
-------------------------------------------------------------------
Wed Jan 8 13:53:33 UTC 2014 - adrian@suse.de
- use gamin-devel instead of unmaintained fam(-devel) package
-------------------------------------------------------------------
Mon Nov 11 21:11:56 UTC 2013 - chris@computersalat.de
- update to 4.14.0
* Autotool chain update.
* imapd.c (mddelete): Reject DELETE folder if the maildir is a symlink.
* imapd.c (doId): Implement the IMAP ID EXTENSION.
- 4.13.0
* imap: add explicit mkdirs on PIDFILE directories to startup scripts.
* rfc822: workaround for invalid utf-8 input making libidn go off the
rails.
- fix License
* GPL-3.0 -> GPL-3.0+
- rebase patches
* imap-sbindir, imap-ulimit_conf
-------------------------------------------------------------------
Tue Jan 15 18:05:58 UTC 2013 - chris@computersalat.de
- update to 4.12.0
* tcpd/libcouriergnutls.c (get_server_cert): Fix size of malloced
buffer.
* configure.in: Fix typo in configure check for setvbuf().
- rebase patches
* sbindir (remove version), ulimit_conf (rename diff -> patch)
-------------------------------------------------------------------
Fri Sep 21 09:23:57 UTC 2012 - chris@computersalat.de
- update to 4.11.0
* maildir/maildiraclt.c (maildir_acl_delete): Fix double-free on error
path of an ENOMEM.
* courier.spec.in: Fix the RPM spec to work around /bin symlink
breakage in F17.
* tcpd/tcpd.c: Update libgnutls API, replace obsoleted functions
with current API. Obsoletes most TLS_* variables that set protocol
priorities, replaced with Gnutls-specific single TLS_PRIORITY
setting (existing TLS_* variables are still used by the OpenSSL
alternative). Updated *-ssl configuration files accordingly.
* tcpd: Compilation changes for gnutls 3
* liblock/mail.c (dotlock_exists): Quell a compiler warning.
* Miscellaneous spelling fixes.
- rebase sbindir patch (4.8.0 -> 4.11.0)
-------------------------------------------------------------------
Sat Jan 7 19:20:08 UTC 2012 - chris@computersalat.de
- update to 4.10.0
* imapd.c (main): Open IMAPDEBUGFILE only if it exists already.
(do_expunge): Optionally log deletions. Based on a patch by
William Yodlowsky <wyodlows@andromeda.rutgers.edu>.
* pop3dserver.c (cleanup): Optionally log deletions. Based on a patch by
William Yodlowsky <wyodlows@andromeda.rutgers.edu>.
* imapd.dist.in (IMAP_MOVE_EXPUNGE_TO_TRASH): Officially document how
IMAPDEBUGFILE works.
* imapscanclient.c: Postpone Y2038K for a while, for uid validities.
* liblock/mail.c (dotlock_exists): Handle getting here because of a
recycled pid.
* unicode/unicode.c (init_default_chset): Handle NULL from setlocale().
* rfc2045/reformime.c (main2): Fixed segfault on some arches from an
initial null given to strtok.
* rfc2045/reformime.c (main2): On ia64 and arm, argv is in readonly
memory.
* pop3dserver.c (openpop3dlist): Try a few times to reopen pop3dsizelist
if it fails with ESTALE.
* pop3d.dist.in: Add AUTHSERVICE settings. They've been supported
all along.
* Fix gcc 4.6 warnings
* courier-imap.spec.in: switch to systemd. Remove script used when
upgrading from ancient pre-sysconftool versions.
* Fix autoconf warnings.
-------------------------------------------------------------------
Wed Sep 21 23:11:38 UTC 2011 - chris@computersalat.de
- change --with-authdaemonvar to /var/run/courier-authlib
-------------------------------------------------------------------
Fri May 27 19:16:25 UTC 2011 - chris@computersalat.de
- update to 4.9.3
* msgenvelope.c (msgappends): Fix a fatal error upon encountering
8-bit header content. Heuristically try to interpret it as UTF-8, and
just ignore invalid UTF-8 sequences.
- 4.9.2
* rfc2045/rfc2045cdecode.c: Tolerate lowercase hexadecimal characters
in quoted-printable-encoded content.
* unicode/unicode.c: Compilation fixes.
-------------------------------------------------------------------
Sun May 1 20:46:37 UTC 2011 - chris@computersalat.de
- update to 4.9.1
* tcpd/libcouriertls.c (tls_create): Remove SSLv2_method().
(tls_create): Remove "!SSLv2" from the default TLS_CIPHER_LIST.
* mkimapdcert.in (prefix): Create imapd.pem with 600 perms.
* mkpop3dcert.in (prefix): Create pop3d.pem with 600 perms.
- for more info please see Changelog file
- fix License
o GPLv2+ -> GPLv3
- fix path to ChangeLog file
-------------------------------------------------------------------
Mon Oct 11 12:46:50 UTC 2010 - chris@computersalat.de
- update to 4.8.1
* Makefile.am (imapd.cnf): Compatibility fixes.
- 2010-08-15 Sam Varshavchik <mrsam@courier-mta.com>
* maildir/maildirwatch.c (maildirwatch_alloc): Use alarm() to kill
the process if FAMOpen() takes more than 15 seconds to return.
Should prevent a hung process if FAM/Gamin is fubared.
- 2010-07-11 Sam Varshavchik <mrsam@courier-mta.com>
* pop3dserver.c: Make printed() and putchar() macros.
- 2010-07-01 Sam Varshavchik <mrsam@courier-mta.com>
* imapd.cnf pop3d.cnf (default_md): added default_md = sha1
- 2010-06-28 Sam Varshavchik <mrsam@courier-mta.com>
* rfc822/rfc822.c (rfc822_print_common_nameaddr): Prevent segfault if
address decode fails.
* Fix make check failure when libidn is not available.
- 2010-05-31 Sam Varshavchik <mrsam@courier-mta.com>
* Rebuilt man pages with updated stylesheets.
- remove obsolete certsdir patch
- remove LDFLAGS patch, add configure option --disable-static
-------------------------------------------------------------------
Thu Aug 5 16:06:36 UTC 2010 - chris@computersalat.de
- have pop3d, imapd ssl certs in /etc/ssl/private
[bnc#628487]; certsdir patch
-------------------------------------------------------------------
Mon Jul 5 15:21:53 UTC 2010 - chris@computersalat.de
- update to 4.8.0
* tcpd/configure.in: Check if explicit linking with libgpg-error is
required.
- 2010-03-20 "Stefan Hornburg (Racke)" <racke@linuxia.de>
* imapd.c (main): Fix typo in alert message.
- 2010-03-18 Hugo Monteiro <hugo.monteiro@fct.unl.pt>
* Big quota patch (with some changes).
- 2010-03-12 Sam Varshavchik <mrsam@courier-mta.com>
* imapd.c (main): Dummy FAM/Gamin initialization, report an error
during login, upon a failure.
- 2010-03-10 Sam Varshavchik <mrsam@courier-mta.com>
* imapd.c (imapenhancedidle): Make FAM error more meaningful.
- 2010-02-25 Bernard Quatermass <bernard@quatermass.co.uk>
* pop3dserver.c (main): "disableinsecurepop3" account option disables
non-SSL logins.
* imapd.c (chkdisabled): "disableinsecureimap" account option disables
non-SSL logins.
- reworked sbindir patch
-------------------------------------------------------------------
Sat Jul 3 12:36:09 CEST 2010 - meissner@suse.de
- buildrequire openssl so configure finds /usr/bin/openssl bnc#619665
-------------------------------------------------------------------
Mon May 17 14:39:54 UTC 2010 - chris@computersalat.de
- fix path to TLS_TRUSTCERTS (imap-ssl,pop3d-ssl)
o added --with-certdb=%{_sysconfdir}/ssl/certs
-------------------------------------------------------------------
Wed Feb 24 22:52:23 UTC 2010 - chris@computersalat.de
- update to 4.7.0
* lot of changes, see ChangeLog
- reworked LDFLAGS patch (fuzz 0)
-------------------------------------------------------------------
Tue Oct 6 14:32:54 CEST 2009 - chris@computersalat.de
- update to 4.6.0
* outbox.c (imapd_sendmsg): Renamed sendmsg() to avoid library name
clash.
* tls: change the default OpenSSL configuration to disable anonymous
authentication ciphers
-------------------------------------------------------------------
Sat Sep 5 21:31:42 CEST 2009 - chris@computersalat.de
- spec mods
o resorted Tags
-------------------------------------------------------------------
Sat Sep 5 18:37:12 CEST 2009 - chris@computersalat.de
- update to 4.5.1
* all: gcc 4.4 fixes
* fetch.c (open_cached_fp): If the message file cannot be opened,
create a dummy message in its place.
- spec mods
o added missing norootforbuild
o fix patch naming patch0
- mod to imapd.dist
o increased MAXPERIP from 10 to 20
thunderbird does 5 con per account, if not known by user
he will come into trouble
-------------------------------------------------------------------
Wed Aug 26 15:23:37 UTC 2009 - chris@computersalat.de
- spec mods
o fix typo missing '%'if
-------------------------------------------------------------------
Thu Aug 20 18:40:15 CEST 2009 - chris@computersalat.de
- cleanup spec file
o removed all #---- lines
o added configure macro
- merge .spec with o:F
- merge .changes with o:F
-------------------------------------------------------------------
Thu Aug 20 18:22:26 CEST 2009 - opensuse@cboltz.de
- read ssl config files in non-ssl initscripts if TLS is enabled
[bnc#420972#c2]
-------------------------------------------------------------------
Tue Jul 7 13:49:32 CEST 2009 - chris@computersalat.de
- fixed self prov error (imap)
-------------------------------------------------------------------
Sun May 24 02:44:35 CEST 2009 - chris@computersalat.de
- new version 4.5.0
o Documentation refresh.
o pop3dserver.c: s/POP3_STLS/POP3_TLS/, for correct logging.
o imaprefs.c (dorefcreate): Clean up usage of rfc822_threadsearchmsg().
A malloc() failure wasn't checked correctly.
o rfc2045/rfc2045_fromfd.c: Optimize header parsing.
o search.c: Empty MIME entities would always match any SEARCH. Reported
by Dmitry Osipov.
o tcpd/configure.in: --without-gnutls forces suppression of GnuTLS when
OpenSSL is not present.
o tcpd/libcouriergnutls.c (tls_connect): Fix client certificate request
settings.
o tcpd/libcouriergnutls.c (set_cert): Add support for certificates
signed by an intermediate CA.
o imapwrite.c (write_error_exit): Dump fatal errors to stderr.
- new sbindir (failed), LDFLAGS (hunk) patch
- some spec fixes
o updated header
o updated description
o added ChangeLog, README.proxy
o fixed init install (0755)
o conflicts with cyrus-imapd
- fixed init scripts
o removed X-United stuff
- rpmlint stuff
o install-no-mkdir-buildroot
o removed old Obsoletes
o fixed non-conffile-in-etc
-------------------------------------------------------------------
Sun May 24 00:55:12 CEST 2009 - chris@computersalat.de
- fixed differences of changelog
o my fault, added changes to spec, now fixed :)
-------------------------------------------------------------------
Sat Nov 15 15:22:56 CEST 2008 - chris@computersalat.de
- some rpmlint stuff
o modified post: insserv courier-*
-------------------------------------------------------------------
Tue Sep 16 15:43:41 CEST 2008 - hvogel@suse.de
- Fix init scripts without ssl to not include ssl config files
[bnc#420972]
-------------------------------------------------------------------
Fri Sep 12 14:08:12 CEST 2008 - hvogel@suse.de
- Fix protocol names in firewall service files [bnc#425216]
-------------------------------------------------------------------
Mon Sep 8 13:59:46 CEST 2008 - hvogel@suse.de
- update to 4.4.1
* Update descriptions of maildir quotas
* Use the couriertls library to invoke couriertls. SASL
authentication did not correctly handle the special case of "="
passed as the initial response to indicate an empty initial
response. Switch to the new auth_sasl_ex() API.
* Check the environment variables for subject fields set by
couriertls. Advertise the AUTH EXTERNAL capability, if they
are set.
* Optimize IMAP keyword implementation. Faster results in exchange
for a concurrency tradeoff if two concurrent sessions attempt to
update keywords for the same message at the same time
* Backslashed special characters in address names weren't being
dequoted correctly
* Add a timeout to the POP3 login stage
* Fix SSL initialization
* Fix TLS session caching
-------------------------------------------------------------------
Mon Apr 14 10:29:49 CEST 2008 - aj@suse.de
- Remove executable permissions from README files.
-------------------------------------------------------------------
Wed Apr 2 15:08:52 CEST 2008 - hvogel@suse.de
- update to version 4.3.1
* make SSL23 default tls protocol
* update description of SSL/TLS-related settings
* introduce IMAP_MAILBOX_SANITY_CHECK
* Explicitly make stderr line-buffered
* Suppress spurious error message in imap.c
- fix some rpmlint warnings
-------------------------------------------------------------------
Thu Jan 17 13:19:29 CET 2008 - mskibbe@suse.de
- update to version 4.3.0 which
o Fix some Bugs
o Fix SSL session caching bug
o Make skew check more reliable
o code cleanup
-------------------------------------------------------------------
Wed Nov 21 10:33:13 CET 2007 - mskibbe@suse.de
- Bug 342601 - courier-imap rc and config bugs
-------------------------------------------------------------------
Fri Nov 16 08:32:29 CET 2007 - mskibbe@suse.de
- Bug 341267 - courier-imap-ssl configuration problems
-------------------------------------------------------------------
Mon Oct 22 17:38:19 CEST 2007 - sbrabec@suse.cz
- Use correct SuSEfirewall2 rule directory.
-------------------------------------------------------------------
Wed Apr 25 09:50:13 CEST 2007 - mskibbe@suse.de
- update to version 4.1.3 which includes:
o fix memory leak
o checks for malloc failures
o updated man pages
o cleaned up configure script
o bug fixes
-------------------------------------------------------------------
Mon Apr 23 12:39:17 CEST 2007 - mskibbe@suse.de
- SuSEfirewall2 service file installed in wrong dir/broken
(#266949)
-------------------------------------------------------------------
Thu Mar 29 11:30:19 CEST 2007 - rguenther@suse.de
- add procps BuildRequries because of interesting configure checks
-------------------------------------------------------------------
Mon Mar 26 12:29:29 CEST 2007 - rguenther@suse.de
- add gdbm-devel BuildRequires
-------------------------------------------------------------------
Wed Mar 14 14:24:20 CET 2007 - mskibbe@suse.de
- fam has no address, rejected by xinetd, when called from
courier-imap (#253437)
-------------------------------------------------------------------
Fri Mar 2 13:26:27 CET 2007 - mskibbe@suse.de
- courier : Support for FATE #300687: Ports for SuSEfirewall added
via packages (#250575)
- fix file list
- update to version 2.1.2 which
o Clarify some error messages
o Try to log bandwidth usage before getting killed by a signal
o Fix many compiler warnings
o Fix segfault if non-cert files were found in the cert dir
o Added koi8-u character set
-------------------------------------------------------------------
Mon Feb 12 11:02:28 CET 2007 - mskibbe@suse.de
- fix mkpop3dcert and mkimapdcert. Now they use pem files from
/etc/courier-imap/
-------------------------------------------------------------------
Mon Feb 5 12:34:55 CET 2007 - mskibbe@suse.de
- Courier generates certificates in /usr/share/courier-imap
(#241937)
-------------------------------------------------------------------
Mon Jan 22 08:53:39 CET 2007 - mskibbe@suse.de
- checkproc uses -p parameter not as specified in man page
(#230806)
-------------------------------------------------------------------
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

77
courier-imap.keyring Normal file
View File

@ -0,0 +1,77 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mDMEZMuHLRYJKwYBBAHaRw8BAQdAe5JtcuSmqfCc9heHcxw01+ldcRpzdgI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8buLikJzj0mU9VfEQuDntAuDGvbH0vQfl8w8Rrq8vS2sjXrt
YMyZ3FqO5LpOjWv/3ywmeHZMgt2L0VjXc6p52zbG5QPEvp25mEHNEHbGlFpqlO+S
n13W3olBdLG97hH2N7/P8Gf7mhokBzXmm0M7CPAw3VI5McKysVu35OX0
=85Hx
-----END PGP PUBLIC KEY BLOCK-----

29
courier-imap.service Normal file
View File

@ -0,0 +1,29 @@
[Unit]
Description=Courier IMAP
Wants=courier-authdaemon.service
After=syslog.target
After=network.target
After=courier-authdaemon.target
After=courier-authdaemon.service
[Service]
EnvironmentFile=/etc/courier/imapd
Environment="PIDFILE=/run/imapd.pid" "LOCKFILE=/run/imapd.pid.lock"
PIDFile=/run/imapd.pid
LimitNOFILE=65536
ExecStart=/usr/bin/env - /bin/sh -c " set -a ; \
. /etc/courier/imapd ; \
grep IMAPDSTARTTLS=NO /etc/courier/imapd-ssl &>/dev/null || . /etc/courier/imapd-ssl ; \
IMAP_STARTTLS=$IMAPDSTARTTLS ; export IMAP_STARTTLS ; \
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 /usr/sbin/imapd $MAILDIRPATH"
ExecStop=/usr/sbin/courierlogger -pid=$PIDFILE -stop
ExecStopPost=/usr/bin/rm $PIDFILE $LOCKFILE
Restart=always
[Install]
WantedBy=multi-user.target

234
courier-imap.spec Normal file
View File

@ -0,0 +1,234 @@
#
# spec file for package courier-imap
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%bcond_with valgrind
Name: courier-imap
Version: 5.2.9
Release: 0
Summary: An IMAP and POP3 Server for Maildir MTAs
License: GPL-3.0-or-later
Group: Productivity/Networking/Email/Servers
URL: https://www.courier-mta.org/imap/
Source0: https://downloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2
Source1: https://downloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2.sig
Source2: pop3.pamd
Source3: imap.pamd
# Keyring downloaded from https://www.courier-mta.org/KEYS.bin#/%%{name}.keyring
Source4: %{name}.keyring
Source15: courier-imap.service
Source16: courier-imap-ssl.service
Source17: courier-imap-gencert.service
Source18: courier-pop.service
Source19: courier-pop-ssl.service
Source20: courier-pop-gencert.service
Patch0: %{name}-sbindir.patch
Patch2: %{name}-ulimit_conf.patch
### Patch for upstream:
# Apply (open)SUSE specific changes to configuration
Patch4: %{name}-config.patch
BuildRequires: audit-libs
BuildRequires: courier-authlib-devel >= 0.71
BuildRequires: courier-unicode-devel >= 2.1
BuildRequires: db-devel
BuildRequires: gcc-c++
BuildRequires: gdbm-devel
BuildRequires: libstdc++-devel
BuildRequires: ncurses-devel
BuildRequires: pam-devel
BuildRequires: pcre2-devel
BuildRequires: procps
BuildRequires: zlib-devel
BuildRequires: pkgconfig(libidn2) >= 2.0.5
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(systemd)
%if %{with valgrind}
BuildRequires: valgrind
%endif
Requires: courier-authlib >= 0.71
Requires: gdbm
Requires: openssl
Conflicts: cyrus-imapd
Conflicts: imap
Conflicts: qpopper
%{?systemd_requires}
%description
Courier-IMAP is a fast, scalable, enterprise IMAP server that uses
Maildirs. Many E-mail service providers use Courier-IMAP to easy handle
hundreds of thousands of mail accounts. With its built-in IMAP and POP3
aggregation proxy, Courier-IMAP has practically infinite horizontal
scalability. In a proxy configuration, a pool of Courier servers service
initial IMAP and POP3 connections from clients. They wait to receive the
client's log in request, look up the server that actually holds this mail
account's mailbox, and establish a proxy connection to the server, all in
a single, seamless process. Mail accounts can be moved between different
servers, to achieve optimum resource usage.
The only practical limitation on Courier-IMAP is available network and I/O
bandwidth. If you are new to Courier-IMAP, this may sound a bit
intimidating. But you do not need to tackle everything at once. Start by
taking small, easy steps. Your first step will be to set up a small
Courier-IMAP server, using it like any other traditional IMAP service, on
a single server. After you gain experience and become comfortable with
Courier, you can then begin exploring its advanced features.
This is the same IMAP server that's included in the Courier mail server,
but configured as a standalone IMAP server that can be used with other
mail servers - such as Qmail, Exim, or Postfix - that deliver to maildirs.
If you already have Courier installed, you do not need to download this
version. If you install this version, you must remove it if you later
install the entire Courier server.
%prep
%autosetup -p0
# For %%doc macro
mv libs/maildir/README.sharedfolders{.txt,}
mv libs/maildir/README.maildirquota{.txt,}
%build
%configure \
--with-notice=unicode \
--libexecdir=%{_prefix}/lib/%{name} \
--datadir=%{_datadir}/%{name} \
--sysconfdir=%{_sysconfdir}/courier \
--sharedstatedir=%{_sharedstatedir}/%{name} \
--with-piddir=%{_rundir} \
--disable-static \
--disable-root-check \
--enable-unicode \
--with-notice=unicode \
--with-authdaemonvar=%{_rundir}/courier-authlib \
--with-certdb=%{_sysconfdir}/ssl/certs \
--with-certsdir=%{_sysconfdir}/ssl/private \
%if %{without valgrind}
--enable-workarounds-for-imap-client-bugs
%endif
%make_build
%install
%make_install
# Move daemons into sbin
mv %{buildroot}%{_bindir}/{couriertls,imapd,pop3d} %{buildroot}%{_sbindir}/
# Rename imapd.8 to courier-imapd.8
mv %{buildroot}%{_mandir}/man8/imapd.8 %{buildroot}%{_mandir}/man8/%{name}d.8
# Install PAM config files
%if 0%{?suse_version} > 1500
mkdir -p %{buildroot}%{_pam_vendordir}
install -D -m 644 %{S:2} %{buildroot}%{_pam_vendordir}/pop3
install -D -m 644 %{S:3} %{buildroot}%{_pam_vendordir}/imap
%else
install -D -m 644 %{S:2} %{buildroot}%{_sysconfdir}/pam.d/pop3
install -D -m 644 %{S:3} %{buildroot}%{_sysconfdir}/pam.d/imap
%endif
# Install init scripts
for i in imap imap-ssl imap-gencert pop pop-ssl pop-gencert; do
ln -s -f service %{buildroot}%{_sbindir}/rccourier-$i
done
# Install service files
install -d -m 0755 %{buildroot}%{_unitdir}
install -m 0644 %{S:15} %{S:16} %{S:17} %{S:18} %{S:19} %{S:20} %{buildroot}%{_unitdir}
# Remove original init scripts, will not work longer
rm %{buildroot}%{_prefix}/lib/%{name}/imapd.rc
rm %{buildroot}%{_prefix}/lib/%{name}/imapd-ssl.rc
rm %{buildroot}%{_prefix}/lib/%{name}/pop3d.rc
rm %{buildroot}%{_prefix}/lib/%{name}/pop3d-ssl.rc
#
install -D -m 0755 sysconftool %{buildroot}%{_datadir}/%{name}/sysconftool
chmod 755 %{buildroot}%{_datadir}/%{name}/sysconftool
cat >%{buildroot}%{_datadir}/%{name}/configlist <<EOF
%{_sysconfdir}/courier/imapd.dist
%{_sysconfdir}/courier/imapd-ssl.dist
%{_sysconfdir}/courier/pop3d.dist
%{_sysconfdir}/courier/pop3d-ssl.dist
EOF
# SSL state cache directory
install -d %{buildroot}%{_localstatedir}/cache/%{name}/
%if %{with valgrind}
%check
make check
%endif
%pre
%service_add_pre courier-imap-gencert.service courier-imap-ssl.service courier-imap.service
%service_add_pre courier-pop-gencert.service courier-pop-ssl.service courier-pop.service
%if 0%{?suse_version} > 1500
# Prepare for migration to /usr/lib; save any old .rpmsave
for i in pam.d/pop3 pam.d/imap ; do
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||:
done
%endif
%preun
%service_del_preun courier-imap-gencert.service courier-imap-ssl.service courier-imap.service
%service_del_preun courier-pop-gencert.service courier-pop-ssl.service courier-pop.service
%post
%{_datadir}/%{name}/sysconftool `cat %{_datadir}/%{name}/configlist` >/dev/null
%service_add_post courier-imap-gencert.service courier-imap-ssl.service courier-imap.service
%service_add_post courier-pop-gencert.service courier-pop-ssl.service courier-pop.service
%postun
%service_del_postun courier-imap-gencert.service courier-imap-ssl.service courier-imap.service
%service_del_postun courier-pop-gencert.service courier-pop-ssl.service courier-pop.service
%if 0%{?suse_version} > 1500
%posttrans
# Migration to /usr/lib, restore just created .rpmsave
for i in pam.d/pop3 pam.d/imap ; do
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||:
done
%endif
%files
%defattr(-,root,root,755)
%license COPYING*
%doc AUTHORS README
%doc libs/imap/ChangeLog libs/imap/BUGS libs/imap/README.proxy
%doc libs/maildir/README.sharedfolders libs/maildir/README.maildirquota
%if 0%{?suse_version} > 1500
%{_pam_vendordir}/imap
%{_pam_vendordir}/pop3
%else
%config %attr(644,root,root) %{_sysconfdir}/pam.d/imap
%config %attr(644,root,root) %{_sysconfdir}/pam.d/pop3
%endif
%dir %{_sysconfdir}/courier
%dir %{_sysconfdir}/courier/imapaccess
%dir %{_sysconfdir}/courier/shared
%dir %{_sysconfdir}/courier/shared.tmp
%config %attr(600,root,root) %{_sysconfdir}/courier/imapd*
%config %attr(600,root,root) %{_sysconfdir}/courier/pop3*
%config %{_sysconfdir}/courier/quotawarnmsg.example
%dir %{_prefix}/lib/%{name}
%{_prefix}/lib/%{name}/makedatprog
%{_prefix}/lib/%{name}/couriertcpd
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/man?/*
%{_unitdir}/courier-*.service
%dir %attr(750,root,root) %{_localstatedir}/cache/%{name}/
%ghost %{_localstatedir}/cache/%{name}/sslpop3cache
%ghost %{_localstatedir}/cache/%{name}/sslimapcache
%changelog

View File

@ -0,0 +1,8 @@
[Unit]
Description=Courier POP3 (SSL) Cert Generation
ConditionPathExists=!/etc/ssl/private/pop3d.pem
[Service]
Type=oneshot
ExecStart=/usr/sbin/mkpop3dcert
RemainAfterExit=yes

32
courier-pop-ssl.service Normal file
View File

@ -0,0 +1,32 @@
[Unit]
Description=Courier POP3 (SSL)
Wants=courier-authdaemon.service
Wants=courier-pop-gencert.service
After=syslog.target
After=network.target
After=courier-authdaemon.target
After=courier-authdaemon.service
After=courier-pop-gencert.service
[Service]
EnvironmentFile=/etc/courier/pop3d
EnvironmentFile=/etc/courier/pop3d-ssl
Environment="SSLPIDFILE=/run/pop3d-ssl.pid" "LOCKFILE=/run/pop3d-ssl.pid.lock"
PIDFile=/run/pop3d-ssl.pid
LimitNOFILE=65536
ExecStart=/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 $SSLLOGGEROPTS \
/usr/lib/courier-imap/couriertcpd -address=$SSLADDRESS \
-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP $TCPDOPTS \
$SSLPORT $COURIERTLS -server -tcpd /usr/sbin/pop3login \
/usr/sbin/pop3d $MAILDIRPATH"
ExecStop=/usr/sbin/courierlogger -pid=$SSLPIDFILE -stop
ExecStopPost=/usr/bin/rm $SSLPIDFILE $LOCKFILE
Restart=always
[Install]
WantedBy=multi-user.target

26
courier-pop.service Normal file
View File

@ -0,0 +1,26 @@
[Unit]
Description=Courier POP3
Wants=courier-authdaemon.service
After=syslog.target
After=network.target
After=courier-authdaemon.target
After=courier-authdaemon.service
[Service]
EnvironmentFile=/etc/courier/pop3d
Environment="PIDFILE=/run/pop3d.pid" "LOCKFILE=/run/pop3d.pid.lock"
PIDFile=/run/pop3d.pid
LimitNOFILE=65536
ExecStart=/usr/bin/env - /bin/sh -c " set -a ; \
. /etc/courier/pop3d ; \
PROXY_HOSTNAME=$PROXY_HOSTNAME ; \
/usr/sbin/courierlogger -pid=$PIDFILE -start $LOGGEROPTS \
/usr/lib/courier-imap/couriertcpd -address=$ADDRESS \
-maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP $TCPDOPTS \
$PORT /usr/sbin/pop3login /usr/sbin/pop3d $MAILDIRPATH"
ExecStop=/usr/sbin/courierlogger -pid=$PIDFILE -stop
ExecStopPost=/usr/bin/rm $PIDFILE $LOCKFILE
Restart=always
[Install]
WantedBy=multi-user.target

5
imap.pamd Normal file
View 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
View File

@ -0,0 +1,5 @@
#%PAM-1.0
auth include common-auth
account include common-account
password include common-password
session include common-session