Convert to RHEL support
parent
6c3a9e3f88
commit
ddf6609a28
@ -0,0 +1,28 @@
|
||||
[Unit]
|
||||
Description=msmtp daemon
|
||||
Documentation=man:msmtpd(1)
|
||||
|
||||
[Service]
|
||||
DynamicUser=true
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
NoNewPrivileges=true
|
||||
# NoNewPrivileges prevents the setgid mechanism from working
|
||||
# so since msmtp is setgid in order to read /etc/msmtprc, the
|
||||
# msmtp group need to be added in a different way
|
||||
SupplementaryGroups=msmtp
|
||||
|
||||
Environment=INTERFACE=127.0.0.1 PORT=25
|
||||
EnvironmentFile=-/etc/sysconfig/msmtpd
|
||||
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/msmtpd --interface=${INTERFACE} --port=${PORT}
|
||||
|
||||
Restart=always
|
||||
RestartSec=60
|
||||
|
||||
ProtectHome=true
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -1,26 +0,0 @@
|
||||
galaxy_info:
|
||||
author: Adham Helal, Christian Wagner
|
||||
description: "Deploy msmtp mailer on Debian and Ubuntu"
|
||||
min_ansible_version: 2.4
|
||||
license: Apache
|
||||
platforms:
|
||||
- name: Debian
|
||||
versions:
|
||||
- jessie
|
||||
- stretch
|
||||
- buster
|
||||
- name: Ubuntu
|
||||
versions:
|
||||
- trusty
|
||||
- xenial
|
||||
- bionic
|
||||
- name: ArchLinux
|
||||
versions:
|
||||
- any
|
||||
- name: Alpine
|
||||
versions:
|
||||
- any
|
||||
tags:
|
||||
- mail
|
||||
- system
|
||||
- networking
|
@ -0,0 +1,98 @@
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
# Aliases in this file will NOT be expanded in the header from
|
||||
# Mail, but WILL be visible over networks or from /bin/mail.
|
||||
#
|
||||
# >>>>>>>>>> The program "newaliases" must be run after
|
||||
# >> NOTE >> this file is updated for any changes to
|
||||
# >>>>>>>>>> show through to sendmail.
|
||||
#
|
||||
|
||||
# Basic system aliases -- these MUST be present.
|
||||
mailer-daemon: postmaster
|
||||
postmaster: root
|
||||
|
||||
# General redirections for pseudo accounts.
|
||||
bin: root
|
||||
daemon: root
|
||||
adm: root
|
||||
lp: root
|
||||
sync: root
|
||||
shutdown: root
|
||||
halt: root
|
||||
mail: root
|
||||
news: root
|
||||
uucp: root
|
||||
operator: root
|
||||
games: root
|
||||
gopher: root
|
||||
ftp: root
|
||||
nobody: root
|
||||
radiusd: root
|
||||
nut: root
|
||||
dbus: root
|
||||
vcsa: root
|
||||
canna: root
|
||||
wnn: root
|
||||
rpm: root
|
||||
nscd: root
|
||||
pcap: root
|
||||
apache: root
|
||||
webalizer: root
|
||||
dovecot: root
|
||||
fax: root
|
||||
quagga: root
|
||||
radvd: root
|
||||
pvm: root
|
||||
amandabackup: root
|
||||
privoxy: root
|
||||
ident: root
|
||||
named: root
|
||||
xfs: root
|
||||
gdm: root
|
||||
mailnull: root
|
||||
postgres: root
|
||||
sshd: root
|
||||
smmsp: root
|
||||
postfix: root
|
||||
netdump: root
|
||||
ldap: root
|
||||
squid: root
|
||||
ntp: root
|
||||
mysql: root
|
||||
desktop: root
|
||||
rpcuser: root
|
||||
rpc: root
|
||||
nfsnobody: root
|
||||
pcp: root
|
||||
|
||||
ingres: root
|
||||
system: root
|
||||
toor: root
|
||||
manager: root
|
||||
dumper: root
|
||||
abuse: root
|
||||
|
||||
newsadm: news
|
||||
newsadmin: news
|
||||
usenet: news
|
||||
ftpadm: ftp
|
||||
ftpadmin: ftp
|
||||
ftp-adm: ftp
|
||||
ftp-admin: ftp
|
||||
www: webmaster
|
||||
webmaster: root
|
||||
noc: root
|
||||
security: root
|
||||
hostmaster: root
|
||||
info: postmaster
|
||||
marketing: postmaster
|
||||
sales: postmaster
|
||||
support: postmaster
|
||||
|
||||
|
||||
# trap decode to catch security attacks
|
||||
decode: root
|
||||
|
||||
# Person who should get root's mail
|
||||
root: {{ msmtp_alias_root if msmtp_alias_root is defined else msmtp_alias_default }}
|
@ -1,10 +0,0 @@
|
||||
# {{ ansible_managed }}
|
||||
#### /etc/aliases
|
||||
#root mail
|
||||
root: {{ msmtp_alias_root if msmtp_alias_root is defined else msmtp_alias_default }}
|
||||
|
||||
#cron mail
|
||||
cron: {{ msmtp_alias_cron if msmtp_alias_cron is defined else msmtp_alias_default }}
|
||||
|
||||
#default all other mails
|
||||
default: {{msmtp_alias_default}}
|
@ -0,0 +1,2 @@
|
||||
# {{ ansible_managed }}
|
||||
INTERFACE={{msmtp_listen_interface}}
|
Loading…
Reference in New Issue