parent
390c697875
commit
d373fabde8
1 changed files with 21 additions and 0 deletions
@ -0,0 +1,21 @@ |
||||
{ |
||||
|
||||
my $status = $dovecot{'status'} || 'enabled'; |
||||
return "" if ($status ne 'enabled'); |
||||
my @ports = (); |
||||
push @ports, ($imap{'TCPPort'} || '143') |
||||
if (($imap{status'} || 'disabled') eq 'enabled'); |
||||
push @ports, ($imaps{'TCPPort'} || '993') |
||||
if (($imaps{status'} || 'disabled') eq 'enabled'); |
||||
my $port = join (",", @ports); |
||||
|
||||
$OUT .=<<"EOF"; |
||||
|
||||
[imap] |
||||
enabled = true |
||||
filter = dovecot |
||||
action = smeserver[port=$port, protocol=tcp] |
||||
logpath = /var/log/dovecot/current |
||||
EOF |
||||
|
||||
} |
Loading…
Reference in new issue