Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

lemmon's avatar
Level 28

digital ocean tls for eamil

Do I need postfix installed using a subdomain for login and registration verification?

and what is TLD?

0 likes
9 replies
laracoft's avatar

@lemmon

  1. TLD = top level domain, .com is a TLD, laracasts.com is a domain, www.laracasts.com is a subdomain
  2. But laracasts.com is also sometimes referred to as TLD in casual speak as most of us have no authority over .com or .net
  3. Postfix is for sending out emails, aka SMTP and/or SMTPD, it usually performs authentication against the server's PAM (Pluggable Authentication Module)

Not sure what you mean by "login and registration verification"

lemmon's avatar
Level 28

@laracoft I have built a login/registration/reset password system in laravel using fortify. When you register as a user with your email and chosen password, it sends you a verification email to click on a link and verify your email so you can enter the site. and if you forget your password you can get a link sent to your email to reset your password. I am using mailtrap.io to test if it works, and it works now I wan to incorporate postmark in place of mailtrap.

I want to do it correctly and securely.

I am learning.

laracoft's avatar
laracoft
Best Answer
Level 27

@lemmon

Notice the word postfix in your OP. Postfix is an entirely different app. :)

In case you were indeed asking about Postfix, you do not need to install Postfix if you are using Postmark

For Postmark, setup your account info/credentials in .env in the MAIL_xxx entries.

I found an example here https://postmarkapp.com/smtp-service

Take note for MAIL_DRIVER is only for Laravel 7 and prior. The new entry is MAIL_MAILER in Laravel 8. Suffice to say, use what you see in your .env.

If you messed up and not sure, check in config/mail.php to see if it is using MAIL_DRIVER or MAIL_MAILER

lemmon's avatar
Level 28

@laracoft I see so it is kinda the same as setting up mailtrap, and no postfix. but I do need TLS as Postmark does not support ssl as of march 7 2019 it says. I do need encryption correct?

lemmon's avatar
Level 28

I am reading and taking notes Thank you for your help

lemmon's avatar
Level 28

Right I just have to figure out using TLS as all the how to's at dititalocean are using ssl. and since i am unfamiliar with both...

Thank You.

laracoft's avatar

@lemmon

  1. Both TLS and SSL rely on the same certificate.
  2. Postmark is going to use their own certificate, as it is their subdomain MAIL_HOST=smtp.postmarkapp.com
  3. You only have to worry about setting up TLS/SSL on Digitalocean
  4. TLS and SSL are used interchangeably to refer to encryption, with SSL being the more widely known term
  5. They only make a difference when we talking about which version to support etc, like in the postmark announcement

Please or to participate in this conversation.