Skip to content

Commit

Permalink
Run spamassassin as vexim user
Browse files Browse the repository at this point in the history
  • Loading branch information
Udera committed May 1, 2017
1 parent 756fc7f commit 6133e08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 7 additions & 0 deletions docs/configure
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,13 @@ av_scanner = clamd:/var/run/clamav/clamd

spamd_address = 127.0.0.1 783

# User who passes mails to spamassassin. He should have a home directory in order
# to save configuration and scanning data (e.g. for Bayes filter). The default
# vexim-user can be used for this purpose. If the user does not exist, SpamAssassin
# will fall back to "nobody" and default settings, with all consequences.

VEXIM_SA_USERNAME = vexim

# Specify the domain you want to be added to all unqualified addresses
# here. An unqualified address is one that does not contain an "@" character
# followed by a domain. For example, "[email protected]" is a fully qualified
Expand Down
4 changes: 1 addition & 3 deletions docs/vexim-acl-check-content.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@

# Pass missing spam score and report data to routers and transports, but do not reject anything yet.
# Also, if set, remove X-Spam-* headers here: we will add our own ones later.
# NOTE: If the "maildeliver" user does not exist, SpamAssassin will fall back to "nobody" and default
# settings, with all consequences. You may want to change this user name and/or create a user.
#
warn spam = maildeliver:true
warn spam = VEXIM_SA_USERNAME:true
set acl_m_spam_score = $spam_score
set acl_m_spam_bar = $spam_bar
set acl_m_spam_report = $spam_report
Expand Down

0 comments on commit 6133e08

Please sign in to comment.