mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-09-28 18:31:59 +02:00
use fetchmail to deliver mail to patchwork
This commit is contained in:
parent
77ee85e5b5
commit
4ad9050c24
@ -1,6 +1,8 @@
|
||||
---
|
||||
filesystem: btrfs
|
||||
memcached_socket: "/var/run/patchwork.sock"
|
||||
fetchmail_user: "patchwork@archlinux.org"
|
||||
fetchmail_delivery_cmd: "/usr/local/bin/patchwork-parsemail-wrapper.sh"
|
||||
|
||||
fail2ban_jails:
|
||||
sshd: true
|
1
host_vars/patchwork.archlinux.org/vault_patchwork.yml
Normal file
1
host_vars/patchwork.archlinux.org/vault_patchwork.yml
Normal file
@ -0,0 +1 @@
|
||||
fetchmail_pass: none
|
@ -12,6 +12,7 @@
|
||||
- { role: certbot }
|
||||
- { role: nginx }
|
||||
- { role: postfix, postfix_relayhost: "mail.archlinux.org" }
|
||||
- { role: fetchmail }
|
||||
- { role: postgres }
|
||||
- { role: sudo }
|
||||
- { role: uwsgi }
|
||||
|
4
roles/fetchmail/handlers/main.yml
Normal file
4
roles/fetchmail/handlers/main.yml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
|
||||
- name: restart fetchmail
|
||||
service: name=fetchmail state=restarted
|
12
roles/fetchmail/tasks/main.yml
Normal file
12
roles/fetchmail/tasks/main.yml
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
|
||||
- name: install fetchmail
|
||||
pacman: name=fetchmail state=present
|
||||
|
||||
- name: template fetchmail config
|
||||
template: src=fetchmailrc.j2 dest=/etc/fetchmailrc owner=fetchmail group=nobody mode=600
|
||||
notify:
|
||||
- restart fetchmail
|
||||
|
||||
- name: start and enable fetchmail
|
||||
service: name=fetchmail enabled=yes state=started
|
13
roles/fetchmail/templates/fetchmailrc.j2
Normal file
13
roles/fetchmail/templates/fetchmailrc.j2
Normal file
@ -0,0 +1,13 @@
|
||||
set postmaster "postmaster@archlinux.org"
|
||||
set bouncemail
|
||||
set no spambounce
|
||||
set daemon 10
|
||||
set syslog
|
||||
|
||||
poll mail.archlinux.org
|
||||
bad-header accept
|
||||
proto imap
|
||||
user {{ fetchmail_user }}
|
||||
password {{ fetchmail_pass }}
|
||||
options idle sslcertck ssl sslproto "TLS1.2+" limitflush limit 25000000 fetchall
|
||||
mda "{{ fetchmail_delivery_cmd }}"
|
Loading…
Reference in New Issue
Block a user