LoginSignup
2

More than 5 years have passed since last update.

メールアドレスのパスワードを強力にするPostfixAdmin

Posted at

PostfixAdminでメールアドレス作成時に設定できるパスワードを複雑にして強力にしたり、または数字だけの簡単パスワードでも設定できるようにする。

[環境]
CentOS Linux release 7.2.1511 (Core)
Postfix Admin 2.92
dovecot 2.2.10
PHP version 5.4.16
Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/5.4.16
5.5.44-MariaDB

/var/www/postfixadmin/config.inc.php
↓ここらへんを調整する

$CONF['password_validation'] = array(
    '/regular expression/' => '$PALANG key (optional: + parameter)',
    '/.{5}/'                => 'password_too_short 5',      # minimum length 5 characters
    '/([a-zA-Z].*){3}/'     => 'password_no_characters 3',  # must contain at least 3 characters
    '/([0-9].*){2}/'        => 'password_no_digits 2',      # must contain at least 2 digits
);

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2