1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-20 02:52:11 +00:00

Enabled localhost imap for localhost Nextcloud auth

This commit is contained in:
Jeff Volkenant 2019-05-15 10:34:58 -07:00
parent e5b044cb3d
commit 3f4ca9db43
2 changed files with 10 additions and 2 deletions

View File

@ -135,6 +135,14 @@ service lmtp {
} }
} }
# Enable imap-login on localhost to allow the user_external plugin
# for Nextcloud to do imap authentication. (See #1577)
service imap-login {
inet_listener imap {
address = 127.0.0.1
port = 143
}
}
protocol imap { protocol imap {
mail_max_userip_connections = 20 mail_max_userip_connections = 20
} }

View File

@ -155,7 +155,7 @@ if [ ! -f $STORAGE_ROOT/owncloud/owncloud.db ]; then
array( array(
'class' => 'OC_User_IMAP', 'class' => 'OC_User_IMAP',
'arguments' => array( 'arguments' => array(
'${PRIMARY_HOSTNAME}', 993, 'ssl', '' '127.0.0.1', 143, '', ''
), ),
), ),
), ),
@ -229,7 +229,7 @@ include("$STORAGE_ROOT/owncloud/config.php");
\$CONFIG['mail_domain'] = '$PRIMARY_HOSTNAME'; \$CONFIG['mail_domain'] = '$PRIMARY_HOSTNAME';
\$CONFIG['user_backends'] = array(array('class' => 'OC_User_IMAP','arguments' => array('${PRIMARY_HOSTNAME}', 993, 'ssl', ''),),); \$CONFIG['user_backends'] = array(array('class' => 'OC_User_IMAP','arguments' => array('127.0.0.1', 143, '', ''),),);
echo "<?php\n\\\$CONFIG = "; echo "<?php\n\\\$CONFIG = ";
var_export(\$CONFIG); var_export(\$CONFIG);