Skip to content

Commit ac57e9a

Browse files
committed
added aliases for sendmail
1 parent b41efce commit ac57e9a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tasks/main.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,23 @@
123123
sendmail_for_docker_bridge_network_name: perun_net
124124
sendmail_for_docker_config: "{{ perun_sendmail_config }}"
125125

126+
- name: "set up /etc/aliases for sendmail"
127+
when: not perun_smtp_use_msmtp
128+
loop:
129+
- postmaster
130+
- postgres
131+
- perun
132+
- perunrpc
133+
- peruneng
134+
- perunldc
135+
lineinfile:
136+
path: /etc/aliases
137+
regexp: "^{{ item }}:"
138+
line: "{{ item }}: root"
139+
state: present
140+
notify: "run newaliases"
141+
tags: [ 'aliases']
142+
126143
- name: "msmtp MTA setup (forwarding emails to a SMTP relay)"
127144
when: perun_smtp_use_msmtp
128145
include_role:

0 commit comments

Comments
 (0)