If hpfeeds shall be enabled, you must set either
a) the following environment variables
HPFEEDS_SERVER, HPFEEDS_PORT, HPFEEDS_IDENT, HPFEEDS_SECRET, HPFEEDS_CHANNELPREFIXor
b) add corresponding arguments -hpfserver, -hpfport, -hpfident, -hpfsecret, -hpfchannelprefix
In case they are not set, it will behave as before and only log locally.
The mailserver name can now also be set via env variable MAILSERVER_NAME / -s
Further a logpath (-logpath/ env: LOGPATH) is introduced, so you can choose to redirect the logging to another location, eg. to another partition.
The logging to hpfeeds is done in json for easier processing.
Only implemented it for schizo_open_relay, as I think this is the most useful. However, you can easily port it to the other ones, too.
Hope you find it useful and accept the pull request. Cheers.
I added hpfeeds support for mailoney.
If hpfeeds shall be enabled, you must set either a) the following environment variables
HPFEEDS_SERVER, HPFEEDS_PORT, HPFEEDS_IDENT, HPFEEDS_SECRET, HPFEEDS_CHANNELPREFIX
or b) add corresponding arguments-hpfserver, -hpfport, -hpfident, -hpfsecret, -hpfchannelprefix
In case they are not set, it will behave as before and only log locally.
The mailserver name can now also be set via env variable
MAILSERVER_NAME
/-s
Further a logpath (
-logpath
/ env:LOGPATH
) is introduced, so you can choose to redirect the logging to another location, eg. to another partition.The logging to hpfeeds is done in json for easier processing.
Only implemented it for
schizo_open_relay
, as I think this is the most useful. However, you can easily port it to the other ones, too.Hope you find it useful and accept the pull request. Cheers.