[Osaka/Yokohama/Tokushima] Looking for infrastructure/server side engineers!

[Osaka/Yokohama/Tokushima] Looking for infrastructure/server side engineers!

[Deployed by over 500 companies] AWS construction, operation, maintenance, and monitoring services

[Deployed by over 500 companies] AWS construction, operation, maintenance, and monitoring services

[Successor to CentOS] AlmaLinux OS server construction/migration service

[Successor to CentOS] AlmaLinux OS server construction/migration service

[For WordPress only] Cloud server “Web Speed”

[For WordPress only] Cloud server “Web Speed”

[Cheap] Website security automatic diagnosis “Quick Scanner”

[Cheap] Website security automatic diagnosis “Quick Scanner”

[Reservation system development] EDISONE customization development service

[Reservation system development] EDISONE customization development service

[Registration of 100 URLs is 0 yen] Website monitoring service “Appmill”

[Registration of 100 URLs is 0 yen] Website monitoring service “Appmill”

[Compatible with over 200 countries] Global eSIM “Beyond SIM”

[Compatible with over 200 countries] Global eSIM “Beyond SIM”

[If you are traveling, business trip, or stationed in China] Chinese SIM service “Choco SIM”

[If you are traveling, business trip, or stationed in China] Chinese SIM service “Choco SIM”

[Global exclusive service] Beyond's MSP in North America and China

[Global exclusive service] Beyond's MSP in North America and China

[YouTube] Beyond official channel “Biyomaru Channel”

[YouTube] Beyond official channel “Biyomaru Channel”

Tips for trouble with password validation in Postfix Admin

This is Yamada from the Systems Department.

If you are using Postfix as your mail server,
"Postfix Admin" allows you to easily manage virtual domains and email accounts with a GUI.

I think this tool is used not only by server administrators but also by people who have set up a small mail server at home, but
I would like to note that I had a little trouble creating an email account with this tool.

When I tried to add an email account to a domain using Postfix Admin,
I had to add a very simple password of about 4 digits, but I got
an error saying "Please use a 5 character password". was thrown up.

postfix admin

Huh? ? ? Did you put such a restriction in Postfix? ? ? ?
Is this problem caused by Postfix Admin? ? ?
I tried searching for ``Postfix Admin password restrictions,'' but I couldn't find much good information. . .
So I'm going to take a look at the Postfix Admin configuration file.

The configuration file is below

[Document root]/postfixadmin/config.inc.php

In the center of this file is 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 true.

You can create password validation rules one by one using regular expressions and


rules are:

5 or more characters
from the top, 3 or more alphanumeric characters (uppercase or lowercase),
and 2 or more numbers Click here for an explanation of regular expressions

Now, let's change and comment out the unnecessary parts.

// Password validation $CONF['password_validation'] = array( # '/regular expression/' => '$PALANG key (optional: + parameter)', '/.{4}/' => 'password_too_short 4', # minimum length 3 characters ←This time keep it to 4 characters # '/([a-zA-Z].*){3}/' => 'password_no_characters 3', # must contain at least 3 characters ←Comment out this # '/([0-9].*){2}/' => 'password_no_digits 2', # must contain at least 2 digits ←Comment out this too);

Now you can change the password validation.
Since you are editing a PHP file, there is no need to restart Apache.

If you are worried about more detailed mail server settings,
you don't have to manage the mail server! ! If you are interested, please give it a shot here ! ! !

If you found this article helpful , please give it a like!
0
Loading...
0 votes, average: 0.00 / 10
2,706
X facebook Hatena Bookmark pocket
[2025.6.30 Amazon Linux 2 support ended] Amazon Linux server migration solution

[2025.6.30 Amazon Linux 2 support ended] Amazon Linux server migration solution

The person who wrote this article

About the author