qusal/salt/mail/files/admin/policy/default.policy
Ben Grande 3d4ab18d28
feat: configure mail fetcher with offlineimap
- Use tags to help on the Qrexec policy notation;
- Create AppVMs also to fetch and send emails, useful for OfflineIMAP
  that requires sync;
- OfflineIMAP is smart enough depending on the server, such as Gmail;
- Quote options managed by the user such as password fields as they
  could contain spaces; and
- Default fetching method to always keep files on the remote to avoid
  users being surprised about the fetcher behavior or losing data.
2025-01-09 16:28:08 +01:00

15 lines
612 B
Plaintext

# SPDX-FileCopyrightText: 2023 - 2025 Benjamin Grande M. S. <ben.grande.b@gmail.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
## Do not modify this file, create a new policy with with a lower number in the
## file name instead. For example `30-user.policy`.
qusal.MailFetch * @tag:mail-fetcher @tag:mail-reader ask
qusal.MailFetch * @tag:mail-fetcher @default ask default_target=mail-reader
qusal.MailFetch * @anyvm @anyvm deny
qusal.MailEnqueue * @tag:mail-reader @tag:mail-sender ask
qusal.MailEnqueue * @tag:mail-reader @default ask
qusal.MailEnqueue * @anyvm @anyvm deny
## vim:ft=qrexecpolicy