40 lines
708 B
Plaintext
40 lines
708 B
Plaintext
{
|
|
if ((($imap{'status'} || 'disabled') eq 'disabled') ||
|
|
(($imap{'AllowPlainText'} || 'enabled') eq 'disabled')){
|
|
$OUT .= "disable_plaintext_auth = yes\n";
|
|
}
|
|
}
|
|
|
|
service imap-login \{
|
|
inet_listener imap \{
|
|
port = {$imap{'TCPPort'} || '143'}
|
|
address = *
|
|
\}
|
|
inet_listener imaps \{
|
|
port = {$imaps{'TCPPort'} || '993'}
|
|
ssl = yes
|
|
address = *
|
|
\}
|
|
|
|
service_count = 0
|
|
process_min_avail = 2
|
|
|
|
\}
|
|
|
|
{
|
|
if (($sieve{'status'} || 'enabled') eq 'enabled'){
|
|
my $port = $sieve{'TCPPort'} || '4190';
|
|
my $address = $sieve{'Listen'} || '127.0.0.1';
|
|
$OUT .=<<"HERE";
|
|
|
|
service managesieve-login {
|
|
inet_listener sieve {
|
|
port = $port
|
|
address = $address
|
|
}
|
|
}
|
|
|
|
HERE
|
|
}
|
|
}
|