Security shell scripts for Exim mail server
exim_gencert
-
Debian's
exim-gencertpatched for use withASHshell in Busybox. -
By default certificates are generated with
4096 bitencryption / 3 year duration.
exim_genpass
-
Generate & optionally store in a file
SHA-512password hashes. -
For the strongest possible hashes install
python-passlibormkpasswdfrom Debian (debian-mkpasswdin Arch Linux /mkpasswdin Alpine Linux) & configure the number ofROUNDSup to999,999,999. By defaultROUNDSare1,250,000(compared to theSHA-512default implementation of5000 ROUNDS).
exim_genpass: Generate SHA512 hashed passwords [ in /etc/exim/passwd ]
Usage: exim_genpass [OPTIONS]
[ -n ] : Don't update file; display results on stdout.
[ -f ] : Write username:passwd to a different file. (default: /etc/exim/passwd)
[ -r ] : use the specified NUMBER of rounds (Debian mkpasswd / Python passlib() only => default: 1250000)
(Busybox mkpasswd / Python crypt() / Perl crypt() => 5000 rounds)
[ -h ] : this help message.
Examples:
exim_genpass (Update /etc/exim/passwd => username:passwd)
exim_genpass -f file (Update file => username:passwd)
exim_genpass -n (Don't update /etc/exim/passwd: display results on stdout)
-
See also
secpwgenfor creating secure passwords withexim_genpass. -
With
ssmtpdo not quote passwords & do not include the=at the end of passwords generated bysecpwgen.
Both scripts can also be found in exim-utils in Alpine Linux.