Skip to content
Permalink
Browse files

mail-server: Update to dovecot version 2 renaming

  • Loading branch information
essandess authored and mf2k committed Jan 20, 2020
1 parent b7ee1c4 commit 9239651a95c3b23d238843c6ed2660a3bd6b771e
Showing with 24 additions and 24 deletions.
  1. +24 −24 mail/mail-server/Portfile
@@ -4,8 +4,8 @@ PortSystem 1.0
PortGroup active_variants 1.1

name mail-server
version 1.0
revision 3
version 1.1
revision 0
categories mail net
platforms darwin
supported_archs noarch
@@ -14,24 +14,24 @@ license GPL-3
distfiles

description Mail server configuration
long_description ${description} \
Mail server working configuration that provides a basic, working,\
easily modifiable mail server. The configuration is built using\
postfix for the MTA, dovecot for the MDA, solr for fast search,\
rspamd for a milter, and clamav for email virus scans. The\
configuration includes a surrogate TLS certificate, DKIM, and\
Apple Push Notification Service (APNS) capability for iOS devices.

long_description Mail server working configuration that provides a basic, working,\
easily modifiable mail server. The configuration is built using\
postfix for the MTA, dovecot for the MDA, solr for fast search,\
rspamd for a milter, and clamav for email virus scans. The\
configuration includes a surrogate TLS certificate, DKIM, and\
Apple Push Notification Service (APNS) capability for iOS devices.

homepage https://www.postfix.org/

set postfix_required_variants \
[lsort {dovecot_sasl pcre smtputf8 tls}]
set dovecot2_required_variants \
set dovecot_required_variants \
[lsort {gssapi solr}]

depends_lib-append port:dcc \
port:dovecot2 \
port:dovecot2-sieve \
port:dovecot \
port:dovecot-sieve \
port:logrotate \
path:lib/libssl.dylib:openssl \
port:postfix \
@@ -83,13 +83,13 @@ Postfix not installed with required variants. Please install:
"
set required_variants_flag false
}
if { [catch {set result [registry_active dovecot2]}]
if { [catch {set result [registry_active dovecot]}]
|| [lindex [lindex ${result} 0] 3] \
ne "+[join ${dovecot2_required_variants} +]" } {
ne "+[join ${dovecot_required_variants} +]" } {
append required_variants_message "\
Dovecot not installed with required variants. Please install:
sudo port -pN install dovecot2 +[join ${dovecot2_required_variants} +] \[+apns\]
sudo port -pN install dovecot +[join ${dovecot_required_variants} +] \[+apns\]
"
set required_variants_flag false
@@ -98,7 +98,7 @@ Dovecot not installed with required variants. Please install:
ui_error ${required_variants_message}
# one of these will exit with error if the ports are not installed at all
registry_active postfix
registry_active dovecot2
registry_active dovecot
}
}

@@ -726,7 +726,7 @@ TLS_CERTIFICATE_SURROGATE

# dovecot sieve functions
# dovecot must be built with `--with-lucene` for sievec to work here
if { ![catch {set result [registry_active dovecot2]}]
if { ![catch {set result [registry_active dovecot]}]
&& [string match "*solr*" [lindex [lindex ${result} 0] 3]] } {
foreach d {
sieve
@@ -740,7 +740,7 @@ TLS_CERTIFICATE_SURROGATE
} else {
ui_msg "dovecot plugin 'fts_lucene' not installed. Please install:
sudo port -pN install dovecot2 +[join ${dovecot2_required_variants} +]
sudo port -pN install dovecot +[join ${dovecot_required_variants} +]
and rerun `sudo port install ${name}`. Ensure that the sieve scripts
in ${prefix}/etc/dovecot/sieve*/*.sieve are compiled with sievec.
@@ -783,13 +783,13 @@ startupitem.start "port load clamav-server
\tport load redis
\tport load dcc
\tport load postfix
\tport load dovecot2
\tport load dovecot
\tport load rspamd"

startupitem.stop "port unload apache-solr8
\tport unload dcc
\tport unload postfix
\tport unload dovecot2
\tport unload dovecot
\tport unload rspamd"

startupitem.restart "port reload apache-solr8
@@ -798,9 +798,9 @@ startupitem.restart "port reload apache-solr8
\tport unload postfix ; \\
\tsleep 1 ; \\
\tport load postfix
\tport unload dovecot2 ; \\
\tport unload dovecot ; \\
\tsleep 1 ; \\
\tport load dovecot2
\tport load dovecot
\tport reload rspamd"

proc plutil_startup {plcmds label} {
@@ -836,7 +836,7 @@ port forwarding, possibly a mail replay, and more.
Postfix and dovecot must be installed with these variants:
sudo port -pN install postfix +[join ${postfix_required_variants} +]
sudo port -pN install dovecot2 +[join ${dovecot2_required_variants} +]
sudo port -pN install dovecot +[join ${dovecot_required_variants} +]
These are the locations and network settings for the default configuration:
@@ -893,7 +893,7 @@ services. These may be controlled independently, e.g.
sudo port load redis
sudo port load dcc
sudo port load postfix
sudo port load dovecot2
sudo port load dovecot
sudo port load rspamd
and if installed independently,

0 comments on commit 9239651

Please sign in to comment.
You can’t perform that action at this time.