1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Secure IMAP and POP3 server
8 HOMEPAGE= https://www.dovecot.org/
12 SITES[main]= https://dovecot.org/releases/2.3/
13 DISTFILE[1]= dovecot-2.3.21.tar.gz:main
15 SPKGS[standard]= complete
21 OPTIONS_AVAILABLE= none
22 OPTIONS_STANDARD= none
24 BUILD_DEPENDS= krb5:dev:standard
25 BUILDRUN_DEPENDS= krb5:primary:standard
26 clucene:single:standard
28 USERS= dovecot dovenull
29 GROUPS= dovecot dovenull
30 USERGROUP_SPKG= primary
32 USES= cpe iconv libtool pkgconfig ssl sqlite lz4 mbsdfix
34 LICENSE= MIT:primary LGPL21:primary
35 LICENSE_TERMS= primary:{{WRKSRC}}/COPYING
36 LICENSE_FILE= MIT:{{WRKSRC}}/COPYING.MIT
37 LGPL21:{{WRKSRC}}/COPYING.LGPL
40 FPC_EQUIVALENT= mail/dovecot
43 CONFIGURE_ARGS= --localstatedir=/var
44 --with-statedir=/var/db/dovecot
64 INSTALL_TARGET= install-strip
65 INSTALL_REQ_TOOLCHAIN= yes
66 PLIST_SUB= REQUIRE="LOGIN"
67 RC_SUBR= dovecot:primary
68 SUB_FILES= pkg-message-primary
70 CPPFLAGS= -I{{OPENSSLINC}}
71 LDFLAGS= -L{{OPENSSLLIB}}
72 VAR_OPSYS[dragonfly]= CONFIGURE_ENV=i_cv_fd_passing=yes
76 -e 's|/usr/bin|${LOCALBASE}/bin|g' \
77 -e 's|/usr/local|${PREFIX}|g' \
78 ${WRKSRC}/src/plugins/fts/decode2text.sh
79 ${REINPLACE_CMD} -e 's,/etc/dovecot,${PREFIX}/etc/dovecot,g; \
80 s,sysconfdir=/etc,sysconfdir=${PREFIX}/etc,g' \
81 ${WRKSRC}/doc/example-config/*.conf ${WRKSRC}/doc/example-config/conf.d/*
82 ${REINPLACE_CMD} -e '/^LIBS =/s/$$/ @LTLIBICONV@/' \
83 ${WRKSRC}/src/lib-mail/Makefile.in
84 # Install the sample config files into ETCDIR/example-config/
85 ${REINPLACE_CMD} -e '/^exampledir =/s|\$$(docdir)|${PREFIX}/etc/dovecot|' \
86 ${WRKSRC}/doc/example-config/Makefile.in \
87 ${WRKSRC}/doc/example-config/conf.d/Makefile.in
89 [FILE:531:descriptions/desc.primary]
90 Dovecot is an open source IMAP and POP3 email server for Linux/UNIX-like
91 systems, written with security primarily in mind. Dovecot is an excellent
92 choice for both small and large installations. It's fast, simple to set up,
93 requires no special administration and it uses very little memory.
95 Dovecot is high-performing, self-optimizing, self-healing, and easily
96 extensible. It includes IMAP4rev1 and POP3 support. IPv6, SSL and TLS are
97 supported. It supports multiple commonly used IMAP extensions, including SORT,
102 05b11093a71c237c2ef309ad587510721cc93bbee6828251549fc1586c36502d 7837242 dovecot-2.3.21.tar.gz
105 [FILE:3206:manifests/plist.primary]
112 etc/dovecot/example-config/
113 dovecot-dict-auth.conf.ext
114 dovecot-dict-sql.conf.ext
115 dovecot-ldap.conf.ext
116 dovecot-oauth2.conf.ext
119 etc/dovecot/example-config/conf.d/
136 auth-checkpassword.conf.ext
141 auth-passwdfile.conf.ext
148 lib02_imap_acl_plugin.so
149 lib02_lazy_expunge_plugin.so
150 lib05_mail_crypt_acl_plugin.so
151 lib05_pop3_migration_plugin.so
152 lib10_last_login_plugin.so
153 lib10_mail_crypt_plugin.so
154 lib10_quota_plugin.so
155 lib11_imap_quota_plugin.so
156 lib11_trash_plugin.so
157 lib15_notify_plugin.so
158 lib20_charset_alias_plugin.so
160 lib20_listescape_plugin.so
161 lib20_mail_log_plugin.so
162 lib20_mailbox_alias_plugin.so
163 lib20_notify_status_plugin.so
164 lib20_push_notification_plugin.so
165 lib20_quota_clone_plugin.so
166 lib20_replication_plugin.so
167 lib20_var_expand_crypt.so
168 lib20_virtual_plugin.so
170 lib21_fts_lucene_plugin.so
171 lib21_fts_squat_plugin.so
172 lib30_imap_zlib_plugin.so
173 lib90_old_stats_plugin.so
174 lib95_imap_old_stats_plugin.so
175 lib99_welcome_plugin.so
176 libdovecot-compression.so.0
177 libdovecot-compression.so.0.0.0
178 libdovecot-dsync.so.0
179 libdovecot-dsync.so.0.0.0
181 libdovecot-fts.so.0.0.0
183 libdovecot-lda.so.0.0.0
184 libdovecot-login.so.0
185 libdovecot-login.so.0.0.0
187 libdovecot-sql.so.0.0.0
188 libdovecot-storage.so.0
189 libdovecot-storage.so.0.0.0
195 libssl_iostream_openssl.so
197 lib20_auth_var_expand_crypt.so
200 lib10_doveadm_acl_plugin.so
201 lib10_doveadm_quota_plugin.so
202 lib20_doveadm_fts_lucene_plugin.so
203 lib20_doveadm_fts_plugin.so
204 libdoveadm_mail_crypt_plugin.so
205 lib/dovecot/old-stats/
248 share/dovecot/stopwords/
263 @postunexec echo "If you are removing dovecot2 permanently, you should 'rm -rf /var/db/dovecot' to clear out any remaining data."
266 [FILE:12307:manifests/plist.dev]
282 auth-client-connection.h
283 auth-client-interface.h
284 auth-client-private.h
288 auth-master-connection.h
292 auth-request-handler-private.h
293 auth-request-handler.h
295 auth-request-var-expand.h
310 charset-utf8-private.h
317 config-parser-private.h
341 dict-transaction-memory.h
350 doveadm-mailbox-list-iter.h
351 doveadm-print-private.h
357 dsasl-client-private.h
363 event-filter-parser.h
364 event-filter-private.h
399 fts-tokenizer-common.h
400 fts-tokenizer-generic-private.h
401 fts-tokenizer-private.h
419 http-client-private.h
425 http-message-parser.h
427 http-request-parser.h
429 http-response-parser.h
431 http-server-private.h
451 imap-login-commands.h
452 imap-login-settings.h
471 imap-urlauth-backend.h
472 imap-urlauth-connection.h
474 imap-urlauth-private.h
478 imapc-client-private.h
494 index-search-private.h
495 index-search-result.h
501 index-thread-private.h
511 iostream-rawlog-private.h
513 iostream-ssl-private.h
522 istream-attachment-connector.h
523 istream-attachment-extractor.h
525 istream-binary-converter.h
533 istream-file-private.h
537 istream-header-filter.h
582 mail-index-alloc-cache.h
586 mail-index-sync-private.h
587 mail-index-transaction-private.h
589 mail-index-view-private.h
593 mail-search-mime-build.h
594 mail-search-mime-register.h
596 mail-search-parser-private.h
598 mail-search-register.h
602 mail-storage-private.h
603 mail-storage-service.h
604 mail-storage-settings.h
607 mail-transaction-log-private.h
608 mail-transaction-log-view-private.h
609 mail-transaction-log.h
613 mailbox-attribute-internal.h
614 mailbox-attribute-private.h
617 mailbox-list-delete.h
619 mailbox-list-index-storage.h
620 mailbox-list-index-sync.h
622 mailbox-list-iter-private.h
624 mailbox-list-maildir.h
625 mailbox-list-notify-tree.h
626 mailbox-list-notify.h
627 mailbox-list-private.h
628 mailbox-list-subscriptions.h
631 mailbox-match-plugin.h
632 mailbox-recent-flags.h
633 mailbox-search-result-private.h
635 mailbox-uidvalidity.h
637 maildir-filename-flags.h
650 master-service-private.h
651 master-service-settings-cache.h
652 master-service-settings.h
653 master-service-ssl-settings.h
669 mdbox-storage-rebuild.h
672 mech-digest-md5-private.h
680 message-binary-part.h
683 message-header-decode.h
684 message-header-encode.h
685 message-header-hash.h
686 message-header-parser.h
690 message-part-serialize.h
703 notify-plugin-private.h
711 ostream-file-private.h
712 ostream-final-trickle.h
745 push-notification-drivers.h
746 push-notification-event-flagsclear.h
747 push-notification-event-flagsset.h
748 push-notification-event-mailboxcreate.h
749 push-notification-event-mailboxdelete.h
750 push-notification-event-mailboxrename.h
751 push-notification-event-mailboxsubscribe.h
752 push-notification-event-mailboxunsubscribe.h
753 push-notification-event-message-common.h
754 push-notification-event-messageappend.h
755 push-notification-event-messageexpunge.h
756 push-notification-event-messagenew.h
757 push-notification-event-messageread.h
758 push-notification-event-messagetrash.h
759 push-notification-events-rfc5423.h
760 push-notification-events.h
761 push-notification-plugin.h
762 push-notification-triggers.h
763 push-notification-txn-mbox.h
764 push-notification-txn-msg.h
777 restrict-process-size.h
800 smtp-client-command.h
801 smtp-client-connection.h
802 smtp-client-private.h
803 smtp-client-transaction.h
805 smtp-command-parser.h
812 smtp-server-private.h
814 smtp-submit-settings.h
833 submission-backend-relay.h
836 submission-commands.h
838 submission-recipient.h
839 submission-settings.h
843 test-mail-storage-common.h
862 lib02_imap_acl_plugin.a
863 lib02_lazy_expunge_plugin.a
864 lib05_mail_crypt_acl_plugin.a
865 lib05_pop3_migration_plugin.a
866 lib10_last_login_plugin.a
867 lib10_mail_crypt_plugin.a
869 lib11_imap_quota_plugin.a
871 lib15_notify_plugin.a
872 lib20_charset_alias_plugin.a
874 lib20_listescape_plugin.a
875 lib20_mail_log_plugin.a
876 lib20_mailbox_alias_plugin.a
877 lib20_notify_status_plugin.a
878 lib20_push_notification_plugin.a
879 lib20_quota_clone_plugin.a
880 lib20_replication_plugin.a
881 lib20_var_expand_crypt.a
882 lib20_virtual_plugin.a
884 lib21_fts_lucene_plugin.a
885 lib21_fts_squat_plugin.a
886 lib30_imap_zlib_plugin.a
887 lib90_old_stats_plugin.a
888 lib95_imap_old_stats_plugin.a
889 lib99_welcome_plugin.a
892 libdovecot-compression.a
893 libdovecot-compression.so
905 libdovecot-storage.so
911 libssl_iostream_openssl.a
913 lib20_auth_var_expand_crypt.a
916 lib10_doveadm_acl_plugin.a
917 lib10_doveadm_quota_plugin.a
918 lib20_doveadm_fts_lucene_plugin.a
919 lib20_doveadm_fts_plugin.a
920 libdoveadm_mail_crypt_plugin.a
921 lib/dovecot/old-stats/
924 share/aclocal/dovecot.m4
927 [FILE:1014:manifests/plist.man]
937 doveadm-deduplicate.1.gz
938 doveadm-director.1.gz
944 doveadm-force-resync.1.gz
950 doveadm-instance.1.gz
953 doveadm-mailbox-cryptokey.1.gz
963 doveadm-replicator.1.gz
974 dovecot-sysreport.1.gz
977 share/man/man7/doveadm-search-query.7.gz
980 [FILE:6949:manifests/plist.docs]
986 solr-config-7.7.0.xml
987 solr-schema-7.7.0.xml
990 share/doc/dovecot/wiki/
992 AixPluginsSupport.txt
993 AttachmentIndicator.txt
994 AuthDatabase.CheckPassword.txt
995 AuthDatabase.Dict.txt
996 AuthDatabase.LDAP.AuthBinds.txt
997 AuthDatabase.LDAP.PasswordLookups.txt
998 AuthDatabase.LDAP.Userdb.txt
999 AuthDatabase.LDAP.txt
1000 AuthDatabase.Lua.txt
1001 AuthDatabase.Passwd.txt
1002 AuthDatabase.PasswdFile.txt
1003 AuthDatabase.SQL.txt
1004 AuthDatabase.VPopMail.txt
1006 Authentication.Caching.txt
1007 Authentication.Kerberos.txt
1008 Authentication.MasterUsers.txt
1009 Authentication.Mechanisms.DigestMD5.txt
1010 Authentication.Mechanisms.NTLM.txt
1011 Authentication.Mechanisms.Winbind.txt
1012 Authentication.Mechanisms.txt
1013 Authentication.MultipleDatabases.txt
1014 Authentication.PasswordSchemes.txt
1015 Authentication.Penalty.txt
1016 Authentication.Policy.txt
1017 Authentication.RestrictAccess.txt
1019 BasicConfiguration.txt
1021 Clients.NegativeUIDs.txt
1025 Debugging.Authentication.txt
1026 Debugging.ProcessTracing.txt
1027 Debugging.Rawlog.txt
1028 Debugging.Thunderbird.txt
1030 Design.AuthProcess.txt
1031 Design.AuthProtocol.txt
1035 Design.DoveadmProtocol.HTTP.txt
1036 Design.DoveadmProtocol.txt
1039 Design.Indexes.Cache.txt
1040 Design.Indexes.MailIndexApi.txt
1041 Design.Indexes.MainIndex.txt
1042 Design.Indexes.TransactionLog.txt
1044 Design.InputStreams.txt
1046 Design.MailProcess.txt
1048 Design.OutputStreams.txt
1049 Design.ParameterForwarding.txt
1051 Design.Processes.txt
1052 Design.Storage.ErrorHandling.txt
1053 Design.Storage.Mail.txt
1054 Design.Storage.MailNamespace.txt
1055 Design.Storage.MailStorage.txt
1056 Design.Storage.MailUser.txt
1057 Design.Storage.Mailbox.Save.txt
1058 Design.Storage.Mailbox.Search.txt
1059 Design.Storage.Mailbox.Sync.txt
1060 Design.Storage.Mailbox.Transaction.txt
1061 Design.Storage.Mailbox.txt
1062 Design.Storage.MailboxList.txt
1063 Design.Storage.Plugins.txt
1070 Errors.ChgrpNoPerm.txt
1072 FindMailLocation.txt
1073 FinishBasicConfiguration.txt
1075 HowTo.AntispamWithSieve.txt
1076 HowTo.EximAndDovecotSASL.txt
1077 HowTo.ImapcProxy.txt
1078 HowTo.PopBSMTPAndDovecot.txt
1080 HowTo.PostfixAndDovecotSASL.txt
1082 HowTo.SimpleVirtualInstall.txt
1083 HowTo.WriteConfiguration.txt
1085 IMAPServer.Hibernation.txt
1101 MailLocation.LocalDisk.txt
1102 MailLocation.Maildir.txt
1103 MailLocation.SharedDisk.txt
1104 MailLocation.dbox.txt
1105 MailLocation.mbox.txt
1107 MailboxFormat.Cydir.txt
1108 MailboxFormat.MH.txt
1109 MailboxFormat.Maildir.txt
1110 MailboxFormat.dbox.txt
1111 MailboxFormat.imapc.txt
1112 MailboxFormat.mailstore.txt
1113 MailboxFormat.mbox.txt
1114 MailboxFormat.mbx.txt
1117 MboxChildFolders.txt
1120 Migration.BincIMAP.txt
1121 Migration.Courier.txt
1125 Migration.Linuxconf.txt
1126 Migration.MailFormat.txt
1127 Migration.Online.txt
1128 Migration.Teapop.txt
1130 Migration.Vm-pop3d.txt
1132 MissingMailboxes.txt
1138 PasswordDatabase.BSDAuth.txt
1139 PasswordDatabase.ExtraFields.AllowNets.txt
1140 PasswordDatabase.ExtraFields.Host.txt
1141 PasswordDatabase.ExtraFields.NoDelay.txt
1142 PasswordDatabase.ExtraFields.NoLogin.txt
1143 PasswordDatabase.ExtraFields.Proxy.txt
1144 PasswordDatabase.ExtraFields.User.txt
1145 PasswordDatabase.ExtraFields.txt
1146 PasswordDatabase.IMAP.txt
1147 PasswordDatabase.PAM.txt
1148 PasswordDatabase.Shadow.txt
1149 PasswordDatabase.Static.txt
1150 PasswordDatabase.oauth2.txt
1151 PasswordDatabase.txt
1152 PerformanceTuning.txt
1153 Pigeonhole.Installation.txt
1154 Pigeonhole.ManageSieve.Clients.txt
1155 Pigeonhole.ManageSieve.Configuration.txt
1156 Pigeonhole.ManageSieve.Install.txt
1157 Pigeonhole.ManageSieve.Troubleshooting.txt
1158 Pigeonhole.ManageSieve.txt
1159 Pigeonhole.Sieve.Configuration.Dict.txt
1160 Pigeonhole.Sieve.Configuration.File.txt
1161 Pigeonhole.Sieve.Configuration.LDAP.txt
1162 Pigeonhole.Sieve.Configuration.txt
1163 Pigeonhole.Sieve.Examples.txt
1164 Pigeonhole.Sieve.Extensions.Duplicate.txt
1165 Pigeonhole.Sieve.Extensions.Editheader.txt
1166 Pigeonhole.Sieve.Extensions.Include.txt
1167 Pigeonhole.Sieve.Extensions.SpamtestVirustest.txt
1168 Pigeonhole.Sieve.Extensions.Vacation.txt
1169 Pigeonhole.Sieve.Extensions.Variables.txt
1170 Pigeonhole.Sieve.Extensions.txt
1171 Pigeonhole.Sieve.Plugins.Extdata.txt
1172 Pigeonhole.Sieve.Plugins.Extprograms.txt
1173 Pigeonhole.Sieve.Plugins.IMAPFilterSieve.txt
1174 Pigeonhole.Sieve.Plugins.IMAPSieve.txt
1175 Pigeonhole.Sieve.Plugins.Pipe.txt
1176 Pigeonhole.Sieve.Plugins.txt
1177 Pigeonhole.Sieve.Troubleshooting.txt
1178 Pigeonhole.Sieve.Usage.txt
1179 Pigeonhole.Sieve.txt
1181 Plugins.Apparmor.txt
1182 Plugins.Autocreate.txt
1183 Plugins.CharsetAlias.txt
1184 Plugins.Compress.txt
1186 Plugins.FTS.Lucene.txt
1187 Plugins.FTS.Solr.txt
1188 Plugins.FTS.Squat.txt
1190 Plugins.LastLogin.txt
1191 Plugins.Lazyexpunge.txt
1192 Plugins.Listescape.txt
1193 Plugins.MailCrypt.txt
1194 Plugins.MailFilter.txt
1196 Plugins.MailboxAlias.txt
1198 Plugins.NotifyStatus.txt
1199 Plugins.PushNotification.txt
1200 Plugins.QuotaClone.txt
1204 Plugins.VarExpandCrypt.txt
1209 PostLoginScripting.txt
1211 QuickConfiguration.txt
1212 Quota.Configuration.txt
1221 SSL.CertificateClientImporting.txt
1222 SSL.CertificateCreation.txt
1223 SSL.DovecotConfiguration.txt
1224 SSL.SNIClientSupport.txt
1229 SharedMailboxes.ClusterSetup.txt
1230 SharedMailboxes.Permissions.txt
1231 SharedMailboxes.Public.txt
1232 SharedMailboxes.Shared.txt
1233 SharedMailboxes.Symlinks.txt
1235 SocketUnavailable.txt
1240 TestInstallation.txt
1241 TestPop3Installation.txt
1242 TimeMovedBackwards.txt
1252 UserDatabase.ExtraFields.txt
1253 UserDatabase.NSS.txt
1254 UserDatabase.Prefetch.txt
1255 UserDatabase.Static.txt
1259 VirtualUsers.Home.txt
1261 WhyDoesItNotWork.txt
1267 [FILE:284:patches/patch-src_lib-master_test-event-stats.c]
1268 --- src/lib-master/test-event-stats.c.orig 2023-09-14 13:17:46 UTC
1269 +++ src/lib-master/test-event-stats.c
1271 #include "stats-client.h"
1272 #include "test-common.h"
1274 +#include <signal.h>
1277 #include <sys/socket.h>
1280 [FILE:457:patches/patch-src_master_main.c]
1281 --- src/master/main.c.orig 2023-09-14 13:17:47 UTC
1282 +++ src/master/main.c
1283 @@ -888,6 +888,8 @@ int main(int argc, char *argv[])
1284 i_fatal("dup2(dev_null_fd) failed: %m");
1285 if (!foreground && dup2(dev_null_fd, STDOUT_FILENO) < 0)
1286 i_fatal("dup2(dev_null_fd) failed: %m");
1287 + if (!foreground && dup2(dev_null_fd, STDERR_FILENO) < 0)
1288 + i_fatal("dup2(dev_null_fd) failed: %m");
1291 i_strconcat(set->base_dir, "/"MASTER_PID_FILE_NAME, NULL);
1294 [FILE:1073:patches/patch-src_plugins_fts_decode2text.sh]
1295 /usr gets changed to ${LOCALBASE} in post-patch:, so we
1296 cheat and set xpdf's path to /usr/lib.
1298 --- src/plugins/fts/decode2text.sh.orig 2023-09-14 13:17:47 UTC
1299 +++ src/plugins/fts/decode2text.sh
1300 @@ -79,16 +79,20 @@ wait_timeout() {
1303 if [ $fmt = "pdf" ]; then
1304 - /usr/bin/pdftotext $path - 2>/dev/null&
1305 + if [ -x /usr/lib/xpdf/pdftotext ]; then
1306 + /usr/lib/xpdf/pdftotext $path - 2>/dev/null&
1308 + /usr/local/bin/pdftotext $path - 2>/dev/null&
1310 wait_timeout 2>/dev/null
1311 elif [ $fmt = "doc" ]; then
1312 - (/usr/bin/catdoc $path; true) 2>/dev/null&
1313 + (/usr/local/bin/catdoc $path; true) 2>/dev/null&
1314 wait_timeout 2>/dev/null
1315 elif [ $fmt = "ppt" ]; then
1316 - (/usr/bin/catppt $path; true) 2>/dev/null&
1317 + (/usr/local/bin/catppt $path; true) 2>/dev/null&
1318 wait_timeout 2>/dev/null
1319 elif [ $fmt = "xls" ]; then
1320 - (/usr/bin/xls2csv $path; true) 2>/dev/null&
1321 + (/usr/local/bin/xls2csv $path; true) 2>/dev/null&
1322 wait_timeout 2>/dev/null
1323 elif [ $fmt = "odt" -o $fmt = "ods" -o $fmt = "odp" ]; then
1324 xmlunzip "content.xml"
1327 [FILE:2204:files/dovecot.in]
1331 # REQUIRE: %%REQUIRE%%
1335 # dovecot_enable (bool): Set it to YES to enable dovecot
1337 # dovecot_config (str): Path to dovecot.conf
1338 # Default: %%PREFIX%%/etc/dovecot.conf
1339 # Set it to a space-separated list to start
1340 # multiple dovecot instances
1341 # dovecot_flags (str): Extra flags to pass to dovecot
1344 # Define dovecot_* variables in one of these files:
1346 # /etc/rc.conf.local
1347 # /etc/rc.conf.d/dovecot
1352 rcvar=dovecot_enable
1354 # read configuration and set defaults
1355 load_rc_config ${name}
1356 : ${dovecot_enable:="NO"}
1357 : ${dovecot_config:="%%PREFIX%%/etc/${name}.conf"}
1359 command="%%PREFIX%%/sbin/${name}"
1360 start_precmd="start_precmd"
1361 stop_postcmd="stop_postcmd"
1362 restart_cmd="restart_cmd"
1363 extra_commands="reload"
1366 { # Ensure runtime directory exists with correct permissions
1367 /usr/bin/install -o root -g wheel -m 0755 -d ${base_dir}
1371 { # Cleanup runtime directory. The dovecot.conf link has to stay.
1372 /usr/bin/find ${base_dir} ! -type l -delete
1376 { # Overriding makes rc.subr run this once for each instance
1378 run_rc_command start
1381 # To start multiple instances of dovecot set dovecot_config to
1382 # a space separated list of configuration files.
1383 for config in ${dovecot_config}; do
1384 required_files="${config}"
1385 command_args="-c ${config}"
1386 if [ -s ${config} ]; then
1387 ${command} ${command_args} -a 2>&1 >/dev/null
1388 if [ $? -ne 0 ]; then
1390 echo "Configuration file check failed."
1391 # Use dovecot to print the config error.
1392 ${command} ${command_args} -a
1395 base_dir=$(${command} ${command_args} -a 2>/dev/null | /usr/bin/awk -F '= ' '/^base_dir =/ { print $2 }')
1396 pidfile="${base_dir}/master.pid"
1399 echo "Config file ${config} does not exist. If this is"
1400 echo "a new installation, please create the config files as outlined in"
1401 echo " # pkg info -D dovecot"
1407 [FILE:1353:files/pkg-message-primary.in]
1408 ---------------------------------------------------------------------
1410 You must create the configuration files yourself. Copy them over
1411 to %%ETCDIR%% and edit them as desired:
1413 cp -R %%ETCDIR%%/example-config/* \
1416 The default configuration includes IMAP and POP3 services, will
1417 authenticate users agains the system's passwd file, and will use
1418 the default /var/mail/$USER mbox files.
1420 Next, enable dovecot in /etc/rc.conf:
1422 dovecot_enable="YES"
1425 ---------------------------------------------------------------------
1427 To avoid a risk of mailbox corruption, do not set the
1428 security.bsd.see_other_uids or .see_other_gids sysctls to 0
1429 if Dovecot is storing mail for multiple concurrent users (PR 218392).
1431 ---------------------------------------------------------------------
1433 If you want to be able to search within attachments using the
1434 decode2text plugin, you'll need to install textproc/catdoc, and
1435 one of graphics/xpdf or graphics/poppler-utils.
1437 ---------------------------------------------------------------------
1439 There are some potentially breaking changes in Dovecot 2.3. If you
1440 are upgrading from Dovecot 2.2:
1442 * Read https://wiki2.dovecot.org/Upgrading/2.3
1443 * Merge the configuration file changes from
1444 %%ETCDIR%%/examples-config/
1446 ---------------------------------------------------------------------