Linux
Configuring parameters in Passwork
Open the Passwork web interface and go to Settings and Users → System Settings → Notifications section.
Enable the Send notifications to email option and in Mail Service select Local Service, specify the Sender Email, and save the changes:

Installing Postfix
Install Postfix:
- DEB
- RPM
apt install -y postfix
dnf install -y postfix
During installation, select the configuration type Internet Site:

Specify the server's FQDN (Fully Qualified Domain Name):

Configuring and modifying parameters in Postfix
Configuring the SMTP sender address
Create the file — /etc/postfix/sasl_passwd:
nano /etc/postfix/sasl_passwd
Add the SMTP address with the sender user's login and password:
[mail.isp.example] [email protected]:password
Example of using a non-standard TCP port
[mail.isp.example]:587 [email protected]:password
Example of using Gmail:
[smtp.gmail.com]:587 [email protected]:password
Create a hashed database for Postfix by running the following command:
postmap /etc/postfix/sasl_passwd
After execution, the Postfix database — sasl_passwd.db — will be located in the /etc/postfix/ directory.
Restricting access to data files
The created files contain SMTP credentials in plain text. For security reasons, read and write access should be granted only to the root user.
Assign ownership and set the owner to root user:
chown root:root /etc/postfix/sasl_*
chmod 0600 /etc/postfix/sasl_*
Configuring Postfix as Relay
Edit the configuration file — /etc/postfix/main.cf:
nano /etc/postfix/main.cf
Add and modify the following parameters:
# Specify the server's FQDN
myhostname = hostname.passwork.local
# Specify your SMTP server parameter from the "Configuring the SMTP Sender Address" step
relayhost = [mail.isp.example]:587
# Add authentication enabling parameters at the end of the file
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_use_tls = yes
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
Save the changes and restart the Postfix service:
service postfix restart