2
0
forked from drew/smtprelay

Rename to smtprelay

This commit is contained in:
Bernhard Froehlich
2018-12-29 12:39:56 +00:00
parent ab341c697d
commit ade7cbca36
7 changed files with 10 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
# smtp-proxy # smtprelay
Simple Golang based SMTP relay/proxy server that accepts mail via SMTP Simple Golang based SMTP relay/proxy server that accepts mail via SMTP
and forwards it directly to another SMTP server. and forwards it directly to another SMTP server.

View File

@@ -1,4 +1,4 @@
package smtpproxy package smtprelay
import ( import (
"bufio" "bufio"

View File

@@ -1,4 +1,4 @@
package smtpproxy package smtprelay
import ( import (
"flag" "flag"
@@ -11,7 +11,7 @@ const (
) )
var ( var (
logFile = flag.String("logfile", "/var/log/smtpd-proxy.log", "Path to logfile") logFile = flag.String("logfile", "/var/log/smtprelay.log", "Path to logfile")
hostName = flag.String("hostname", "localhost.localdomain", "Server hostname") hostName = flag.String("hostname", "localhost.localdomain", "Server hostname")
welcomeMsg = flag.String("welcome_msg", "", "Welcome message for SMTP session") welcomeMsg = flag.String("welcome_msg", "", "Welcome message for SMTP session")
listen = flag.String("listen", "127.0.0.1:25 [::1]:25", "Address and port to listen for incoming SMTP") listen = flag.String("listen", "127.0.0.1:25 [::1]:25", "Address and port to listen for incoming SMTP")

2
go.mod
View File

@@ -1,4 +1,4 @@
module code.bluelife.at/decke/smtp-proxy module code.bluelife.at/decke/smtprelay
require ( require (
github.com/chrj/smtpd v0.1.2 github.com/chrj/smtpd v0.1.2

View File

@@ -1,4 +1,4 @@
package smtpproxy package smtprelay
import ( import (
"crypto/tls" "crypto/tls"
@@ -138,7 +138,7 @@ func main() {
ConfigLoad() ConfigLoad()
if *versionInfo { if *versionInfo {
fmt.Printf("smtpd-proxy/%s\n", VERSION) fmt.Printf("smtprelay/%s\n", VERSION)
os.Exit(0) os.Exit(0)
} }

View File

@@ -13,7 +13,7 @@
// Some external packages provide more functionality. See: // Some external packages provide more functionality. See:
// //
// https://godoc.org/?q=smtp // https://godoc.org/?q=smtp
package smtpproxy package smtprelay
import ( import (
"crypto/tls" "crypto/tls"

View File

@@ -1,7 +1,7 @@
; smtp-proxy configuration ; smtprelay configuration
; Logfile ; Logfile
;logfile = /var/log/smtpd-proxy.log ;logfile = /var/log/smtprelay.log
; Hostname for this SMTP server ; Hostname for this SMTP server
;hostname = "localhost.localdomain" ;hostname = "localhost.localdomain"