Commit Graph
3517 Commits
Author SHA1 Message Date
Rodrigo Cortés Cano b0fe5db364 Show usage and neutral boxes for unlimited quotas (#1151)
Unlimited mailboxes currently show only the unlimited label, hiding available usage. 
Unlimited domain counters also lose their quota box, and the domain storage label continues to show assigned quota even when actual usage is available.

thanks @TrapoSAMA
2026-10-03 11:16:53 +01:00
masterblaster79 eea8021889 Fix password changes with database prefixes (#1155)
Users changing their mailbox password currently hit an unprefixed `mailbox` table lookup when `database_prefix` is configured, causing the password change to fail even though authentication succeeds.

Fixes: #1154

thanks @masterblaster79
2026-09-27 19:52:14 +01:00
David Goodwin 2c05ff950c Totp fixes (#1153)
Wenhao Wu emailed with the following security report, this affects master and postfixadmin-4.0.

High — mailbox takeover of mail flow for a 2FA-enrolled account by a password holder. CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N ≈ 8.1 (PR:L models possession of the first factor; impact is limited to the attacker's own mailbox account). CWE-308 (Use of Single-Factor Authentication with Two Factors), secondary CWE-287. Not related to the fixed TOTP-exception issue #1014.

....
With `$CONF['totp']='YES'` and a mailbox that has TOTP enrolled, logging in with **only the mailbox password** creates an MFA-incomplete session (`username` set, `roles=[]`, `mfa_complete=false`) that is parked at `users/login-mfa.php`. That half-session cannot open `users/main.php` (it has no `user` role), but `public/edit.php` never checks MFA completion:

- `public/edit.php:30` — `authentication_get_username()` (comment "enforce login") treats any session with a username as logged in; it never calls `authentication_mfa_incomplete()`.
- `public/edit.php:57-63` — for a non-admin session with a handler that has `user_hardcoded_field`, `require_role('admin')` is skipped entirely.
....

Wenhao Wu, Southeast University

thanks @d3do-23 (@cboltz and TrapoSAMA for reviewing etc)
2026-09-26 09:39:53 +01:00
David Goodwin 63ef208055 see #1162 - avoid passing null into explode(), thanks @danielsdadm-commits 2026-09-26 09:24:27 +01:00
8ctopus a2d5a5a94d Fix smarty template did not have noindex (#1161)
discourage search engines from indexing postfixadmin 

thanks @8ctopus
2026-09-25 08:55:59 +01:00
David Goodwin 8d4e24cda6 move the reset password button to the bottom of the form as I think this is more normal 2026-09-24 10:03:50 +01:00
David Goodwin cab4e8c3ca see #1159 - change aliases to forwarding to be more human friendly 2026-09-24 09:11:31 +01:00
8ctopus 57a18ac763 Ask search engine not to index (#1157)
Add "X-Robots-Tag: noindex" http header to discourage listing in search engines.

see #1142, thanks @8ctopus
2026-09-22 08:35:12 +01:00
Rodrigo Cortés Cano 24c51277c2 Show inactive domain DNS status in overview (#1146)
Show DNS status for domains to administrators.
Adds new config setting domain_dns_status_check ( 0 - disabled, 1 authoritative zone, 2 usable MX ) 

Document installation, an optional CLI/cron command, permissions, networking, timeouts, and saved-result semantics.

thanks @TrapoSAMA
2026-09-19 15:04:21 +01:00
Rodrigo Cortés Cano 9babefd160 Remove obsolete quota usage script and Horde 3 guide (#1149)
Remove the legacy `ADDITIONS/quota_usage.pl` utility and the `DOCUMENTS/HORDE.txt` Horde 3 password-change recipe.
2026-09-19 10:23:47 +01:00
Rodrigo Cortés Cano d56a05d862 Replace list-virtual cNav_bar with shared pagination (#1093)
This is the second step of #1064, following #1090.

- replace `list-virtual.php`'s `cNav_bar` HTML renderer with normalized items for the shared `templates/_pagination.tpl` 
- preserve the selected domain and nested search parameter in every page link
- use stable `#aliases` and `#mailboxes` anchors for the two independently rendered lists
- render the same accessible Bootstrap 5 pagination above and below each list 
- remove the now-unused `arrow-l.png`, `arrow-r.png`, and `arrow-u.png` assets
2026-09-16 14:52:53 +01:00
Rodrigo Cortés Cano e6a0b3a179 Label the virtual address search field (#1148)
The virtual-address overview currently shows a blank search box with
only a hard-coded English tooltip. Add a visible translated placeholder
and an accessible name: "Search mailboxes and aliases..." (Spanish:
"Buscar buzones y alias...").

thanks @TrapoSAMA
2026-09-06 14:26:30 +01:00
Rodrigo Cortés Cano d92137719d Require reauthentication for TOTP removal (#1129)
- require a completed user or admin role before opening TOTP management
- remove TOTP through the existing password-verifying change path
- keep configured post-change hooks active when a secret is removed
- add regression coverage proving an invalid password cannot remove the stored secret

This is the first focused change for #1128.

thanks @TrapoSAMA
2026-09-02 20:23:26 +01:00
Rodrigo Cortés Cano b07d4a5136 Document optional strict MX policy service (#1124)
Add a short documentation pointer from `ADDITIONS/README.md` to the standalone
[postfix-strict-mx-policy](https://github.com/TrapoSAMA/postfix-strict-mx-policy) project.

thanks @TrapoSAMA
2026-09-02 20:18:34 +01:00
Rodrigo Cortés Cano cd67f20b4e Enforce SMTP protocol state (#1132)
Improve SMTP connection handling + writing ( smtp_mail() )

Refs #1128

thanks @TrapoSAMA
2026-09-02 20:14:30 +01:00
Rodrigo Cortés Cano 2c8a8893e9 Enforce TOTP policy for XML-RPC login (#1131)
if a user/mailbox has TOTP enabled, block access via XMLRPC (if it's enabled) as the two aren't compatible.

Part of #1128.

thanks @TrapoSAMA
2026-08-29 20:07:23 +01:00
Rodrigo Cortés Cano 54be5e3828 Fix legacy md5crypt compatibility (#1125)
- restore `md5crypt` as the PostfixAdmin 3.x-compatible alias for MD5-CRYPT
- verify stored unprefixed MD5-CRYPT, prefixed MD5-CRYPT, bcrypt, and SHA512 crypt hashes from their stored format
- document the canonical `MD5-CRYPT` setting, the legacy alias, and the 3.x upgrade implications

This addresses #1123 on `master`. The `postfixadmin_4.0` correction is in #1126 so each maintained branch can be reviewed and tested against its own PHP requirements.

thanks @TrapoSAMA
2026-08-29 15:11:54 +01:00
Rodrigo Cortés Cano 2a6f27c3c4 Use shared pagination in generic lists (#1127)
Extend bootstrap pagination to list.php

#1090, #1093, and this PR cover all three pagination surfaces tracked in #1064.

thanks @TrapoSAMA
2026-08-29 15:09:23 +01:00
Rodrigo Cortés Cano 47667e56ab Scope Roundcube TOTP preference updates (#1133)
Limit the example Roundcube synchronization update to the selected user and disallow object instantiation while decoding stored preferences.

The script also validates its arguments and safely initializes malformed preference data.

Refs #1128

thanks @TrapoSAMA
2026-08-29 14:56:57 +01:00
Rodrigo Cortés Cano e638095d58 Harden password recovery requests (#1130)
Require a validated canonical site_url for recovery links, keep responses uniform, and persist a five-minute per-account request limit.

The token update is atomic across supported database engines and performs the same password hashing work for unknown accounts.

Refs #1128

thanks @TrapoSAMA
2026-08-29 14:55:49 +01:00
Rodrigo Cortés Cano 314a3242c9 Escape viewlog output by default (#1134)
Render log records through the default output sanitization path and
remove the inline JavaScript interpolation of log data.

Full log data remains available through a native details element without
placing it in a script context.

Refs #1128

thanks @TrapoSAMA
2026-08-29 14:51:41 +01:00
Kent Riboe 235cf06eb1 config: clarify dovecot: encrypt needs doveadm; note native alternatives (#1120)
Update docs in config.inc.php around  `$CONF['encrypt']` for doveadm usage. 

see #1119

thanks @knofte
2026-08-22 15:10:40 +01:00
Rodrigo Cortés Cano a9b561506d doveadm: accept valid results with stderr warnings (#1121)
When using dovecot: passwords, and calling the doveadm binary,, ignore stderr as long as the exit code is 0.
Switch _pacrypt_dovecot() to use the Exec class (instead of calling proc_popen directly).

fixes #1119

thanks @TrapoSAMA
2026-08-22 15:07:33 +01:00
Rodrigo Cortés Cano aa8b4e1f31 Spanish (es.lang) translation updates (#1116)
thanks @TrapoSAMA
2026-08-16 12:05:36 +01:00
David Goodwin 1b55dc96e4 security updates (smarty, phpunit)
move to use smarty/smarty ^5.8.4 (see https://github.com/postfixadmin/postfixadmin/security/dependabot/2),
use phpunit ^11.5.50
use only psalm 6
2026-08-16 10:28:44 +01:00
Rodrigo Cortés Cano 2008d06bf4 Harden language catalog repair and syntax validation (#1114)
Improve language-update.sh script, fix missing semi-colons, cover languages/*.lang in ci with parallel-lint etc.
Fixes #1112 #1113

thanks @TrapoSAMA
2026-08-12 09:07:15 +01:00
Rodrigo Cortés Cano 60f8c46514 Document optional Dovecot mail deletion logging (#1111)
update dovecot 2.4 example config to not log deletions by default.

thanks @TrapoSAMA
2026-08-11 09:08:03 +01:00
Rodrigo Cortés Cano ab0a4d1357 Fix password expiration handling and visibility (#1109)
- validate domain password-expiration policies as whole numbers from 0 through 36500 days
- make password expiration optional and disabled by default
- make 0 consistently mean that passwords in the domain do not expire
- align administrator, recovery, mailbox-user, and XML-RPC password changes
- show each mailbox password-expiration state in lists and CSV output
- add the new labels to every language file
- document how to enable the feature in `config.local.php`

thanks @TrapoSAMA
2026-08-10 09:19:35 +01:00
Rodrigo Cortés Cano 875113f305 Improve form focus and TOTP input semantics (#1105)
- use a softer, consistent primary-blue focus treatment for standard
data-entry controls
- identify TOTP inputs as one-time codes and request numeric keyboards
on supported devices
- keep TOTP digits visible while they are entered
- fix the TOTP setup input ID so its label points to the actual control

thanks @TrapoSAMA
2026-08-10 09:09:08 +01:00
Christian Boltz bdda34aa09 Add missing alias_goto_default* translations to several languages
Fixes: 513542370d
2026-08-09 18:00:00 +02:00
Christian Boltz a1e3f0f474 README: Typo fix db_min_version -> min_db_version 2026-08-09 17:54:08 +02:00
Christian Boltz d691c90cef translations: update password_expiration and password_expiration_desc
In languages that were not translated yet, update to the new english
text.

In already-translated translations, add comments with the new text.

Fixes: deb5289362
2026-08-09 17:52:32 +02:00
Christian Boltz 9cc02670a9 Add translation markers for pViewlog_per_page
Fixes: 0f68dee15c
2026-08-09 17:15:49 +02:00
Christian Boltz 53cc8325c7 Add missing translation marker for pViewlog_all_domains
Fixes: d6aabd7745
2026-08-09 17:10:17 +02:00
Rodrigo Cortés Cano deb5289362 Clarify password expiration units (#1107)
Update spanish and english translations for password expiry to make it clear the units are in days.
2026-08-09 09:08:33 +01:00
Özgür Konstantin Kazanççı 65b10f7285 Update tr.lang (#1104)
Missing lines translated  - thanks @ozgurkazancci
2026-08-07 09:48:02 +01:00
Özgür Konstantin Kazanççı 12a77cf18d Update en.lang (#1103)
typo fix - thanks @ozgurkazancci
2026-08-07 09:47:17 +01:00
Goodsoldier fe012648b4 Add korean language (#1102)
Add Korean translation - ko.lang, thanks @GoodSoldier
2026-08-05 09:17:07 +01:00
David Goodwin 5e6ce8805a update CHANGELOG.TXT 2026-08-03 21:17:01 +01:00
Rodrigo Cortés Cano 8c6057b54b Distinguish mailbox and domain quota validation errors (#1096)
- distinguish the per-mailbox maximum quota error from insufficient remaining domain quota
- add the domain-quota error message to every language catalog

Thanks @TrapoSAMA
2026-08-02 10:15:08 +01:00
Rodrigo Cortés Cano 781d45745c Update Spanish translations (#1100)
update languages/es.lang 

thanks @TrapoSAMA
2026-08-02 10:11:07 +01:00
Rodrigo Cortés Cano 610ffb75ae Remove obsolete password expiration SQL (#1098)
drop password_expiration.sql (covered by existing db migrations)

thanks @TrapoSAMA
2026-08-02 10:09:52 +01:00
Rodrigo Cortés Cano bf47bddc9c Update Bootstrap Icons to 1.13.1 (#1095)
Update bootstrap icons to 1.13.1 (was 1.11.3); thanks @TrapoSAMA
2026-07-28 09:36:32 +01:00
Rodrigo Cortés Cano ab94193611 Update Bootstrap to 5.3.8 (#1094)
upgrade from bootstrap 5.3.0 to 5.3.8
2026-07-28 09:32:23 +01:00
Rodrigo Cortés Cano 4a38010594 Make 3.3 schema reconciliation retry-safe (#1092)
fix regression in MySQL schema upgrade from 3.3 where vacation.domain, vacation.email and quota2.username had the wrong collation.

thanks @TrapoSAMA + @Knofte
2026-07-28 09:27:38 +01:00
Kent Riboe 00622a1155 Add reusable _pagination.tpl partial, use it in viewlog (#1064) (#1090)
adds templates/_pagination.tpl - bootstrap 5 shared pagination component. 
migrates viewlog to use it.

See  #1064 (thanks @TrapoSAMA and @Knofte)
2026-07-27 19:14:24 +01:00
mkocustos 513542370d Let admins store a default for the alias "To" (goto) field (#1061)
adds new db table admin_preferences to store a default goto for aliases etc, which when populated will prefil the forward form with that value.


thanks @mkocustos
2026-07-25 10:56:40 +01:00
Rodrigo Cortés Cano 9a930b61ad Add a read-only database integrity check to setup.php (#1091)
attempt to highlight any orphaned data, see also https://github.com/postfixadmin/postfixadmin/issues/972

thanks @TrapoSAMA
2026-07-24 09:09:03 +01:00
Rodrigo Cortés Cano 755f6c3990 Reconcile 3.3 MySQL upgrades on master (#1089)
fix regression in MySQL database update order. See #971

thanks @TrapoSAMA and @csware
2026-07-23 09:31:31 +01:00
Rodrigo Cortés Cano 852cb6fb39 Test user alias creation guard directly 2026-07-22 18:13:16 +00:00