Skip to content
Snippets Groups Projects
Verified Commit 4ad9050c authored by Frederik Schwan's avatar Frederik Schwan Committed by Giancarlo Razzolini
Browse files

use fetchmail to deliver mail to patchwork

parent 77ee85e5
No related branches found
No related tags found
No related merge requests found
---
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
......
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 }
......
---
- name: restart fetchmail
service: name=fetchmail state=restarted
---
- 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
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 }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment