summaryrefslogtreecommitdiff
path: root/net-mail/qpopper
diff options
context:
space:
mode:
Diffstat (limited to 'net-mail/qpopper')
-rw-r--r--net-mail/qpopper/Manifest9
-rw-r--r--net-mail/qpopper/files/qpopper-4.1-parallel-build.patch13
-rw-r--r--net-mail/qpopper/files/qpopper.conf679
-rw-r--r--net-mail/qpopper/files/qpopper.init.d20
-rw-r--r--net-mail/qpopper/files/qpopper.xinetd16
-rw-r--r--net-mail/qpopper/metadata.xml13
-rw-r--r--net-mail/qpopper/qpopper-4.1.0.ebuild123
7 files changed, 873 insertions, 0 deletions
diff --git a/net-mail/qpopper/Manifest b/net-mail/qpopper/Manifest
new file mode 100644
index 000000000000..10b5d16cdba3
--- /dev/null
+++ b/net-mail/qpopper/Manifest
@@ -0,0 +1,9 @@
+AUX qpopper-4.1-parallel-build.patch 464 SHA256 55a3014b5db01656b062fb374f9e9f31513de0e76b87b448c96268386c8d669b SHA512 b80d0ecf87523a9f52927029f5d11b0937bf27ee634309a02184686ce5077f6da53f4e2cf12d3e2ae76ee45f16720addf2d23d6de7bf0c5b1a1a7b7906a25764 WHIRLPOOL f2e1860a4e522bf136e2eed44254d374c2857a16ac97a2d9eb585aa88aff6d2acee9464b400edd31d01c476f01aeaf6dd4d73b3d68ce7d4c319b779f7d003a68
+AUX qpopper.conf 20457 SHA256 ed4d6a22d9e1c5e9cb89c86d7d63a9cf552d76cba9bb94b4adc467662043ae52 SHA512 d7be7f0528b3059c1c09bcdef5dd519bfae82d1f63bd9316f5f1c86ca2df911a4e91ff87ec50ceb5e6b0e27a0b1f86dd2949800619df0a507f4bbb13a0d895b5 WHIRLPOOL 4d934f06da604083b5db4589f13e6402ae32d98808f8bfb9e58af69f4460c99aae1842d7ef9abba99a54cf1fbc91956b93459b3316bb72e61c4e246ec6e62513
+AUX qpopper.init.d 411 SHA256 265135ea2dc7926e13f4344f6f9695e048fa8ce73ba28da6b50eb6a4a22bd7d1 SHA512 06db8105e0e925b5b25a5024e6b4080e64317a0219d3db8e0a75fad1c8271d2aea3f38f7e44a07256a24a3354fb2bebc0a63ef22fc41381ad91239a540240aba WHIRLPOOL 34dc50864ae3133148b12678db33cf3ac3552dc08032febf2a3953c41f6d0b9ab8757f9b43b7b56c48a600c2cde757c096fb17fbbf037dfb23724b2e3f8c3e6a
+AUX qpopper.xinetd 408 SHA256 e6de613540086c0312029c0f0c762a6383df3c3f106c7112a371bdfd1ed087c4 SHA512 291c2ab21356210d415fae4816bfc9f295ebb47a75a4d523f81f0d14dd9380fe0ffceac53fa84f0491c68b7082d543f4c6f4e486ca818efc1fbc254ad5926458 WHIRLPOOL 0cd8cf2950a3a35d426b3bb19568ec66f72fb468bdd300d59567ec51d8ef5bbbad1578a16d9ac415ed9e49cbbb2bd43ae0b712d7ba9e5e8193d32f1ab6095970
+DIST qpopper4.1.0.tar.gz 1239530 SHA256 1bc21f83cda47e9b2d5d8ceecc49f169e10fdb9b99ddddcd543218fad269b0de SHA512 01e3ac13fa446bded84628a29a23849f623d5e5f85fdb77126cc4c2e20785c658fbc3d8a356eafd9f0ed2e879c6b4f6a754b6b685ea51b784c2cd0458c389c8b WHIRLPOOL 1317aaf3726a0406aa3b3bda0316a8fcd859dd681fe961db2233ae3832ad262d5341fa5af42796af2b2d86ac9f9cf32e8ee625c993021eb619df0807f2fff0f5
+EBUILD qpopper-4.1.0.ebuild 3076 SHA256 ea4f947ac4743b4e1c29f6ba63fcffae1aa2a8cbba74bb3b5cc20b94a20a6cc3 SHA512 73b74e0ca671b77eba35d08d2754811f6e0a0bb0ccc4d58647d8da47e16a0d2b03f05a8064855cf187bcb36c1e83c6612af255e3bed70a213cbc8545e9c1e399 WHIRLPOOL 86194e0fb83f4c600fd2bebee5b61c64678b44906a409d7ab238d3d597a6aa7be645b17a95888558d644045e1a0cf27a73f84015565249b95742470267b14cd3
+MISC ChangeLog 2670 SHA256 1efaed7f284ae6c2738219e56cebeda3145d0e05e77cfb0559af95966ce83fad SHA512 7f92b609afd35b7828d33b27e22f79d67c274e12c67d22833f2f33584533891e86ad5fb861aa0f0c041a5aeea18dd8d8ce192824e7b3736f7ae77c90f37c3c6b WHIRLPOOL fee5365be7076fc1df87b8b3847415b20b38176dd2f8eecd127c2d412e82537af025ad636b123f3822d83a1e458859fe799a27d7704b2eeeb4362a81fd01111e
+MISC ChangeLog-2015 5837 SHA256 d225f25f916b24973354b78eb44fe5bb39c3f41a5e4fb43e23df777fddd5965f SHA512 f4cc6e821b7e3706fa04cf9b0322379bb8423d52d7b935168a8bdb9b594895e85bd69f91871bc45deda1a8e8396ddbc0114e8ee4ae75b156d5ea9e80c91786b7 WHIRLPOOL 7b01c7725552ba6306eb9ccf6ed83b6e777a5e9089c21f89f65bbb5f0fba47b99b50d4e77556d6b1fb2d8415b66ba43b777cb9cd5f3bf1c52ecef96c0369b373
+MISC metadata.xml 476 SHA256 18098224e50ed353bcf263755f8fa82bb02b1b9283be22bfc1130c830f537b2e SHA512 9e8beaacad50c6f2c7397793d61cbe31a85e000aad1d0f161c07f6886705b42b5e1ceae30bd71f4877f461c2c9d46d9b49565a8ac6d662fe0495198f63395e19 WHIRLPOOL a76bde42c6f6e7bf912a109f34cc3d6d3419834b26d24e2be4004f364cb9099e4762037cc1fbbf60e0e29039f84daae3606a93c188213958afd8c0662d883a6b
diff --git a/net-mail/qpopper/files/qpopper-4.1-parallel-build.patch b/net-mail/qpopper/files/qpopper-4.1-parallel-build.patch
new file mode 100644
index 000000000000..23cc7c39cece
--- /dev/null
+++ b/net-mail/qpopper/files/qpopper-4.1-parallel-build.patch
@@ -0,0 +1,13 @@
+=== modified file 'popper/Makefile.in'
+--- popper/Makefile.in 2011-09-11 13:29:01 +0000
++++ popper/Makefile.in 2011-09-11 13:29:23 +0000
+@@ -212,7 +212,7 @@
+ -I${common_srcdir} ${common_dir}/libcommon.a \
+ ${LIBS} ${LDFLAGS}
+
+-popauth: ${POPAUTHOBJS} ${MISSING_OBJS}
++popauth: ${POPAUTHOBJS} ${MISSING_OBJS} common_library
+ ${CC} -o popauth ${POPAUTHOBJS} ${NETWORK_LIBS} \
+ ${DBM_LIBS} ${MISSING_OBJS} \
+ ${common_dir}/libcommon.a
+
diff --git a/net-mail/qpopper/files/qpopper.conf b/net-mail/qpopper/files/qpopper.conf
new file mode 100644
index 000000000000..8ce96875c520
--- /dev/null
+++ b/net-mail/qpopper/files/qpopper.conf
@@ -0,0 +1,679 @@
+#---------------------------------------------------------------------
+# Sample Qpopper 4.0 configuration file.
+#
+# This file lists all Qpopper configuration file options. To use,
+# copy the desired setting to your own configuration file, remove
+# the leading '#' and set the desired value.
+#
+#---------------------------------------------------------------------
+
+
+
+# An integer value for the number of seconds to announce in
+# the CAPA response for the server's minimum login delay.
+#
+# Default:
+#
+# set announce-login-delay =
+
+
+# An integer value for the number of days to announce in
+# the CAPA response for the server's maximum message
+# retention period.
+#
+# Default:
+#
+# set announce-expire =
+
+
+# The full path to the bulletins directory.
+#
+# Default: /var/spool/bulls
+#
+# set bulldir = "/var/spool/bulls"
+
+
+# Set TRUE to permit sessions to continue even if the
+# bulletins database can't be accessed. This permits
+# users to get their mail, but they might not see some
+# bulletins for a while, or at all.
+#
+# Only valid when compiled with '--enable-bulldb'.
+#
+# Default: false.
+#
+# set bulldb-nonfatal = false
+
+
+# Sets the maximum number of attempts to lock the bulletins
+# database. You normally do not need to adjust this. This value
+# should only be changed if you know if your system has usleep(3C)
+# or not. On systems with usleep(3C), this can be a large value
+# (the default is 75). On systems without usleep(3C), this should
+# remain small (the default is 10).
+#
+# Only valid when compiled with '--enable-bulldb'.
+#
+# Default: 75 (10 on systems without usleep(3c)).
+#
+# set bulldb-max-tries = 75
+
+
+# Sets clear text handling options. Values are:
+# o 'default' Clear text passwords are permitted for all users,
+# except those in the APOP database
+# o 'never' Clear text passwords are never permitted
+# o 'always' Clear text passwords are always permitted
+# o 'local' Clear text passwords are permitted on the local
+# (127.*.*.*) loop back interface only
+# o 'tls' Clear text passwords are permitted when TLS/SSL
+# has been negotiated for the session
+# o 'ssl' Same as tls
+#
+# The 'tls' and 'ssl' values are only valid if '--with-openssl' or
+# '--with-sslplus' was used with ./configure.
+#
+# Default: default
+#
+# set clear-text-password = default
+
+
+# Reads additional run-time options from the specified file.
+#
+# Caution. There are no restrictions on which options may
+# appear in files specified with the '-f' command-line flag
+# or the 'config-file' configuration file option in files
+# chained from -f. Be certain that the file specified with
+# '-f' or in any files it chains to are not writable by
+# users.
+#
+# Default: none
+#
+# set config-file = /etc/mail/pop/qpopper.config
+
+
+# Enables debug logging. Output is in syslog. If this option is used,
+# it should be first, so that debug records are generated for subsequent
+# options.
+#
+# Only valid if ./configure was run with '--enable-debugging'
+#
+# Default: false
+#
+# set debug = false
+
+
+# Changes uppercase user names to lowercase. This permits users to
+# configure their clients with user names in UPPER or MiXeD case.
+# They can then login, assuming their actual user name is all
+# lowercase.
+#
+# Default: false
+#
+# set downcase-user = false
+
+
+# If '--with-drac' used with ./configure, this option specifies the DRAC
+# host.
+#
+# Default: localhost
+#
+# set drac-host = localhost
+
+
+# Enables Kerberos support.
+#
+# Only valid if ./configure run with '--enable-kerberos5'.
+#
+# Default: false
+#
+# set kerberos = false
+
+
+# Specifies the Kerberos service to use (same as the compile time
+# KERBEROS_SERVICE define). The default is rcmd, although the use of
+# pop is popular.
+#
+# Only valid if ./configure run with '--enable-kerberos5'.
+#
+# Default: rcmd
+#
+# set kerberos-service = "rcmd"
+
+
+# Checks if mail lock needs to be refreshed every this many messages.
+#
+# You normally do not need to adjust this. See "Performance" in the
+# Qpopper Administrator's Guide for more information.
+#
+# Default:
+#
+# set mail-lock-check =
+
+
+# Disables the reverse lookups on client IP addresses.
+#
+# Default: true
+#
+# set reverse-lookup = true
+
+
+# Enables server mode by default. See the Qpopper Administrator's
+# Guide for more information.
+#
+# Default: false
+#
+# set server-mode = false
+
+
+# Enables statistics logging. After each session ends, a statistics
+# record is written to the log. This record resembles the following
+# example: 'stats randy 0 0 1 385 randy.example.org 192.168.2.4' and
+# has the following meaning:
+# Username: 'randy'
+# Deleted messages: 0
+# Deleted octets: 0
+# Messages left on server: 1
+# Octets left on server: 385
+# Name of client machine: 'randy.example.org'
+# IP address of client machine: '192.168.2.4'
+#
+# Default: false
+#
+# set statistics = false
+
+
+# Sets the timeout for network reads. Qpopper terminates the
+# connection with the client if no input is received in this
+# many seconds. RFC 1939 states that this timeout must be
+# 600 seconds (10 minutes). However, ideal settings in some
+# cases are between 30 and 120 seconds. In other cases the 600
+# value is best, and sometimes a value in between is better.
+#
+# Default: 120
+#
+# set timeout = 120
+
+
+# Enables debug logging if '--enable-debugging' was used with
+# ./configure. All debug and standard log records are written to
+# the specified file. If this option is used, it should be first,
+# so that debug records are generated for subsequent options.
+#
+# If used without '--enable-debugging', redirects all log messages
+# to the specified file but does not enable debug logging.
+#
+# Default: none
+#
+# set tracefile =
+
+
+# Reads additional run-time options from a file named
+# '.qpopper-options' in the user's home directory, if present.
+#
+# This file is normally owned by the user.
+#
+# Default: false
+#
+# set user-options = false
+
+
+# Reads additional run-time options from a file named
+# 'username.qpopper-options' in the spool directory.
+#
+# This file should not be owned by nor writable by the user.
+#
+# Default: false
+#
+# set spool-options = false
+
+
+# When updating the spool at the end of a session, this option
+# instructs Qpopper to rename the temporary file to the spool instead
+# of copying it. This reduces I/O at session end by a third, but is
+# likely to break programs such as biff or the shell's mail check
+# feature. Use this option only if such programs are not used. It is
+# safest to only enable this option when users do not have shell
+# access to the mail server.
+#
+# See "Performance" in the Qpopper Administrator's Guide for more
+# information.
+#
+# Default: false
+#
+# set fast-update = false
+
+
+# When set, domains are trimmed from user names before use. For
+# example, if a user named 'maida' enters her login name in her POP
+# client as 'maida@example.org', Qpopper treats this as just 'maida'.
+#
+# Default: false
+#
+# set trim-domain = false
+
+
+# Specifies TLS/SSL support. The permitted values are:
+# o 'default' TLS/SSL is not supported
+# o 'none' Same as default
+# o 'stls' Enables support for the STLS command. This
+# permits TLS/SSL negotiations on the
+# standard (or any) port, allowing the same
+# port to be used by TLS/SSL and regular
+# clients.
+# o 'alternate-port' Enables alternate-port TLS/SSL. Some older
+# clients require this. (The usual port for
+# alternate-port TLS/SSL with pop is 995.)
+#
+# Only valid when '--with-openssl' or '--with-sslplus' used with
+# ./configure
+#
+# Default: default
+#
+# set tls-support = default
+
+
+# Specifies the permitted cipher suites. See the OpenSSL documentation
+# for syntax. You normally do not need to set this.
+#
+# Only valid when '--with-openssl' used with ./configure
+#
+# Default:
+#
+# set tls-cipher-list =
+
+
+# Restricts the version of TLS/SSL recognized in session negotiations.
+# You normally do not need to set this. Supported values are:
+# o 'default' (same as SSLv23)
+# o 'SSLv2' Forces Qpopper only to understand SSLv2 client hello
+# messages.
+# o 'SSLv3' Forces Qpopper only to understand SSLv3 client hello
+# messages. This especially means that it does not
+# understand SSLv2 client hello messages, which are
+# widely used for compatibility reasons.
+# o 'TLSv1' Forces Qpopper only to understand TLSv1 client hello
+# messages. This especially means that it does not
+# understand SSLv2 client hello messages, which are
+# widely used for compatibility reasons. It also does
+# not understand SSLv3 client hello messages.
+# o 'SSLv23' Allows Qpopper to understand SSLv2, SSLv3, and TLSv1
+# client hello messages. This is the best choice when
+# compatibility is a concern. This is the default
+# value.
+# o 'all' (same as SSLv23)
+#
+# Only valid when '--with-openssl' used with ./configure
+#
+# Default: default
+#
+# set tls-version = default
+
+
+# Specifies the file containing the server's TLS/SSL certificate and
+# encrypted private key.
+#
+# Only valid if '--with-sslplus' used with ./configure.
+#
+# Default: none
+#
+# set tls-identity-file =
+
+
+# Specifies the passphrase to decrypt the server's private key (in the
+# identify file).
+#
+# Only valid if '--with-sslplus' used with ./configure.
+#
+# Default: none
+#
+# set tls-passphrase =
+
+
+# Specifies the file which contains the server's TLS/SSL certificate.
+# This file may also contain the server's unencrypted private key.
+#
+# Only valid if '--with-openssl' used with ./configure
+#
+# Default: none
+#
+#
+# set tls-server-cert-file = /etc/mail/certs/cert.pem
+
+
+# Specifies a file which contains the server's TLS/SSL private key.
+# Note: This private key must not be encrypted.
+#
+# If the private key is contained in the same file as the certificate
+# (as specified with tls-server-cert-file), you do not need to set
+# this option.
+#
+# Only valid if '--with-openssl' used with ./configure
+#
+# Default: none
+#
+# set tls-private-key-file =
+
+
+# When set, Qpopper writes a log record at the end of a session
+# containing the elapsed time for the session authentication,
+# initialization. and cleanup.
+#
+# Default: false
+#
+# set timing = false
+
+
+# When set, Qpopper checks for old .user.pop files in old locations
+# when hash-spool or homedirmail is used. When reset, Qpopper skips
+# this check, which speeds things up.
+#
+# Default: true
+#
+# set check-old-spool-loc = true
+
+
+# When set, Qpopper checks for and creates if needed the hashed spool
+# directories. When reset, Qpopper doesn't check for or create the
+# hashed spool directories. Set to false if you precreate the
+# directories.
+#
+# Default: true
+#
+# set check-hash-dir = true
+
+
+# When set, Qpopper checks for expired passwords (if the platform
+# permits). When reset, Qpopper omits this check.
+#
+# Default: true
+#
+# set check-password-expired = true
+
+
+# Determines whether Qpopper updates the read/unread status of
+# messages (a feature relied on by some mail clients). Also
+# determines if Qpopper saves the message's unique identifier
+# (UID) in the spool.
+#
+# When reset, it forces the UID for every message to be
+# recalculated, using more CPU but potentially less I/O.
+#
+# See the "Performance" section of the Qpopper Administrator's Guide
+# for more information.
+#
+# Default: true
+#
+# set update-status-headers = true
+
+
+# Determines whether Qpopper enters update state when a session
+# aborts. Resetting this option causes Qpopper to ignore any
+# deletions if the session is aborted.
+#
+# Note that RFC 1939, section 6 prohibits the default behavior,
+# but experience showed that otherwise users on noisy lines were
+# often unable to delete their mail. Reset this option to inhibit
+# the default behavior, and obey RFC 1939, but watch for users who
+# download the same messages over and over, or whose spools fill up.
+#
+# Default: true
+#
+# set update-on-abort = true
+
+
+# When set, Qpopper automatically and unconditionally deletes messages
+# that have been downloaded using the RETR command (the normal command
+# for accessing messages).
+#
+# Caution: This option could result in lost mail. Be sure to
+# inform your users that the option is in effect before enabling.
+#
+# Default: false
+#
+# set auto-delete = false
+
+
+# When set, Qpopper shows bulletins to users by groups (the group name
+# is the second dot-separated element in each bulletin's name). See
+# "Using Bulletins" in the Qpopper Administrator's Guide for more
+# information. Use a group name of 'ALL' for all users.
+#
+# Default: false
+#
+# set group-bulletins = false
+
+
+# When set to a 1 or 2, the subdirectory for the mail spools is
+# determined from the user name by either (1) hashing the first four
+# characters or (2) by using directories equal to the first letter and
+# the second letter (if any). For example, if the spool directory is
+# '/var/mail', the spool file for user 'maida' would be:
+# '/var/mail/maida' hash-spool = 0
+# '/var/mail/o/maida' hash-spool = 1
+# '/var/mail/m/a/maida' hash-spool = 2
+#
+# See the "Performance" section of the Qpopper Administrator's Guide
+# for more information.
+#
+# Default: 0
+#
+# set hash-spool = 0
+
+
+# To have the user's home directory be the spool location, set this
+# option to be the correct file name for the spool.
+#
+# Default: none
+#
+# set home-dir-mail = ".mail"
+
+
+# When set, instructs Qpopper to generate message unique identifiers
+# (UIDs) using old (pre-3.x) style encoding. This is useful only if
+# you also set 'update-status-headers' to false, have existing users
+# with old (pre-3.x) spool files, and you want to keep the UIDs the
+# same.
+#
+# Default: false
+#
+# set old-style-uid = false
+
+
+# When set, Qpopper checks for and hides status messages created by
+# University of Washington software.
+#
+# Default: false
+#
+# set UW-kluge = false
+
+
+# When set, Qpopper keeps (does not delete) the '.user.pop' file (the
+# temporary drop file). Normally this file is deleted when the
+# session ends. Some sites like to retain it to determine the last
+# time a user has accessed his or her mail.
+#
+# Default: false
+#
+# set keep-temp-drop = false
+
+
+# When set, causes server mode to be on for users who are members of
+# the specified group. See the "Enabling Server Mode" and
+# "Performance" sections of the Qpopper Administrator's Guide for more
+# information.
+#
+# Default: none
+#
+# set group-server-mode =
+
+
+# When set, causes server mode to be off for users who are members of
+# the specified group. See the "Enabling Server Mode" and
+# "Performance" sections of the Qpopper Administrator's Guide for more
+# information.
+#
+# Default: none
+#
+# set group-no-server-mode =
+
+
+# Specifies a file that permits only users listed in the file to have
+# Qpopper access. The format is a list of user names, one per line.
+#
+# Default: none
+#
+# set auth-file =
+
+
+# Specifies a file that denies access to users listed in the file.
+# The format is a list of user names, one per line.
+#
+# Default: none
+#
+# set nonauth-file =
+
+
+# Set this option if you don't want Qpopper to display its version in
+# the POP protocol banner or CAPA IMPLEMENTATION response of
+# unauthenticated users.
+# Some sites believe this improves security since it avoids advertising
+# that an old version (perhaps with known vulnerabilities) is being
+# used. Others feel is makes the site more likely to be attacked,
+# since it also avoids advertising when running a secure version.
+#
+# Default: false
+#
+# set shy = false
+
+
+# Set this to the full path to sendmail or other such program used to
+# submit new messages. Qpopper uses this to implement XTND XMIT.
+#
+# The default is determined at compile time.
+#
+#
+# set mail-command = /usr/sbin/sendmail
+
+
+# Set this to the full path to the mail spool directory.
+#
+# The default is determined at compile time.
+#
+# set spool-dir = /var/spool/mail
+
+
+# If you do not want '.user.pop' (temporary drop files) to be in the
+# spool directory, set this to the full path to the directory to be
+# used for temp drop files. Note that use of /tmp is not recommended,
+# because a system reboot will wipe out the files. This could cause
+# lost mail.
+#
+# Default: spool directory
+#
+# set temp-dir =
+
+
+# The name of the temporary drop files. You should not normally set
+# this option.
+#
+# Default: ".%s.pop"
+#
+# set temp-name = ".%s.pop"
+
+
+# If you do not want user cache files to be in the same directory as
+# temporary drop files, set this to the full path to the directory for
+# cache files. Note that use of /tmp is not recommended, because a
+# system reboot wipes out the files.
+#
+# Default: temp-dir
+#
+# set cache-dir =
+
+
+# The name of the cache files. You should not normally set this
+# option.
+#
+# Default: ".%s.cache"
+#
+# set cache-name = ".%s.cache"
+
+
+# Specifies the maximum number of old bulletins seen by new users.
+#
+# Default: 1
+#
+# set max-bulletins = 1
+
+
+# When set, Qpopper uses a method of opening lock files that may work
+# over NFS. This has not been thoroughly tested, however.
+#
+# Default: false
+#
+# set no-atomic-open = false
+
+
+# Qpopper sends network output to client in small chunks (for example,
+# line-by-line when sending a message). By default, Qpopper
+# aggregates data to be sent to clients in large chunks. This may be
+# faster or slower, depending on specifics of both the client and
+# server hardware and networking stacks as wel as network elements in
+# between (such as routers). Also, some networking stacks do their
+# own aggregation.
+#
+# Under congested network conditions, larger packets increase the
+# incidence of lost packets and thus client or server timeouts,
+# leading to "POP timeout" or "EOF" errors.
+#
+# When TLS/SSL is in effect, smaller packets increase the overhead
+# needed to send data, which may result in worse performance.
+#
+# You can adjust the Qpopper behavior by setting this option. The
+# values are:
+# o 'default' Always send large chunks
+# o 'always' Same as 'default'
+# o 'never' Never aggregate data into large chunks
+# o 'tls' Only aggregate data into large chunks when TLS/SSL
+# has been negotiated for the session
+# o 'ssl' Same as 'tls'
+#
+# Default: default
+#
+# set chunky-writes = default
+
+
+# Specifies the log facility that Qpopper uses.
+#
+# Note that this does not apply to popauth, nor to the daemon in
+# standalone mode. These continue to use the compile-time default.
+#
+# Values are:
+# o 'mail' Qpopper logs to LOG_MAIL facility.
+# o 'local0' Qpopper logs to LOG_LOCAL0 facility.
+# o 'local1' Qpopper logs to LOG_LOCAL1 facility.
+# o 'local2' Qpopper logs to LOG_LOCAL2 facility.
+# o 'local3' Qpopper logs to LOG_LOCAL3 facility.
+# o 'local4' Qpopper logs to LOG_LOCAL4 facility.
+# o 'local5' Qpopper logs to LOG_LOCAL5 facility.
+# o 'local6' Qpopper logs to LOG_LOCAL6 facility.
+# o 'local7' Qpopper logs to LOG_LOCAL7 facility.
+#
+# Default: determined at compile time, usually LOG_LOCAL0 or
+# LOG_MAIL, depending on the operating system.
+#
+# set log-facility = local1
+
+
+# When set, Qpopper logs successful authentications using the
+# specified string. Within the string, an occurrence of '%0' is
+# replaced with the Qpopper version, '%1' with the user name, '%2'
+# with the user's host name, and '%3' with the user's IP address.
+#
+# Default: none, unless '--enable-log-login' used with ./configure,
+# in which case "(v%0) POP login by user /"%1/" at (%2) %3" is used.
+#
+# set log-login = "(v%0) POP login by user /"%1/" at (%2) %3"
+
+
diff --git a/net-mail/qpopper/files/qpopper.init.d b/net-mail/qpopper/files/qpopper.init.d
new file mode 100644
index 000000000000..45e55148ac10
--- /dev/null
+++ b/net-mail/qpopper/files/qpopper.init.d
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting qpopper"
+ start-stop-daemon --start --quiet --background \
+ --exec /usr/sbin/popper -- -f /etc/qpopper.conf
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping qpopper"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/popper
+ eend $?
+}
diff --git a/net-mail/qpopper/files/qpopper.xinetd b/net-mail/qpopper/files/qpopper.xinetd
new file mode 100644
index 000000000000..16cc899f42cc
--- /dev/null
+++ b/net-mail/qpopper/files/qpopper.xinetd
@@ -0,0 +1,16 @@
+# default: off
+# description: The POP3 service allows remote users to access their mail \
+# using an POP3 client such as Netscape Communicator, mutt, \
+# or fetchmail.
+service pop-3
+{
+ socket_type = stream
+ wait = no
+ user = root
+ port = 110
+ server = /usr/sbin/popper
+ server_args = -f /etc/qpopper.conf
+ log_on_success += USERID
+ log_on_failure += USERID
+ disable = yes
+}
diff --git a/net-mail/qpopper/metadata.xml b/net-mail/qpopper/metadata.xml
new file mode 100644
index 000000000000..6c8e884f1b7b
--- /dev/null
+++ b/net-mail/qpopper/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>net-mail@gentoo.org</email>
+ <name>Net-Mail</name>
+ </maintainer>
+ <use>
+ <flag name="apop">Enables the pop.auth file in /etc/pop.auth</flag>
+ <flag name="drac">Enables DRAC support</flag>
+ <flag name="mailbox">Enables mail spool file is in home directory ~/Mailbox</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-mail/qpopper/qpopper-4.1.0.ebuild b/net-mail/qpopper/qpopper-4.1.0.ebuild
new file mode 100644
index 000000000000..e9b1d4e5b43e
--- /dev/null
+++ b/net-mail/qpopper/qpopper-4.1.0.ebuild
@@ -0,0 +1,123 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+#inherit eutils flag-o-matic ssl-cert
+inherit eutils ssl-cert user
+
+MY_P=${PN}${PV}
+
+DESCRIPTION="A POP3 Server"
+HOMEPAGE="http://www.eudora.com/products/unsupported/qpopper/index.html"
+SRC_URI="ftp://ftp.qualcomm.com/eudora/servers/unix/popper/${MY_P}.tar.gz"
+
+LICENSE="qpopper ISOC-rfc"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug drac gdbm mailbox pam ssl xinetd apop"
+
+DEPEND="virtual/mta
+ >=net-mail/mailbase-0.00-r8
+ xinetd? ( virtual/inetd )
+ gdbm? ( sys-libs/gdbm )
+ drac? ( mail-client/drac )
+ pam? ( >=sys-libs/pam-0.72 )
+ ssl? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ use apop && enewuser pop
+}
+
+src_prepare() {
+ # Test dirs are full of binary craft. Drop it.
+ rm -rf ./mmangle/test || die
+ epatch "${FILESDIR}"/${PN}-4.1-parallel-build.patch
+ sed -i -e 's:-o popauth:& ${LDFLAGS}:' popper/Makefile.in || die
+}
+
+src_configure() {
+ econf \
+ $(use_enable !xinetd standalone) \
+ $(use_enable debug debugging) \
+ $(use_with ssl openssl) \
+ $(use_with gdbm) \
+ $(use_with pam pam pop3) \
+ $(use_enable apop apop /etc/pop.auth) \
+ $(use_enable mailbox home-dir-mail Mailbox) \
+ $(use_with drac) \
+ --enable-shy \
+ --enable-popuid=pop \
+ --enable-log-login \
+ --enable-specialauth \
+ --enable-spool-dir=/var/spool/mail \
+ --enable-log-facility=LOG_MAIL
+
+ if ! use gdbm; then
+ sed -i -e 's|#define HAVE_GDBM_H|//#define HAVE_GDBM_H|g' config.h || die "sed failed"
+ fi
+}
+
+src_install() {
+ if use apop; then
+ dosbin popper/popauth
+ fowners pop:root /usr/sbin/popauth
+ fperms 4110 /usr/sbin/popauth
+ doman man/popauth.8
+ fi
+
+ dosbin popper/popper
+ doman man/popper.8
+
+ insinto /etc
+ doins "${FILESDIR}/qpopper.conf"
+
+ if use ssl; then
+ sed -i -e 's:^# \(set tls-server-cert-file\).*:\1 = /etc/mail/certs/cert.pem:' \
+ -e 's:^# \(set tls-support\).*$:\1 = stls:'\
+ "${D}/etc/qpopper.conf"
+ fi
+
+ if use xinetd; then
+ insinto /etc/xinetd.d
+ newins "${FILESDIR}/qpopper.xinetd" pop-3
+ else
+ newinitd "${FILESDIR}/qpopper.init.d" qpopper
+ fi
+
+ dodoc README doc/{Release.Notes,Changes}
+
+ docinto rfc
+ dodoc doc/rfc*.txt
+ dohtml doc/LMOS-FAQ.html
+
+ insinto /usr/share/doc/${PF}
+ doins GUIDE.pdf
+}
+
+pkg_postinst () {
+ if use ssl; then
+ install_cert /etc/mail/certs/cert
+ chown root:mail /etc/mail/certs
+ chmod 660 /etc/mail/certs
+ fi
+ if use apop; then
+ elog "To authenticate the users with APOP "
+ elog "you have to follow these steps:"
+ elog ""
+ elog "1) initialize the authentication database:"
+ elog " # popauth -init"
+ elog "2) new users can be added by root:"
+ elog " # popauth -user <user>"
+ elog " or removed:"
+ elog " # popauth -delete <user>"
+ elog " Other users can add themeselves or change their"
+ elog " password with the command popauth"
+ elog "3) scripts or other non-interactive processes can add or change"
+ elog " the passwords with the following command:"
+ elog " # popauth -user <user> <password>"
+ elog ""
+ fi
+}