emailrelay.init 510 B

123456789101112131415
  1. #!/bin/sh /etc/rc.common
  2. #see http://emailrelay.sourceforge.net/reference.html for command line reference
  3. START=90
  4. start() {
  5. logger -t 'emailrelay' "Starting emailrelay service."
  6. 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
  7. }
  8. stop() {
  9. logger -t 'emailrelay' "Stopping emailrelay service."
  10. service_stop /usr/bin/emailrelay
  11. }