Commit Graph
199 Commits
Author SHA1 Message Date
Rodrigo Cortés Cano 8995ee7b55 Support multiple recipient delimiters (#1178)
- treat recipient_delimiter as a set of alternative characters, matching Postfix semantics
- centralize recipient-extension removal so alias status and mailbox classification cannot diverge
- restrict delimiter matching to the local part and document multi-character configuration
- add focused unit and alias-status regression coverage

See #1143
Thanks @TrapoSAMA
2026-10-15 19:26:09 +01:00
Rodrigo Cortés Cano ca76931f06 Allow configurable mailbox user display-name editing (#1177)
add config setting edit_mailbox_name which can be set to allow users to change their name. 

https://github.com/postfixadmin/postfixadmin/issues/1176#issuecomment-6061535053

Thanks @TrapoSAMA & @pvdv
2026-10-15 19:23:51 +01:00
Rodrigo Cortés Cano ff0ae9ddbe Clarify alias destination status indicators (#1150)
Alias destinations absent from local records previously shared the misleading “maybe UNDELIVERABLE” indicator, including valid external addresses such as Gmail. The indicator now distinguishes “Check local destination” (red) from “External destination” (blue), with short explanatory tooltips. An alias with both kinds of destinations can show
both indicators.


thanks @TrapoSAMA
2026-10-03 11:20:28 +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 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 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
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 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
Özgür Konstantin Kazanççı bf5c3f7eb2 Update config.inc.php (#1074)
typo fixed (alteration) - thanks @ozgurkazancci
2026-07-12 09:13:30 +01:00
David Goodwin 97e17c41c1 allow users to configure a closure (anonymous function) as a *_struct_hook config setting as well
previously we required a named function, see #1069
2026-07-05 20:06:17 +01:00
David Goodwin ff73976b72 UI enhancements around quota and icons for domain/mailbox lists
various patches from @trapoSama sent via email -

* Keeps the assigned domain quota text and uses real mailbox usage for
the quota bar color and fill.
* Shows a red count next to a domain when one or more mailboxes exceed
the configured quota alert threshold. Requires patch 1.
* Adds optional configuration to hide mailbox quota and password expiry
columns while retaining those values in the domain tooltip.
 * Corrects the quota-bar markup and aligns domain-list columns.
* Replaces the quota bars in the domain overview and mailbox list with a
unified bar component, preventing the fill, label, and border from
separating. It hides Modified, Backup MX, and Transport progressively on
reduced desktop widths, then uses horizontal scrolling as the final
fallback. 
* Uses icon-only controls with translated tooltips in domain and mailbox
lists: active state, SMTP active state, autoresponder, alias, edit, and
delete. Active-state tooltips show the current value, for example
`Activo: SI` or `Activo: NO`.
2026-06-27 16:22:33 +01:00
Kent Riboe c6773f8390 Migrate TOTP exceptions to TotpexceptionHandler class (#1007)
refactor code to use the PFAHandler approach, allowing re-use of list.php and edit.php.
2026-04-18 10:22:54 +01:00
David Goodwin ce03433b52 Merge pull request #957 from postfixadmin/psalm-fixes
Upgrade PHP / libraries / general refactoring

see https://github.com/postfixadmin/postfixadmin/pull/957
2026-02-11 20:53:07 +00:00
David Goodwin 12818f398e try and improve docs around $CONF["dovecotpw"] in config.inc.php (see #398) 2026-02-04 20:54:52 +00:00
David Goodwin 731492676b bump postfixadmin version for 4.0.1 2026-01-28 09:50:26 +00:00
arymaynart 89d016e638 Add smtp_username to email configuration
Added smtp_username configuration for email settings.
2025-12-19 17:23:01 -03:00
David Goodwin d9811872cc update docs + changelog to highlight pacol() function move into PFAHandler 2025-07-14 08:41:03 +01:00
David Goodwin 460c624275 remove more references to sourceforge 2025-07-13 18:29:37 +01:00
David Goodwin 14db6db23e config.inc.php: change version to 4.0 2025-07-12 19:20:28 +01:00
David Goodwin c97b92f17e change version string to 4.0-beta1 2025-06-01 15:37:04 +01:00
David Goodwin 999bfcfc54 drop support for mysql_encrypt, given MySQL after 5.7 has dropped it and we had not wired it into the pacrypt() function anyway, try and improve docs in config.inc.php 2025-05-28 09:41:22 +01:00
David Goodwin d8fb109038 remove unused config alias_goto_limit - see #915 2025-04-11 09:19:41 +01:00
Gianluca Giacometti bfebea5f3c Create new_mailbox_hook function (#864)
* Add new postcreate mailbox hook ( mailbox_postcreation_hook ) - which can be called after a mailbox is created (similar to mailbox_postcreation_script). 

Thanks @gianlucagiacometti !
2024-11-09 08:23:26 +00:00
David Goodwin 62a76734c9 see #812 - remove config options for create_mailbox_subdirs_* due to the php-imap module being deprecated; leave in an error_log message to perhaps avoid future support tickets asking why this does not work 2024-04-01 19:38:31 +01:00
David Goodwin eda637df1a Merge branch 'master' into michaelkrieger-patch-1 2024-01-11 08:51:17 +00:00
John Fawcett 668960ccf6 Add a flag to mailbox table for enable/disable smtp protocol. The table column name
is "smtp_active". This enables use of this flag instead of active flag for postfix
mysql queries. There is a new configuration parameter $CONF['smtp_active_flag'] =
YES or NO, which defaults to NO, providing the existing behaviour. When set to YES
the active_smtp field is displayed in the edit mode and can be modified.
The commit includes update to the language files and documentation.

The commit does not include the code to add the field to existing installs,
which I presume can be added during the release cycle in upgrade.php along the
lines of:

_db_add_field('mailbox',  'smtp_active', 'int DEFAULT 1');
2024-01-09 20:50:49 +01:00
David Goodwin 4d17aa6ef9 manaul merge in of verdigado:master (see #753) (MFA/TOTP support) 2023-12-23 17:05:52 +00:00
Fredrik Boström 7b8532b2b0 Add javascript check for illegal characters in username
Signed-off-by: Fredrik Boström <fredrik.bostroem@verdigado.com>
2023-09-26 14:12:33 +02:00
David Goodwin 375350cadd reformat a little 2022-11-30 21:18:40 +00:00
Christian Boltz 9ec3196c6d Whitespace fixes 2022-07-18 22:55:24 +02:00
Fredrik Falk 9e73025058 Add Domain Key handling 2022-06-23 20:40:06 +02:00
David Goodwin 760600cb56 one or more of something needs {1,} not {1} ... 2022-02-13 20:32:39 +00:00
Oliver Cooper 35ecb62730 Add password special character support 2022-02-13 17:21:20 +00:00
Davide Beatrici 626bd43def Add support for implicit TLS, replace "smtp_sendmail_tls" with "smtp_type"
For reference: https://datatracker.ietf.org/doc/html/rfc8314

Please note that this only applies to the "send email" feature.

In the future we should implement it for the "fetch email" one too.
2021-11-29 07:10:20 +01:00
David Goodwin 89f3ba5387 try and improve documentation in config.inc.php 2021-11-14 20:49:58 +00:00
David Goodwin 6f7e69f21b improve docs 2021-09-29 21:05:03 +01:00
BotoX 768f2ee844 Improve dovecot mail-crypt postpassword script security (pipe password instead of passing on cmdline)
Suggested from: https://github.com/postfixadmin/postfixadmin/issues/441#issuecomment-774736944
2021-06-13 12:24:27 +02:00
Sven Strickroth 74a12b4f0c Add support for domain_postedit_script
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2021-05-08 18:27:44 +02:00
David Goodwin c755e82a36 Merge branch 'postfixadmin_3.3' 2021-02-18 12:12:27 +00:00
David Goodwin 1a9d9847f5 bump version 2021-02-17 21:32:06 +00:00
David Goodwin 5aee2ca4f8 update CHANGELOG and version 2021-02-17 17:21:47 +00:00
David Goodwin d9813d4cf8 see #446 - try and detect site url but allow for $CONF['site_url'] override to be used. 2021-02-07 20:35:58 +00:00
David Goodwin be1f922f7e change reference to file 2021-01-29 21:18:29 +00:00
David Goodwin 9305a250fb change the default password hash to one that may be more secure; add note 2021-01-28 17:04:21 +00:00
David Goodwin 9da4431bef Merge branch 'postfixadmin_3.3' 2021-01-27 22:02:29 +00:00
David Goodwin 96a022747c release 3.3.5 perhaps 2021-01-27 22:01:32 +00:00
David Goodwin 97ae019e10 remove duplication; comment out the length_check password_verify rule as we already have /.{5}/ 2021-01-27 10:56:40 +00:00
David Goodwin 237615502a Merge remote-tracking branch 'origin/postfixadmin_3.3' 2021-01-27 09:29:57 +00:00
David Goodwin e15d9abe06 improve comment, fix return value in callable for password_verify. 2021-01-26 21:06:35 +00:00