https://github.com/hhyyrylainen/mailuserscripts
Ruby scripts for dovecot postgresql stored user management
https://github.com/hhyyrylainen/mailuserscripts
dovecot ruby
Last synced: 8 months ago
JSON representation
Ruby scripts for dovecot postgresql stored user management
- Host: GitHub
- URL: https://github.com/hhyyrylainen/mailuserscripts
- Owner: hhyyrylainen
- License: mit
- Created: 2020-11-20T09:20:39.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-20T18:47:49.000Z (over 5 years ago)
- Last Synced: 2025-10-08T10:57:15.541Z (8 months ago)
- Topics: dovecot, ruby
- Language: Ruby
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MailUserScripts
Ruby scripts for dovecot postgresql stored user management
# Requirements
Needs postgresql configured (mostly) as specified in:
- https://www.digitalocean.com/community/tutorials/how-to-set-up-a-postfix-email-server-with-dovecot-dynamic-maildirs-and-lmtp
- https://blog.suenotek.com/post/mail-server-with-postfix-dovecot-and-virtual-users-with-postgresql/
But those approaches need to be combined, table etc. names are assumed from the first link,
but quota support is taken from the second one.
Approach for generating salted passwords is from:
- https://www.tunnelsup.com/using-salted-sha-hashes-with-dovecot-authentication/
# Gems
Needs the following gems:
```sh
gem install pg
```
# Running
The root folder contains the ruby scripts that are meant to be executed from the command line.
Each script prints out help with `-h` flag.