Browse Source

Rename to smtprelay

Bernhard Fröhlich 3 months ago
parent
commit
ade7cbca36
Signed by: Bernhard Froehlich <decke@bluelife.at> GPG Key ID: 4DD88C3F9F3B8333
7 changed files with 10 additions and 10 deletions
  1. 1
    1
      README.md
  2. 1
    1
      auth.go
  3. 2
    2
      config.go
  4. 1
    1
      go.mod
  5. 2
    2
      main.go
  6. 1
    1
      smtp.go
  7. 2
    2
      smtprelay.ini

+ 1
- 1
README.md View File

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

+ 1
- 1
auth.go View File

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

+ 2
- 2
config.go View File

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

+ 1
- 1
go.mod View File

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

+ 2
- 2
main.go View File

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

+ 1
- 1
smtp.go View File

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

smtp-proxy.ini → smtprelay.ini View File

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

Loading…
Cancel
Save