Files
windyboy daf4aa3dfa Add P.A.R.A. methodology documentation and restructure Personal folder
- Created Methodology.md to outline the P.A.R.A. system and its components.
- Added Outline.md for a structured overview of P.A.R.A. content.
- Documented PKM content organization decisions in PKM-Consolidation-Decision.md.
- Introduced Workflows.md to explain practical applications of P.A.R.A. in work scenarios.
- Moved sensitive information to security-sensitive folder and restructured the Personal folder to align with P.A.R.A. principles.
- Archived backup files including Matrix Me.md and TTG Cookies.md.
- Implemented a comprehensive refactor of the Personal folder to improve organization and security.
2025-12-29 15:37:17 +08:00

94 lines
2.3 KiB
Markdown
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
```
sudo doveadm pw -s BLF-CRYPT
```
```
{BLF-CRYPT}$2y$05$ituMVYZPOiAnTOApslK18OB7iPpAamHv6wZSd7ed2ZozzAaKXPGZi
```
```
windyboy@2006
```
```
sudo mysql -p -u mailuser mailserver <<'SQL'
INSERT INTO domains(name) VALUES ('windy.me');
INSERT INTO users(email, domain, password, quota_mb)
VALUES ('zhiqiang@windy.me','windy.me','{BLF-CRYPT}$2y$05$cbKWGCrttpBPHpN8R4DFFeGSUF82Upf4EsREifW0jm96A.59IfYfO', 2048);
-- optional alias
INSERT INTO aliases(source, destination) VALUES ('vnet@windy.me','zhiqiang@windy.me');
SQL
```
```
doveadm auth test zhiqiang@windy.me 'windyboy2006'
```
```
# ---- Dovecot 2.4 SQL authentication ----
sql_driver = mysql
# Debian/MariaDB socket (or use 'mysql localhost { ... }' for TCP)
mysql /run/mysqld/mysqld.sock {
user = vmail
password = CHANGE_ME_STRONG
dbname = mailserver
}
# PASSDB: verify credentials (hash in DB, e.g. {BLF-CRYPT}...)
passdb sql {
passdb_default_password_scheme = BLF-CRYPT
query = SELECT email AS username, password AS password \
FROM users \
WHERE email = '%{user}' AND active = 1
}
# USERDB: return uid/gid/home/mail
# Change 5000:5000 if your vmail UID/GID differ: check with "id vmail"
userdb sql {
query = SELECT 5000 AS uid, 5000 AS gid, \
CONCAT('/var/mail/vhosts/', SUBSTRING_INDEX(email,'@',-1), '/', SUBSTRING_INDEX(email,'@',1)) AS home, \
CONCAT('maildir:/var/mail/vhosts/', SUBSTRING_INDEX(email,'@',-1), '/', SUBSTRING_INDEX(email,'@',1), '/Maildir') AS mail \
FROM users \
WHERE email = '%{user}' AND active = 1
iterate_query = SELECT email AS username FROM users WHERE active = 1
}
```
```
swaks --server your.mx.name --port 587 --tls --auth LOGIN -au 'zhiqiang@windy.me' -ap 'windyboy@2006' --h-Subject "SASL test"
```
```
sudo postconf -n | grep -E '^(smtpd_.*restrictions|smtpd_milters|milter_.*|policyd|policy|check_policy_service)'
sudo grep -nE '^(submission|smtps)\b' -n /etc/postfix/master.cf -n
```
```
sudo postconf -P submission/inet/smtpd_recipient_restrictions
sudo postconf -P submission/inet/smtpd_client_restrictions
sudo postconf -P submission/inet/smtpd_helo_restrictions
sudo postconf -P smtps/inet/smtpd_recipient_restrictions
```
google windyboy app passwors (postfix) :
```
zfgl bdep itya kdym
```
/etc/postfix/sasl_passwd
```
[smtp.gmail.com]:587 windyboy@gmail.com:zfglbdepityakdym
```