Create bdsmail admin password
This commit is contained in:
parent
68f2b6faad
commit
ae46a1b5e6
|
@ -34,7 +34,7 @@ IN_DEFAULT_INSTALL=0
|
||||||
SHOW_ON_ABOUT=1
|
SHOW_ON_ABOUT=1
|
||||||
|
|
||||||
BDSMAIL_REPO="https://github.com/majestrate/bdsmail"
|
BDSMAIL_REPO="https://github.com/majestrate/bdsmail"
|
||||||
BDSMAIL_COMMIT='32f50455ddafafef715917a4458b8a97e99ecd73'
|
BDSMAIL_COMMIT='2f047942e1cc0e36258fef27dc2fa49be299fca4'
|
||||||
BDSMAIL_DIR=/etc/bdsmail
|
BDSMAIL_DIR=/etc/bdsmail
|
||||||
I2P_SAM_PORT=7656
|
I2P_SAM_PORT=7656
|
||||||
I2P_SMTP_PORT=2525
|
I2P_SMTP_PORT=2525
|
||||||
|
@ -381,10 +381,14 @@ function install_bdsmail {
|
||||||
exit 8934638
|
exit 8934638
|
||||||
fi
|
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
|
# Create mutt configuration
|
||||||
mkdir /etc/skel/.mutt
|
mkdir /etc/skel/.mutt
|
||||||
echo 'set mbox_type=Maildir' > /etc/skel/.mutt/bdsmail
|
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 use_from=yes' >> /etc/skel/.mutt/bdsmail
|
||||||
echo "set from=username@${bds_domain}" >> /etc/skel/.mutt/bdsmail
|
echo "set from=username@${bds_domain}" >> /etc/skel/.mutt/bdsmail
|
||||||
echo "set spoolfile=~/Maildir/i2p" >> /etc/skel/.mutt/bdsmail
|
echo "set spoolfile=~/Maildir/i2p" >> /etc/skel/.mutt/bdsmail
|
||||||
|
|
Loading…
Reference in New Issue