Armbian Simple SMTP
Packages
contrib/ssmtp/conf-light/packages.d/ssmtp.yml
Synopsis: Install Simple SMTP.
Use package (3) to install sSMTP.
[contrib/ssmtp/conf-light/packages.d/ssmtp.yml]
1---
2ssmtp:
3 module: pkgng
4 name:
5 - mail/ssmtp
See also
See packages.yml how the Linux packages are installed.
Files
contrib/ssmtp/config-light-ssmtp.yml
Synopsis: Custom variables for sSMTP.
Put the host-specific variables (7) into the host_vars. Optionally other variables might be put into the group_vars.
[contrib/ssmtp/config-light-ssmtp.yml]
1---
2
3# sSMTP - Simple SMTP
4# https://wiki.debian.org/sSMTP
5
6# linux-postinstall FQDN
7lp_fqdn: srv.example.com
8
9# NEVER USE PLAINTEXT PASSWORD. USE VAULT INSTEAD
10smtp_client_password_mail_example_com: PASSWORD
11
12# conf-light/files.d/ssmtp-conf
13cl_ssmtp_srv: mail.example.com
14cl_ssmtp_srv_domain: example.com
15
16cl_ssmtp_postmaster_address: postmaster@{{ lp_fqdn }}
17cl_ssmtp_mailhub: "{{ cl_ssmtp_srv }}:587"
18cl_ssmtp_rewriteDomain: "{{ cl_ssmtp_srv_domain }}"
19
20cl_ssmtp_usetls: true
21cl_ssmtp_usestarttls: true
22
23cl_ssmtp_authuser: smtp_client
24cl_ssmtp_authpass: "{{ smtp_client_password_mail_example_com }}"
25cl_ssmtp_authmethod: LOGIN
26
27cl_ssmtp_FromLineOverride: true
28
29# conf-light/files.d/revaliases
30cl_ssmtp_revaliases:
31 - root:root@{{ cl_ssmtp_srv_domain }}:{{ cl_ssmtp_srv }}:587
32 - admin:admin@{{ cl_ssmtp_srv_domain }}:{{ cl_ssmtp_srv }}:587
33 - user1:user1@{{ cl_ssmtp_srv_domain }}:{{ cl_ssmtp_srv }}:587
34
35# EOF
contrib/ssmtp/conf-light/files.d/revaliases.yml
Synopsis: Create file.
Create file (3) from the template (9).
[contrib/ssmtp/conf-light/files.d/revaliases.yml]
1---
2revaliases:
3 path: /etc/ssmtp/revaliases
4 force: true
5 owner: root
6 group: mail
7 mode: u=rw,g=r
8 template:
9 path: revaliases.j2
See also
See template revaliases.j2. See how files are created from template files-template.yml.
contrib/ssmtp/conf-light/files.d/ssmtp-conf.yml
Synopsis: Create file.
Create file (3) from the template (9).
[contrib/ssmtp/conf-light/files.d/ssmtp-conf.yml]
1---
2ssmtp_conf:
3 path: /etc/ssmtp/ssmtp.conf
4 force: true
5 owner: root
6 group: mail
7 mode: u=rw,g=r
8 template:
9 path: ssmtp.conf.j2
See also
See template ssmtp.conf.j2. See how files are created from template files-template.yml.