emailrelay: added configuration options

- moved from net to mail category
- removed no-ssl package and added ssl support as configuration option (default enabled)
- added configuration option to support extended logging (default disabled)
- disabled build of test tools
- added LEDE compatibility (support for openssl without SSL3)

Signed-off-by: Federico Di Marco <fededim@gmail.com>
This commit is contained in:
Rupan
2016-09-18 15:32:24 +02:00
parent e1aa1994ce
commit 5758939831
4 changed files with 53 additions and 42 deletions
+16
View File
@@ -0,0 +1,16 @@
#
# emailrelay secrets file
#
#see http://emailrelay.sourceforge.net/reference.html for reference
#Mostly used options:
#
#NONE server specifies ip address range allowed to connect to emailrelay SMTP server
#LOGIN client specifies the credentials to be used when forwarding emails to another SMTP server
#LOGIN server specifies the credentials to be needed to authenticate with the emailrelay SMTP server
#Examples:
#
#NONE server 192.168.1.* keyword
#LOGIN client smtpuser@smtpserver smtppassword
#LOGIN server user1 secret
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh /etc/rc.common
#see http://emailrelay.sourceforge.net/reference.html for command line reference
START=90
start() {
logger -t 'emailrelay' "Starting emailrelay service."
service_start /usr/bin/emailrelay --as-server --poll 60 --forward-to smtpserver:smtpport --spool-dir /tmp --client-tls --client-auth /etc/emailrelay.auth --server-auth /etc/emailrelay.auth --log
}
stop() {
logger -t 'emailrelay' "Stopping emailrelay service."
service_stop /usr/bin/emailrelay
}