Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Change email password
PostPosted: Mon Dec 02, 2013 4:33 pm 
Offline
Senior Member

Joined: Thu Jun 13, 2013 7:32 am
Posts: 79
How to go about changing email passwords based on them being setup with this tutorial?

https://library.linode.com/email/postfi ... -addresses

Code:
INSERT INTO `mailserver`.`virtual_users`
  (`domain_id`, `password` , `email`)
VALUES
  ('5', ENCRYPT('newpassword', CONCAT('$6$', SUBSTRING(SHA(RAND()), -16))) , 'email3@newdomain.com');


Maybe like this:
Code:
UPDATE `mailserver`.`virtual_users`
SET password=ENCRYPT('newpassword2', CONCAT('$6$', SUBSTRING(SHA(RAND()), -16)))
WHERE email='email3@newdomain.com';


Top
   
PostPosted: Mon Dec 02, 2013 8:24 pm 
Offline
Senior Member

Joined: Thu Jun 13, 2013 7:32 am
Posts: 79
I ran this on one email and was able to then login via roundcube to test it. Figured it worked, so I ran it on three other emails. Now I can't access any of them via roundcube or email clients like mailbird/outlook. I think I broke something.

Mail log is showing "Warning: mysql: Query failed, retrying: MySQL server has gone away", "warning: dict_nis_init: NIS domain name not set - NIS lookups disabled".

Not sure how editing the email account passwords would make mysql issue. The password used for the account lookups wasn't changed.

I can connect via mysql workbench using mailserver user and see all the email accounts and aliases fine.


Top
   
PostPosted: Mon Dec 02, 2013 10:33 pm 
Offline
Senior Member

Joined: Thu Jun 13, 2013 7:32 am
Posts: 79
Rebooted and back in business. I think I was banned from fail2ban and the connection attempts.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group