1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-09-22 03:30:46 +02:00

use fetchmail to deliver mail to patchwork

This commit is contained in:
Frederik Schwan 2020-12-23 03:02:09 +01:00 committed by Giancarlo Razzolini
parent 77ee85e5b5
commit 4ad9050c24
No known key found for this signature in database
GPG Key ID: F22FB1D78A77AEAB
6 changed files with 33 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1 @@
fetchmail_pass: none

View File

@ -12,6 +12,7 @@
- { role: certbot }
- { role: nginx }
- { role: postfix, postfix_relayhost: "mail.archlinux.org" }
- { role: fetchmail }
- { role: postgres }
- { role: sudo }
- { role: uwsgi }

View File

@ -0,0 +1,4 @@
---
- name: restart fetchmail
service: name=fetchmail state=restarted

View 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

View 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 }}"