Administration
...
Setting up mail notifications
Configuring Postfix

Docker

8min

Changing a parameter in Passwork

Open the desktop version of Passwork and go to Settings and UsersSystem SettingsGlobalEmail service.

Enable the Send notifications to email option, choose Local service and specify the sender's email, then save the changes:

Document image


Configuring and changing settings in Postfix

Configuring the SMTP sender address

Open or create a file at /<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 using Gmail:

Shell


Create a hashed database for Postfix:

Shell


Afterwards, the Postfix sasl_passwd.db database will be located at /<passwork>/conf/postfix/.

Restrict access to data files

The files created contain 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 at /<passwork>/conf/postfix/main.cf:

Shell


Add and edit the following parameters:

Shell


Save the changes and restart the Postfix service:

Shell




Updated 23 Dec 2024
Doc contributor
Doc contributor
Did this page help you?