Skip to content

SMTP Configuration

PadowYT2 edited this page Mar 19, 2022 · 2 revisions

Using Internal Mailer

Php comes with an internal mailer which lets you send emails from the server. It's very easy and quick to set up.

  1. Run the following command in /var/www/pterodactyl -> php artisan p:environment:mail
  2. Set driver to "mail", orgin to no-reply@YourDomain.com and encryption method to TLS
  3. Go to Admin area -> Billing -> Emails -> Click Compose Email; Send yourself a test email, if it arrives, you're done.
  4. If you don't receive the test email in step 3; run the commands below:
  • sudo apt-get install sendmail
  • sudo sendmailconfig
  • Restart Webserver: sudo service nginx restart OR sudo service apache2 restart
  1. Go back to Billing Email settings, are try sending yourself a test mail.

Using Custom SMTP Server

  1. Run the following command in /var/www/pterodactyl -> php artisan p:environment:mail
  2. Set Driver to "smtp"
  3. See Information Below; After entering the details, you can check the connection here: example.com/admin/settings/mail

Gmail SMTP

Outlook / Hotmail / Live

  • The username is your email address (e.g. dave@outlook.com or kevin@hotmail.fr)
  • The password is your email account password
  • The name field should be your website name (though you can put anything here)
  • The host is smtp-mail.outlook.com (port: 587, encryption: TLS)

Other SMTP servers

  • The username is the email address from your SMTP server
  • The password is the password associated with your SMTP email address
  • The name field is your site name, or whatever name you want to be displayed in the "From" field in the email
  • The host is the hostname of your SMTP server, such as your SMTP server's IP address

Source: https://docs.namelessmc.com/en/smtp