mirror of
https://github.com/foxcpp/maddy.git
synced 2025-04-04 05:37:34 +03:00
Install integration scripts to libexec directory (/usr/lib/maddy)
We don't want to clutter /usr/bin/ with internal helpers, do we? On start-up, the libexec directory is added to the PATH environment variale. This allows reusing exec.LookPath logic, notably, to check whether the script is executable.
This commit is contained in:
parent
b9226622f4
commit
e27315ac23
5 changed files with 10 additions and 3 deletions
2
dist/install.sh
vendored
2
dist/install.sh
vendored
|
@ -24,4 +24,4 @@ install -Dm 0644 -t "$DESTDIR/$FAIL2BANDIR/filter.d/" fail2ban/filter.d/*
|
|||
install -Dm 0644 -t "$DESTDIR/$PREFIX/lib/systemd/system/" systemd/maddy.service systemd/maddy@.service
|
||||
|
||||
install -Dm 0644 -t "$DESTDIR/$CONFDIR/integration/" integration/rspamd.conf
|
||||
install -Dm 0755 -t "$DESTDIR/$PREFIX/bin/" scripts/maddy-rspamd-hook
|
||||
install -Dm 0755 -t "$DESTDIR/$PREFIX/lib/maddy/" scripts/rspamd-hook
|
||||
|
|
2
dist/integration/rspamd.conf
vendored
2
dist/integration/rspamd.conf
vendored
|
@ -8,7 +8,7 @@
|
|||
#
|
||||
|
||||
check {
|
||||
command maddy-rspamd-hook {source_ip} {source_host} {sender} {
|
||||
command rspamd-hook {source_ip} {source_host} {sender} {
|
||||
code 1 reject
|
||||
code 2 quarantine
|
||||
code 3 reject 450 4.7.0 "Message rejected due to a local policy"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue