How to enable tls? #3097
Unanswered
i-am-henri
asked this question in
Help with using Postal
Replies: 2 comments 14 replies
-
When you say it isn't working, what are you trying? Did you restart Postal after updating the config file? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for your message @willpower232 🙏. I restarted postal after changing my postal.yml file. I'm trying to send an email secured with this code: import nodemailer from "nodemailer";
const transporter = nodemailer.createTransport({
host: 'mail.selfmail.app',
port: 25,
secure: false,
auth: {
user: 'selfmail-smtp-user',
pass: '...'
}
});
const mailOptions = {
from: 'henri <[email protected]>',
to: '...',
subject: '...',
text: '...',
};
// Sende die E-Mail
transporter.sendMail(mailOptions, (error, info) => {
if (error) {
return console.log(error);
}
}); I'm not sure which settings i should apply for the post and for the option And this is my postal.yml config file: version: 2
postal:
web_hostname: mail.selfmail.app
web_protocol: https
smtp_hostname: mail.selfmail.app
main_db:
host: 127.0.0.1
username: root
password: postal
database: postal
message_db:
host: 127.0.0.1
username: root
password: postal
prefix: postal
smtp_server:
default_bind_address: "::"
tls_enabled: true
dns:
# Specify the DNS records that you have configured. Refer to the documentation at
# https://github.com/atech/postal/wiki/Domains-&-DNS-Configuration for further
# information about these.
mx_records:
- mx.mail.selfmail.app
spf_include: spf.mail.selfmail.app
return_path_domain: rp.mail.selfmail.app
route_domain: routes.mail.selfmail.app
track_domain: track.mail.selfmail.app
smtp:
# Specify an SMTP server that can be used to send messages from the Postal management
# system to users. You can configure this to use a Postal mail server once the
# your installation has been set up.
host: 127.0.0.1
port: 2525
username: # Complete when Postal is running and you can
password: # generate the credentials within the interface.
from_name: Postal
from_address: mail.selfmail.app |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello 👋,
I have a question about enabling tls. How exactly can I create a secured connection (I'm very new in this space)? I followed the docs, ran the command
And added the option
tls_enabled: true
to my postal.yml file. But it's still not working? Maybe I forgot something?Beta Was this translation helpful? Give feedback.
All reactions