Tips for troubleshooting Postfix Admin password validation

This is Yamada from the Systems Department
If you use Postfix as your mail server,
you can easily manage virtual domains and email accounts with a GUI using Postfix Admin.
I think this tool is used not only by server administrators, but also by people who have set up a simple email server at home, but I
had a bit of trouble when creating an email account with this tool, so I'm making a note of it.
When I tried to add an email account to a domain using Postfix Admin,
I needed to add a very simple password of about four digits, but I got
an error message saying, "Make the password five characters long."

Huh??? Did I set such a restriction in Postfix???
Maybe it's getting caught in Postfix Admin???
Thinking about it, I searched for "Postfix Admin password restrictions", but I didn't find much useful information...
So I decided to steadily look into the Postfix Admin configuration file.
The configuration file is as follows
[Document root]/postfixadmin/config.inc.php
In the middle of this file you'll find something like this
// Password validation $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 );
That's right.
You can create password validation rules one by one using regular expressions and
By default,
5 or more characters
, 3 or more letters (upper or lower case)
, and 2 or more numbers
.
For an explanation of regular expressions, click here
Now, change and comment out any unnecessary parts
// Password validation $CONF['password_validation'] = array( # '/regular expression/' => '$PALANG key (optional: + parameter)', '/.{4}/' => 'password_too_short 4', # minimum length 3 characters ←Let's use 4 characters this time # '/([a-zA-Z].*){3}/' => 'password_no_characters 3', # must contain at least 3 characters ←Comment this out # '/([0-9].*){2}/' => 'password_no_digits 2', # must contain at least 2 digits ←Comment this out too );
Now you have changed the password validation.
Since it is a PHP file edit, there is no need to restart Apache.
If you are concerned about more detailed email server settings, or
if you just can't handle managing an email server, please leave it all to us here !!!
0