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>
28 lines
839 B
Text
28 lines
839 B
Text
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'
|
|
|