Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

Remove extra.cf related records

lotk5c43ca15d009
diff --git a/core/internal/controller/relay/relay.go b/core/internal/controller/relay/relay.go
index 4e1e9ade..25b5bd70 100644
--- a/core/internal/controller/relay/relay.go
+++ b/core/internal/controller/relay/relay.go
@@ -28,12 +28,12 @@ import (
var (
postfixConfigDir = public.AbsPath("../conf/postfix")
- senderRelayFile = "/conf/sender_relay"
- saslPasswdFile = "/conf/sasl_passwd"
- senderTransportFile = "/conf/sender_transport_relay"
- headerChecks = "/conf/header_checks"
- mainCfFile = "main.cf"
- mainCfFileExtra = "/conf/extra.cf"
+ senderRelayFile = "/conf/sender_relay"
+ saslPasswdFile = "/conf/sasl_passwd"
+ senderTransportFile = "/conf/sender_transport_relay"
+ headerChecks = "/conf/header_checks"
+ mainCfFile = "main.cf"
+ //mainCfFileExtra = "/conf/extra.cf"
postfixContainerName = "billionmail-postfix-billionmail-1"
)
@@ -561,9 +561,10 @@ func ensurePostfixRelayConfig(mainCfPath string, enableRelay bool) error {
return err
}
- // extra.cf
- extraCfPath := path.Join(postfixConfigDir, mainCfFileExtra)
- return writePostfixRelayConfig(extraCfPath, enableRelay)
+ //// extra.cf
+ //extraCfPath := path.Join(postfixConfigDir, mainCfFileExtra)
+ //return writePostfixRelayConfig(extraCfPath, enableRelay)
+ return nil
}
// writePostfixRelayConfig