Added Emailrelay package - Version 1.9 (Signed-off-by: Federico Di Marco fededim@gmail.com)

This commit is contained in:
fededim
2014-08-27 23:40:41 +02:00
parent f2b27cdef2
commit 85a429915a
3 changed files with 149 additions and 0 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 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."
killall -9 emailrelay
}