Skip to content
Snippets Groups Projects
Commit ae46a1b5 authored by Bob Mottram's avatar Bob Mottram
Browse files

Create bdsmail admin password

parent 68f2b6fa
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment