username: null
password: null
tls: true
+ disable_starttls: false
ca_file: null # Used for self signed certificates
from_address: 'admin@example.com'
username: null
password: null
tls: true
+ disable_starttls: false
ca_file: null # Used for self signed certificates
from_address: 'admin@example.com'
hostname: null
port: 1025
tls: false
+ disable_starttls: true
from_address: 'test-admin@localhost'
username: null
password: null
USERNAME: config.get<string>('smtp.username'),
PASSWORD: config.get<string>('smtp.password'),
TLS: config.get<boolean>('smtp.tls'),
+ DISABLE_STARTTLS: config.get<boolean>('smtp.disable_starttls'),
CA_FILE: config.get<string>('smtp.ca_file'),
FROM_ADDRESS: config.get<string>('smtp.from_address')
},
secure: CONFIG.SMTP.TLS,
debug: CONFIG.LOG.LEVEL === 'debug',
logger: bunyanLogger as any,
- ignoreTLS: isTestInstance() || CONFIG.SMTP.HOSTNAME === 'localhost' || CONFIG.SMTP.HOSTNAME === '127.0.0.1',
+ ignoreTLS: CONFIG.SMTP.DISABLE_STARTTLS,
tls,
auth
})
username: null
password: null
tls: true
+ disable_starttls: false
ca_file: null # Used for self signed certificates
from_address: 'admin@example.com'