aboutsummaryrefslogtreecommitdiff
path: root/mail/emailrelay/files
diff options
context:
space:
mode:
authorRupan <fededim@gmail.com>2016-09-18 15:32:24 +0200
committerRupan <fededim@gmail.com>2016-10-04 12:23:17 +0200
commit57589398313a19cbe0999e72ce1fc57786f7c5c7 (patch)
tree91bde5e9f8eac0079de79b22bc6b75dcba552f1a /mail/emailrelay/files
parente1aa1994ce7c585ed2c1134d28a640eba65b47a8 (diff)
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>
Diffstat (limited to 'mail/emailrelay/files')
-rw-r--r--mail/emailrelay/files/emailrelay.auth16
-rw-r--r--mail/emailrelay/files/emailrelay.init15
2 files changed, 31 insertions, 0 deletions
diff --git a/mail/emailrelay/files/emailrelay.auth b/mail/emailrelay/files/emailrelay.auth
new file mode 100644
index 000000000..3d11bf0f2
--- /dev/null
+++ b/mail/emailrelay/files/emailrelay.auth
@@ -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 \ No newline at end of file
diff --git a/mail/emailrelay/files/emailrelay.init b/mail/emailrelay/files/emailrelay.init
new file mode 100644
index 000000000..9fc33996e
--- /dev/null
+++ b/mail/emailrelay/files/emailrelay.init
@@ -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
+}