Dovecot is an open source IMAP and POP3 email server for Linux/UNIX-like
systems, written with security primarily in mind. Dovecot is an excellent
choice for both small and large installations. It's fast, simple to set up,
requires no special administration and it uses very little memory.
Dovecot is high-performing, self-optimizing, self-healing, and easily
extensible. It includes IMAP4rev1 and POP3 support. IPv6, SSL and TLS are
supported. It supports multiple commonly used IMAP extensions, including SORT,
THREAD and IDLE.
WWW: http://www.dovecot.org/

Reason:
dovecot-sieve has been updated to a new implementation compatible with
dovecot 1.2.x. For details of what this means please refer to:
http://wiki.dovecot.org/LDA/Sieve/Dovecot#Migration_from_CMUSieve

2009-08-15

Affects: users of mail/dovecot

Author: wxs@FreeBSD.org

Reason:
Dovecot has been updated to version 1.2.3. The configuration file has
changed significantly. Please see http://wiki.dovecot.org/Upgrading/1.2
for details of what this means.

2008-03-06

Affects: users of mail/dovecot

Author: ehaupt@FreeBSD.org

Reason:
The update to version 1.0.12 will require manual change to the active
configuration file.
mail_extra_groups setting was commonly used insecurely. This setting is now
deprecated. Most users should switch to using mail_privileged_group setting,
but if you really need the old functionality use mail_access_groups instead.

Port Moves

port moved here from mail/dovecot2 on 2017-08-07REASON: Renamed to mail/dovecot

port moved here from mail/dovecot-devel on 2009-12-08REASON: Non-devel version is newer

Add back the LIBWRAP option, but default it to on
eugen noted that it's not uncommon for people to build WITHOUT_TCP_WRAPPERS,
and forcing the libwrap option gives them no recourse. So I'm adding back
the libwrap option, but defaulting it to on now---people who've compiled
WITHOUT_TCP_WRAPPERS will know how to build a custom dovecot.

Force kqueue and libwrap support, and install license files
I don't know any reason that the kqueue or libwrap options should be
disabled, so remove them from OPTIONS and enable their functionality
for everyone. Also, remove the :3 from USES=sqlite, because that
happens anyway.
Add the license files with LICENSE_FILE_*, rather than putting them
in DOCSDIR.
Sort plist.
PORTREVISION bump for above changes.

Update dovecot to 2.2.33, and bump pigeonhole.
* doveadm director commands wait for the changes to be visible in the
whole ring before they return. This is especially useful in testing.
* Environments listed in import_environment setting are now set or
preserved when executing standalone commands (e.g. doveadm)
+ doveadm proxy: Support proxying logs. Previously the logs were
visible only in the backend's logs.
+ Added %{if}, see https://wiki2.dovecot.org/Variables#Conditionals
+ Added a new notify_status plugin, which can be used to update dict
with current status of a mailbox when it changes. See
https://wiki2.dovecot.org/Plugins/NotifyStatus
+ Mailbox list index can be disabled for a namespace by appending
":LISTINDEX=" to location setting.

Update dovecot to 2.2.32, and bump pigeonhole.
* imapc: Info-level line is logged every time when successfully
connected to the remote server. This includes local/remote IP/port,
which can be useful for matching against external logs.
* config: Log a warning if plugin { key=no } is used explicitly.
v2.3 will support "no" properly in plugin settings, but for now
any value at all for a boolean plugin setting is treated as "yes",
even if it's written as explicit "no". This change will now warn
that it most likely won't work as intended.
+ Various optimizations to avoid accessing files/directories when it's
not necessary. Especially avoid accessing mail root directories when
INDEX directories point to a different filesystem.
+ mail_location can now include ITERINDEX parameter. This tells Dovecot

Bump more ports that depend on libsqlite3.so:
- ports that set USE_SQLITE with the *_USE option helper
- ports that depend on libsqlite3 indirectly as reported by pkg rquery
Approved by: portmgr (implicit)

In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().
In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.

- Mark as broken if manage sieve option is selected.
The mail/dovecot-managesieve port needs to be updated to work with the
new version of dovecot.
Submitted by: Jesco Freund <jesco freund at googlemail.com> (private mail)

- Add a comment about the relationship between this port and
mail/dovecot-antispam. If dovecot is upgraded and dovecot-antispam is not
rebuilt then dovecot-antispam fails.
PR: ports/135311
Submitted by: Harlan Stenn <harlan@everett.org>

Version update to dovecot-1.1.7 and dovecot-1.1.7-managesieve-0.10.4
'statedir' set to /var/db/dovecot instead of defaulting to /var/lib/dovecot
Users should manually rm -rf /var/lib/dovecot
Removed stale code from files/pkg-deinstall.in and files/pkg-install.in
Reworked files/dovecot.sh.in to accept dovecot_config and handle creating
and tearing down runtime directories upon startup and shutdown.
Rediffed files/patch-dovecot-example.conf to clean up line offsets.
PR: ports/129230
Submitted by: Yarema <yds@CoolRat.org> (maintainer)

- Fix user permissions on startup.
If a user defines login_user to be something other than 'dovecot' then
dovecot will throw a warning upon startup. The new code extracts what
login_user is defined as and sets the directory permissions
accordingly. If login_user is undefined in the config then it behaves
the same as before.
Submitted by: Yarema <yds@coolrat.org> (maintainer)
Approved by: portmgr (linimon)

- Update to 1.1.3
- Add support for Berkeley DB used by the expire plugin.
- Install more DOCS.
- Move the SCRIPT_ENV substitutions to SUB_FILES
otherwise DOVECOT_[UG]ID settings do not propagate to the binary package.
- Change from .if defined(WITHOUT_*)to .if defined(WITH_*) &&
!defined(WITHOUT_*)
- Make the PROTOCOLS substitution include all the protocols which are built
into the example config file.
- Clean up patch-dovecot-example.conf and perform some post-patch processing
to reflect more closely how this port actually installs. This is necessary
because of the optional ManageSieve patch.
- Modify files/dovecot.sh.in to ensure runtime directories exist with correct
permissions.
- Rework the install so all the example config files get installed into
EXAMPLESDIR as per hier(7) independent of the NOPORTDOCS tunable. Install
the relevant config files into etc/ if no prior version exists.
- Ensure that 'make install' and pkg_add(1) produce identical installs and
that everything is accounted for in the PLIST.
PR: ports/127200
Submitted by: Yarema <yds@CoolRat.org> (maintainer)

Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.
Specifically, newer autoconf (> 2.13) has different semantic of the
configure target. In short, one should use --build=CONFIGURE_TARGET
instead of CONFIGURE_TARGET directly. Otherwise, you will get a warning
and the old semantic may be removed in later autoconf releases.
To workaround this issue, many ports hack the CONFIGURE_TARGET variable
so that it contains the ``--build='' prefix.
To solve this issue, under the fact that some ports still have
configure script generated by the old autoconf, we use runtime detection
in the do-configure target so that the proper argument can be used.
Changes to Mk/*:
- Add runtime detection magic in bsd.port.mk