Closed tsalsa919 closed 1 month ago
Port 25 is your MX, your receiving server. This mean you're telling your own MX you have a message for user@gmail.com, to which is of course says it doesn't know that user. Use the submission port 587 instead, that will queue your message in zone-mta.
If you're planning to be run a production mail server I'd recommend learning more about how email systems work before doing so. Happy experimenting!
Thanks for the tip. I have try it with port 587.
Then I get an SSL error. And I have set up tls.toml
to point the proper let's encrypt .pem files. Is it some config in zone-mta?
node:internal/process/promises:391 triggerUncaughtException(err, true /* fromPromise */);
^
[Error: 80BC814C517F0000:error:0A000410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1590:SSL alert number 40
] {
library: 'SSL routines',
reason: 'sslv3 alert handshake failure',
code: 'ESOCKET',
command: 'CONN'
}
Node.js v20.17.0
Just want to update. Still have NOT being able to figure out how to have zone-mta with the wildduck plugin setup to server starttls.
I have changed the starttls=true
and set the key
and certs
paths correct in
/etc/zone-mta/interfaces/feeder.toml
Still nothing. I have also set the files in /etc/wildduck/tls.toml
For now I just turned starttls=false and connect only using 127.0.0.1 from the localserver and that is working. But it would be good to setup wildduck to be able send SMTP using starttls and use the username/password auth of the wildduck accounts? Or what is the recommended way to setup this for wildduck? Or should we just sent email using API. I notice the role.md file is missing, would be cool if we can just make API call with accessToken for each account only authorized for that account? Is this working or it is in the roadmap?
Are you sure you are not using STARTTLS if the mail goes through? Nodemailer upgrades the connection to TLS by default.
Where is the configuration for Wildduck to listen for the network interface that is NOT just 127.0.0.1 ? Is it in Haraka or Zone-mta that is responsible for the port 587 and listening IP?
Ok so I have figured it out:
/etc/zone-mta/interfaces/feeder.toml
is what is controlling the host and port to listen on.
I have setup wildduck and I can send email just fine from wildduck-webmail. However, when I try to send an email using nodemailer. Just using the code below.:
Then I get the following error. The gmail user does exist. And if I replace the to email address to a email on the server (in this case contact@example.com), then it works. I can the email sent in contact@example.com
Any ideas? It it related to some LMTP/SMTP settings in the config?
Following is the error returned by nodemailer.