i am using a script to create a random password for a user.
The file looks like
user1:password1 user2:password2 user3:password3
Passwords are openssl passwd hashed. I have an own file where the password is written in cleartext.
No i want to send an E-Mail to the users with the new password.
I have a file (maillist.txt) with
user1:firstname.lastname@example.org user2:email@example.com user3:firstname.lastname@example.org
Now i want to generate an E-Mail to user1.
This should generate an E-Mail to email@example.com, containing the username (user1) and the password (password1). I want to do it with mailx.
Can you please help me?
Manu Old post