mail/emailrelay: tune up initscript and config

Previously, configuration of emailrelay was done by fiddling around
with the commandline inside the initscript. Introduce a config file
in /etc/config for basic configuration and at the same time switch
to a procd-style initscript.

Signed-off-by: Paul Wassi <p.wassi@gmx.at>
This commit is contained in:
Paul Wassi
2017-11-16 11:38:11 +01:00
parent e83d0c0d8d
commit 084a9ee0c1
3 changed files with 90 additions and 10 deletions
+28
View File
@@ -0,0 +1,28 @@
config emailrelay 'server'
option enabled '0'
option mode 'server'
option port '25'
option remote_clients '0'
# option server_tls '/etc/path/to/certificate'
# option server_auth '/etc/emailrelay.auth'
# option extra_cmdline ''
config emailrelay 'proxy'
option enabled '0'
option mode 'proxy'
option smarthost '192.0.2.1:25'
option port '25'
option remote_clients '0'
# option server_tls '/etc/path/to/certificate'
# option server_auth '/etc/emailrelay.auth'
# option client_tls '1'
# option client_auth '/etc/emailrelay.auth'
# option extra_cmdline ''
config emailrelay 'cmdline'
option enabled '0'
option mode 'cmdline'
# specify all arguments that should be passed to emailrelay here
# see http://emailrelay.sourceforge.net/reference.html for command line reference
option extra_cmdline '--some-other --cmdline-options'