Administration
...
Local service
Postfix
Linux
10min
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 installing postfix install postfix deb apt install y postfix rpm yum install y postfix during the installation process, select the internet site configuration type specify the fqdn (fully qualified domain name) of the server 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] 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 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 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