Administration
...
Local service
Postfix
Docker
8min
changing a parameters in passwork open passwork web interface and go to settings and users → system settings → notifications activate the send email notifications option and in email service use local service , specify the sender's email and save the changes configuring and changing settings in postfix configuring the smtp sender address open or create a file at /\<passwork>/conf/postfix/sasl passwd nano /\<passwork>/conf/postfix/sasl passwd add an smtp address with the sender's user login and password \[mail isp example] passwork\@noreply pro\ password example of using a non standard tcp port \[mail isp example] 587 passwork\@noreply pro\ password example of using gmail \[smtp gmail com] 587 passwork\@noreply pro\ password create a hashed database for postfix docker exec it passwork postfix postmap /etc/postfix/sasl passwd 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 chown root\ root /\<passwork>/conf/postfix/sasl chmod 0600 /\<passwork>/conf/postfix/sasl configuring postfix as a server relay (container) edit the configuration file at /\<passwork>/conf/postfix/main cf nano /\<passwork>/conf/postfix/main cf add and edit the following parameters \# specify the 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 docker exec i passwork postfix service postfix reload