81 Commits
Author SHA1 Message Date
Pranav GargandClaude Opus 5.5 a2ee929eda fetchmail.pl: add SQLite support
Accept $db_type = 'SQLite' with $db_name as the path to the database
file. SQLite has no now() or unix_timestamp(), so use strftime('%s', ...)
for the poll interval check and datetime('now') when storing the poll
time. Booleans are 1/0 on SQLite, the same as MySQL.

Requested in https://github.com/postfixadmin/postfixadmin/discussions/1197

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 19:23:47 +00: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 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 63f91b649f Clarify sudoers rules across optional hook sets (#1082)
- Clarifies that the documented `sudoers` policy applies to every enabled PostfixAdmin hook, not only to the optional Rspamd integration.
- Explains which generic rules remain in place and when the composite Rspamd domain-deletion rule replaces the direct domain-deletion rule.

thanks @TrapoSAMA
2026-07-19 19:38:09 +01:00
Rodrigo Cortés Cano f3e10ce573 Harden optional mailbox hooks and add Rspamd DKIM examples (#1079)
- harden the existing optional Maildir domain, mailbox creation/deletion and Dovecot mail-crypt hooks
- validate hook argument contracts and keep all derived paths below their configured base directories
- quote filesystem operations, check command failures and make deletion hooks safely retryable
- update the Dovecot password example for the prompt behaviour available since Dovecot 2.3.19, with a Dovecot 2.4 setting note 
- add optional Rspamd DKIM creation/deletion helpers, a privilege-separated composite domain hook and deployment documentation

These hooks remain optional and disabled by default. Administrators must review the configured paths and service-account names before installation. The mail-crypt password example now requires Dovecot 2.3.19 or newer; its comment identifies the setting name needed by Dovecot 2.4.
2026-07-19 09:50:48 +01:00
Christian Boltz 08ab2a3f19 mailbox_remover.pl: whitespace fix 2025-10-09 21:57:13 +02:00
VersusBG 79f9729040 Update mailbox_remover.pl
Add support for PostgreSQL
2025-10-07 15:41:41 +03:00
David Goodwin 460c624275 remove more references to sourceforge 2025-07-13 18:29:37 +01:00
David Goodwin 759304ecb8 apparently these all need reformatting 2024-12-05 14:33:41 +00:00
David Goodwin fa78207f07 actually test script, might work? 2024-12-02 11:50:14 +00:00
David Goodwin dffc938bf7 naive attempt at moving this to python3 - see https://github.com/postfixadmin/postfixadmin/issues/875 2024-12-02 11:34:21 +00:00
David Goodwin f01274ec94 try relaxing composer dependencies to allow php8.2 dev support, reformat so composer format passes 2024-04-22 21:02:01 +01:00
David Goodwin 594a847dca add missing src_port to sql query and perl - see #784 - thanks @tempixx 2023-11-24 12:08:07 +00:00
David Goodwin ecdd40c9aa see #782 - merge in fix from @johnfawcett - escape slashes in the raw password 2023-11-20 21:58:15 +00:00
David Goodwin da143ca382 Merge pull request #745 from ozgurkazancci/patch-2
Update postfixadmin-mailbox-postdeletion.sh - grammar correction
2023-07-23 19:30:28 +01:00
Özgür Konstantin Kazanççı cc626b249e Update postfixadmin-mailbox-postdeletion.sh - grammar correction
Grammar correction: I -> It
2023-07-23 15:28:35 +03:00
Özgür Konstantin Kazanççı 0f3e7b41da Update postfixadmin-domain-postdeletion.sh - grammar correction
grammar correction
2023-07-23 15:27:26 +03:00
David Goodwin 78174d8f67 fix fetchmail using wrong arg for pidfile and mixing up state file (-i vs --pidfile) - see https://github.com/postfixadmin/postfixadmin/issues/681 2022-11-13 18:58:29 +00:00
David Goodwin ce05c3e844 see https://github.com/postfixadmin/postfixadmin/issues/646 - add note/comment, doing version parsing in bash to make the script handle it seems clumsy and verbose 2022-08-02 09:15:37 +01:00
David Goodwin 2d6ded2786 PSR2 -> PSR12 formatting 2022-06-28 13:46:11 +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
David Goodwin 7acd914ebd rename, prettify, add link to cyrus quota script 2021-05-21 20:09:20 +01:00
David Goodwin 2edabc3e03 phpcs insists on some brace changes 2021-04-13 21:19:16 +01:00
David Goodwin 336259957d Merge remote-tracking branch 'origin/postfixadmin_3.3' 2021-01-25 21:58:31 +00:00
David Goodwin e86ed4499d this might fix update_quota.pl to work with teh quota2 table 2021-01-25 20:04:43 +00:00
BotoX c6ae3ea2f3 Suport for dovecot mail-crypt-plugin via new mailbox_postpassword_script hook.
Uses doveadm mailbox cryptokey on create user / password change to adjust user encryption key.
https://doc.dovecot.org/configuration_manual/mail_crypt_plugin/
2021-01-11 21:07:45 +01:00
Hitoshi Kurokawa d668655c36 add missing semicolon 2020-06-08 18:35:26 +09:00
David Goodwin 8f20c96278 see: https://github.com/postfixadmin/postfixadmin/issues/101 - in Debian Buster, /var/lock is writeable by anyone, /var/run is not... both are tmpfs 2020-03-14 21:17:32 +00:00
Stefan M. Hessenauer 416a71d604 short documentation added, path to deliver as configuration option 2020-02-12 00:01:34 +01:00
Stefan M. Hessenauer 352ae80395 fetchmail dovecot delivery 2020-02-09 16:06:03 +01:00
David Goodwin f8713651cc explode if $run_dir is not specified; make a config setting and perhaps shift the onus onto the user rather than having to deal with tmpfiles.d etc
See: https://github.com/postfixadmin/postfixadmin/issues/78
2019-09-14 21:27:51 +01:00
David Goodwin 020343999a Merge pull request #221 from SuperVirus/fetchmail_different_source_port
Allow different port for fetchmail
2019-01-07 21:56:28 +00:00
David Goodwin 4fcdba9cf4 run php-cs-fixer (code reforamt) 2018-12-28 19:31:43 +00:00
David Goodwin 76ec4bc84d token psalm fixes 2018-12-28 19:18:05 +00:00
Christoph 'SuperVirus' Heitkamp d35e66808b Allow different port for fetchmail 2018-12-17 13:29:07 +01:00
David Goodwin b4a16a0313 quote shell vars 2018-11-22 14:54:18 +00:00
David Goodwin 435d97c282 try looking for alternatives to maildirmake etc - see #213 2018-11-21 15:43:06 +00:00
David Goodwin f8d7844767 reduce some nesting of the code loops 2018-02-23 20:36:18 +00:00
Tadas Ustinavičius 9ab2eaedc6 Only delete Sieve directory if it really exists 2018-02-23 22:03:51 +02:00
Tadas Ustinavičius d986e26be8 Making virtualmaidel.php remove Sieve filters if they exist 2018-02-23 09:09:01 +02:00
Adrien Crivelli 15df6c1d7b Reformat everything with PHP-Cs-Fixer 2018-01-26 23:54:37 +09:00
David Goodwin 82e7bdfda3 fix surname typo 2017-09-01 09:07:34 +01:00
David Goodwin 9dbeb68f9a add TODO 2017-08-31 12:47:25 +01:00
David Goodwin 2b04b72072 remove unnecessary nesting, reindent, make it print out what it might do before breaking stuff etc 2017-08-31 12:45:33 +01:00
Seitanas 72288b8402 Updated to use PHP mysqli extension. 2017-08-31 11:59:47 +03:00
David Goodwin 3b481082c4 Update README.md 2017-05-26 10:15:44 +01:00
David Goodwin 8bb1c4f459 update squirrelmail plugin 2017-05-26 10:14:42 +01:00
David Goodwin 483bb83edc see #377 - looks like the pg+mysql check is partly the wrong way around - mysql only has ints....
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1856 a1433add-5e2c-0410-b055-b7f2511e0802
2016-08-10 10:54:53 +00:00
Christian Boltz 8bad929a44 fetchmail.pl:
- add active=1/t to SQL query


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1766 a1433add-5e2c-0410-b055-b7f2511e0802
2015-04-04 14:26:21 +00:00
Christian Boltz 584a85216d INSTALL.TXT, ADDITIONS/squirrelmail-plugin/INSTALL
- add required version of Zend Framework (1.12.x) and a warning that 2.x
  won't work (reported by seboulba on IRC)



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1699 a1433add-5e2c-0410-b055-b7f2511e0802
2014-10-20 21:23:54 +00:00