From ae46a1b5e6e88ef0c46728da585e277b622fbb72 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 13 Feb 2018 20:20:14 +0000 Subject: [PATCH] Create bdsmail admin password --- src/freedombone-app-bdsmail | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-bdsmail b/src/freedombone-app-bdsmail index 5b875bc9..05504be9 100755 --- a/src/freedombone-app-bdsmail +++ b/src/freedombone-app-bdsmail @@ -34,7 +34,7 @@ IN_DEFAULT_INSTALL=0 SHOW_ON_ABOUT=1 BDSMAIL_REPO="https://github.com/majestrate/bdsmail" -BDSMAIL_COMMIT='32f50455ddafafef715917a4458b8a97e99ecd73' +BDSMAIL_COMMIT='2f047942e1cc0e36258fef27dc2fa49be299fca4' BDSMAIL_DIR=/etc/bdsmail I2P_SAM_PORT=7656 I2P_SMTP_PORT=2525 @@ -381,10 +381,14 @@ function install_bdsmail { exit 8934638 fi + bdsmail_admin_password="$(create_password ${MINIMUM_PASSWORD_LENGTH})" + ${PROJECT_NAME}-pass -u $new_username -a bdsmail -p "$bdsmail_admin_password" + $BDSMAIL_DIR/bin/mailtool $BDSMAIL_DIR/config.ini admin $BDSMAIL_DIR/Maildir/i2p/admin $bdsmail_admin_password + # Create mutt configuration mkdir /etc/skel/.mutt echo 'set mbox_type=Maildir' > /etc/skel/.mutt/bdsmail - echo "set smtp_url=smtp://127.0.0.1:$I2P_SMTP_PORT/" >> /etc/skel/.mutt/bdsmail + echo "set smtp_url=smtp://admin:${bdsmail_admin_password}@127.0.0.1:$I2P_SMTP_PORT/" >> /etc/skel/.mutt/bdsmail echo 'set use_from=yes' >> /etc/skel/.mutt/bdsmail echo "set from=username@${bds_domain}" >> /etc/skel/.mutt/bdsmail echo "set spoolfile=~/Maildir/i2p" >> /etc/skel/.mutt/bdsmail