SMTP Relay
Configuring a Local SMTP Relay with EmailLabs
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.
Finding SMTP data in EmailLabs
The data needed for integration via SMTP can be found in the EmailLabs panel in the section: Email API -> Settings -> SMTP Accounts.

SMTP Relay Configuration
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.
To configure Sendmail as a mail relay, log in as root, or obtain root privileges using the su or sudo command. Then, add the following line to the file /etc/mail/access:
In the next step, you should configure the Smart Host in the /etc/mail/sendmail.mc file. Under the line starting with #dnl define... add:
Then, you need to update the entered data. Navigate to the /etc/mail/ folder and execute the following commands:
Remember to restart the Sendmail server:
Last updated