BrickStorOS uses internal Postfix server to send email notifications generated by system services. By default it will perform DNS lookup to configured destinations in `bsradm notify` by recipient domain MX record. This will typically be sufficient in internal environment with local mail server. In other cases mail will have to be routed by authoritative mail server acting as a relay.
Use the examples below to setup BrickStor Postfix instance to use mail relay for sending email notifications.
Example 1
Using mail relay that requires TLS encryption over port 587 using authenticated user (typically Microsoft Exchange).
Add this line to /etc/postfix/main.cfg
... relayhost = mail.tank.com:587 smtp_use_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:<path to postmap created login file> smtp_sasl_mechanism_filter = AUTH LOGIN smtp_sasl_security_options = ... |
Note, when using hosted mail providers, authenticated user email address must match FROM address for all relayed mail. |
BrickstorOS Postfix does not support "hash" maps so password map will need to be one of the following types (see note at the end of the page) |
Example 2
Using mail relay that does not require authentication
Add this line to /etc/postfix/main.cfg
... relayhost = 192.168.1.1:25 ... |
Solaris Postfix does not support "hash" maps so password map will need to be one of the following types:
# postconf -m cidr dbm environ fail inline internal memcache nis pcre pipemap proxy randmap regexp socketmap static tcp texthash unionmap unix |