Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Please read through our [Contributing Guidelines](CONTRIBUTING.md).
- Run `sudo sh install.sh` to install initial environment.
- Put user password's hash in `/srv/users-passwords.txt`.
- Run `sudo salt '*' state.apply --state-verbose=false`.
- Replace `<SetYourAPIKey>` to your own [SendGrid API key](https://app.sendgrid.com/settings/api_keys) in `/etc/exim4/passwd.client` and run `systemctl restart exim4`
- Check email sending, run `bash mail-testert.sh user@domain.tld`.

### Add/Remove admin users
Expand Down
33 changes: 33 additions & 0 deletions salt/exim/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,36 @@ exim4_config_localmail:
- mode: replace
- content: 'domainlist local_domains = localhost : localhost.localdomain'
- match: 'domainlist local_domains = MAIN_LOCAL_DOMAINS'

exim4_config_localmacros:
file.managed:
- name: /etc/exim4/exim4.conf.localmacros
- contents: 'MAIN_TLS_ENABLE = 1'

exim4_conf:
file.managed:
- name: /etc/exim4/update-exim4.conf.conf
- contents: |
dc_eximconfig_configtype='smarthost'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1'
dc_readhost='opensourcewebsite.org'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='smtp.sendgrid.net::587'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'

exim4_passwd_client:
file.managed:
- name: /etc/exim4/passwd.client
- user: root
- group: Debian-exim
- mode: 640
- create: True
- replace: False
- contents: '*:apikey:<SetYourAPIKey>'