Administration
...
Setting up mail notifications
Configuring Postfix

Docker

9min

Changing a parameter in Passwork

Open the Passwork web interface and go to — "Settings and Users" → "System Settings" → "Global" → "Email service" section.

Activate the "Send notifications to email" option, use "Local service", specify the sender's email and save the changes:

Document image


Configuring and changing settings in Postfix

Configuring the SMTP sender address

Open or create a file — /<passwork>/conf/postfix/sasl_passwd

Shell


Add an SMTP address, with the sender's user login and password:

Shell


Example of using a non-standard TCP port:

Shell


Example of how to use gmail:

Shell


Create a hashed database for Postfix by executing the following command:

Shell


After executing in the directory /<passwork>/conf/postfix/ the Postfix database will be located — sasl_passwd.db

Restrict access to data files

The files created contain the SMTP credentials in plain text. For security reasons, access should be restricted so that only the root user can read and write to them.

Assign rights to the owner and set the root user as the owner:

Shell


Configuring Postfix as a server relay (container)

Edit the configuration file — /<passwork>/conf/postfix/main.cf:

Shell


Add and edit the following parameters:

Shell


Save the changes and restart the Postfix service:

Shell




Updated 09 Oct 2024
Doc contributor
Doc contributor
Did this page help you?