bdsmail icon indicating copy to clipboard operation
bdsmail copied to clipboard

Setting the admin password

Open ghost opened this issue 7 years ago • 8 comments

When trying to send mail I get a SASL authentication error. It looks like this is because the admin password is wrong. Trying to reset the admin password with:

$BDSMAIL_DIR/bin/mailtool $BDSMAIL_DIR/config.ini admin $BDSMAIL_DIR/mail/admin "adminpassword"

I get:

INFO[0000] opened localhost.sqlite                      
INFO[0000] already have user admin                      
ERRO[0000] error creating user: no such table: user     
ERRO[0000] Failed to set maildir: no such table: user   
ERRO[0000] error: no such table: user  

ghost avatar Feb 15 '18 19:02 ghost

i think that the config points to a relative path for database and that may cause problems On Thu, Feb 15, 2018 at 07:06:01PM +0000, Bob Mottram wrote:

When trying to send mail I get a SASL authentication error. It looks like this is because the admin password is wrong. Trying to reset the admin password with:

$BDSMAIL_DIR/bin/mailtool $BDSMAIL_DIR/config.ini admin $BDSMAIL_DIR/mail/admin "adminpassword"

I get:

INFO[0000] opened localhost.sqlite                      
INFO[0000] already have user admin                      
ERRO[0000] error creating user: no such table: user     
ERRO[0000] Failed to set maildir: no such table: user   
ERRO[0000] error: no such table: user  

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/majestrate/bdsmail/issues/15

majestrate avatar Feb 15 '18 19:02 majestrate

Ok. Although after resetting the admin password I still get:

SMTP session failed: 450 4.7.1 not authorized to send

ghost avatar Feb 15 '18 19:02 ghost

what is the username for smtp you are using? On Thu, Feb 15, 2018 at 07:51:03PM +0000, Bob Mottram wrote:

Ok. Although after resetting the admin password I still get:

SMTP session failed: 450 4.7.1 not authorized to send

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/majestrate/bdsmail/issues/15#issuecomment-366041675

majestrate avatar Feb 15 '18 20:02 majestrate

admin

ghost avatar Feb 15 '18 20:02 ghost

what client?

On Thu, Feb 15, 2018 at 12:21:54PM -0800, Bob Mottram wrote:

admin

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/majestrate/bdsmail/issues/15#issuecomment-366049808

majestrate avatar Feb 15 '18 20:02 majestrate

Mutt. The config line is:

set smtp_url=smtp://admin:[email protected]:2525/

ghost avatar Feb 15 '18 20:02 ghost

Using the username rather than admin, together with the admin password does seem to work.

ghost avatar Feb 15 '18 20:02 ghost

try adding this to muttrc:

set smtp_authenticators="plain"

On Thu, Feb 15, 2018 at 08:43:09PM +0000, Bob Mottram wrote:

Using the username rather than admin, together with the admin password does seem to work.

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/majestrate/bdsmail/issues/15#issuecomment-366055430

majestrate avatar Feb 15 '18 21:02 majestrate