SMTP Relay
Last updated
Last updated
Setting up a local mail server as an SMTP relay to EmailLabs enables more stable and efficient email sending. The queuing mechanism enhances the reliability of the sending process, and in case of connection issues, messages will be automatically resent.
By utilizing the SMTP protocol with "pipelining" and connection caching features, it's possible to significantly increase performance, especially when sending a large number of messages.
The data needed for integration via SMTP can be found in the EmailLabs panel in the section: Email API -> Settings -> SMTP Accounts.
To correctly configure the Postfix server, log in as root or obtain root privileges using the su or sudo command. Then, in the configuration file /etc/postfix/main.cf, add the following entry:
Next, you need to create a password file at the path mentioned in the previous entry:
In the created file, add:
Save the file and for security, change the file permissions using the command:
Finally, you should restart the Postfix server.