Skip to content

Commit fbdc07f

Browse files
committed
fix: fixed this.config.smtp setting for ssl
1 parent 4adfb33 commit fbdc07f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

index.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@ const transporterConfig = {
7171

7272
class ForwardEmail {
7373
constructor(config = {}) {
74-
this.ssl = {
75-
secure: false,
76-
...config.ssl
77-
};
78-
7974
this.config = {
8075
...sharedConfig('SMTP'),
8176
// TODO: eventually set 127.0.0.1 as DNS server
@@ -112,7 +107,10 @@ class ForwardEmail {
112107
...config
113108
};
114109

115-
this.config.smtp.ssl = this.config.ssl;
110+
this.config.smtp = {
111+
...this.config.smtp,
112+
...this.config.ssl
113+
};
116114

117115
// set up DKIM instance for signing messages
118116
this.dkim = new DKIM(this.config.dkim);

0 commit comments

Comments
 (0)