Skip to main content
This documentation is for Passwork version 6.0, no longer supported.

See documentation for version 7.0.
Version: 6.0

Linux

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:

Searching password by browser extension

Installing Postfix

Install Postfix:

apt install -y postfix

RPM

yum install -y postfix

During the installation process, select the Internet Site configuration type:

Searching password by browser extension

Specify the FQDN (Fully Qualified Domain Name) of the server:

Searching password by browser extension

Configuring and changing settings in Postfix

Configuring the SMTP sender address

Open or create a file at /etc/postfix/sasl_passwd:

nano /etc/postfix/sasl_passwd

Add an SMTP address, with the sender's user 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 executing the following command:

postmap /etc/postfix/sasl_passwd

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

Restrict access to data files

warning

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:

chown root:root /etc/postfix/sasl_*
chmod 0600 /etc/postfix/sasl_*

Configuring Postfix as a server relay

Edit the configuration file at /etc/postfix/main.cf:

nano /etc/postfix/main.cf

Add and edit the following parameters:

# Specify FQDN name of the server
myhostname = hostname.passwork.local

# Specify the parameter to your SMTP server from the "Configuring the SMTP sender address" step
relayhost = [mail.isp.example]:587

# Add authentication enable 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