From 3a3784932412cd32f329696d0e07300ee5ebefd9 Mon Sep 17 00:00:00 2001 From: Jordan Wright Date: Fri, 18 Nov 2016 19:05:47 -0600 Subject: [PATCH] Removed unneeded SMTP config in favor of the Sending Profiles. Fixes #434 --- config.json | 5 ----- config/config.go | 8 -------- 2 files changed, 13 deletions(-) diff --git a/config.json b/config.json index 8aae33de..893e7834 100644 --- a/config.json +++ b/config.json @@ -11,11 +11,6 @@ "cert_path" : "example.crt", "key_path": "example.key" }, - "smtp" : { - "host" : "smtp.example.com:25", - "user" : "username", - "pass" : "password" - }, "db_path" : "gophish.db", "migrations_path" : "db/migrations/" } diff --git a/config/config.go b/config/config.go index b64fad32..71db24d7 100644 --- a/config/config.go +++ b/config/config.go @@ -6,13 +6,6 @@ import ( "io/ioutil" ) -// SMTPServer represents the SMTP configuration details -type SMTPServer struct { - Host string `json:"host"` - User string `json:"user"` - Password string `json:"password"` -} - // AdminServer represents the Admin server configuration details type AdminServer struct { ListenURL string `json:"listen_url"` @@ -33,7 +26,6 @@ type PhishServer struct { type Config struct { AdminConf AdminServer `json:"admin_server"` PhishConf PhishServer `json:"phish_server"` - SMTPConf SMTPServer `json:"smtp"` DBPath string `json:"db_path"` MigrationsPath string `json:"migrations_path"` }