Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
postfix-nullclient-formula
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
salt
postfix-nullclient-formula
Commits
6fb1de24
Commit
6fb1de24
authored
5 years ago
by
Jan Philipp Timme
Browse files
Options
Downloads
Patches
Plain Diff
Add README.md, update a bunch of comments
parent
cfc5554e
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+18
-0
18 additions, 0 deletions
README.md
pillar.example
+4
-0
4 additions, 0 deletions
pillar.example
postfix/nullclient/etc/postfix/main.cf
+4
-2
4 additions, 2 deletions
postfix/nullclient/etc/postfix/main.cf
with
26 additions
and
2 deletions
README.md
0 → 100644
+
18
−
0
View file @
6fb1de24
# postfix-nullclient-formula
This is a simple collection of states that replace default exim4 with a postfix installation that acts as a nullclient.
Throw it onto your machine and it will submit mails easily.
Two things are configurable using pillar:
*
relayhost (which server to use for submitting emails)
*
rootmail-destination (which address to forward mail for local users to)
# pillar example
```
postfix:
nullclient:
relayhost: 'smtp.hs-hannover.de'
rootmail-destination: 'web-rootmails@hs-hannover.de'
```
This diff is collapsed.
Click to expand it.
pillar.example
0 → 100644
+
4
−
0
View file @
6fb1de24
postfix:
nullclient:
relayhost: 'smtp.example.com'
rootmail-destination: 'rootmails@example.com'
This diff is collapsed.
Click to expand it.
postfix/nullclient/etc/postfix/main.cf
+
4
−
2
View file @
6fb1de24
### THIS FILE IS MANAGED BY SALT STATE `postfix.nullclient`
### YOUR CHANGES WILL BE OVERWRITTEN!
{% set minion_id = grains['id'] %}
# Set compatibility level
compatibility_level = 2
myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name
(Debian/GNU)
smtpd_banner = $myhostname ESMTP $mail_name
biff = no
# appending .domain is the MUA's job.
...
...
@@ -26,7 +28,7 @@ smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname = {{ minion_id }}
# Forward e
verything to the OTRS queue
# Forward e
mails for local users to this address for easy collection
alias_maps = static:web-rootmails@hs-hannover.de
alias_database =
local_recipient_maps = unix:passwd.byname
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment