Skip to content

Commit

Permalink
neomutt: configure neomutt folder used by postfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jchristgit authored and jb3 committed Jul 31, 2024
1 parent db78d8a commit efc8f04
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 3 deletions.
23 changes: 23 additions & 0 deletions ansible/roles/neomutt/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
- name: Install neomutt
package:
name: neomutt
state: present
tags:
- role::neomutt

- name: Configure neomutt folder to standard destination
copy:
content: |
# Ansible managed
# neomutt will user ~/Mail by default, whilst our postfix installation
# will deliver mail to /var/mail/$USER instead. neomutt will also figure that out,
# but not without prompting whether to create ~/Mail on every startup first.
set folder = /var/mail/$USER
owner: root
group: root
mode: "0o444"
dest: /etc/neomuttrc.d/pydis.rc
tags:
- role::neomutt
4 changes: 4 additions & 0 deletions ansible/roles/postfix/meta/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
dependencies:
# Mail client
- neomutt
4 changes: 1 addition & 3 deletions ansible/roles/postfix/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- name: Install postfix & mail client
- name: Install postfix & tools
package:
name:
# Postfix & routing plugins
Expand All @@ -9,8 +9,6 @@
- postsrsd
# Security and anti-spam tools
- postfix-policyd-spf-python
# Mail clients
- neomutt
state: present
tags:
- role::postfix
Expand Down

0 comments on commit efc8f04

Please sign in to comment.