Password Merger
Batch-change email account passwords using the Firstmail API. The Password Merger reads accounts with old and new passwords, changes them via the API, and outputs the updated credentials.
Prerequisites
- Firstmail API Key (from your Firstmail provider dashboard)
- Input file with accounts in the format:
email:oldpassword:newpasswordoremail:oldpassword:newpassword:2fasecret(for 2FA accounts)
Workflow
Load accounts from input file (readyAccounts.txt)
For each account, call the Firstmail API to change the password
Multi-threaded processing for speed
Save updated accounts to output file (changedAccounts.txt). 2FA secrets are preserved automatically.
Log failures for manual review
Configuration Reference
| Field | Key | Type | Description |
|---|---|---|---|
| Firstmail API Key | api_key | string | Your Firstmail API authentication key |
| Input File | input_file | string | Path to input file (default: readyAccounts.txt) |
| Output File | output_file | string | Path to output file (default: changedAccounts.txt) |
| Max Workers | max_workers | integer | Number of parallel threads |
| Delay | delay | float | Delay between API calls in seconds |
Input / Output Format
Input (readyAccounts.txt):
email:oldpassword:newpassword
email:oldpassword:newpassword:2fasecretExample:
john.doe@firstmail.ltd:OldPass123:NewPass456
sarah99@firstmail.ltd:MyOld!Pw:MyNew!Pw
max.muster@firstmail.ltd:Secret99:Secret100:WCIZO2IPEK77XBYW6ENKD56FLYOutput (changedAccounts.txt):
email:newpassword
email:newpassword:2fasecretExample:
john.doe@firstmail.ltd:NewPass456
sarah99@firstmail.ltd:MyNew!Pw
max.muster@firstmail.ltd:Secret100:WCIZO2IPEK77XBYW6ENKD56FLYAccounts with a 2FA secret key (4th field) will automatically have it preserved in the output. No extra configuration needed.
Tips
Get your API key from the Firstmail dashboard under API settings.
Keep the delay reasonable to avoid rate limiting from the API.
