3.6. Mailers
- It is possible to send email alerts when the state of servers changes.
- If configured email alerts are sent to each mailer that is configured
- in a mailers section. Email is sent to mailers using SMTP.
- Creates a new mailer list with the name <mailersect>. It is an
- independent section which is referenced by one or more proxies.
mailer
- Defines a mailer inside a mailers section.
Example:
mailers mymailers
mailer smtp1 192.168.0.1:587
mailer smtp2 192.168.0.2:587
backend mybackend
mode tcp
balance roundrobin
email-alert mailers mymailers
email-alert from test1@horms.org
email-alert to test2@horms.org
server srv1 192.168.0.30:80
server srv2 192.168.0.31:80
- Defines the time available for a mail/connection to be made and send to
- the mail-server. If not defined the default value is 10 seconds. To allow
- for at least two SYN-ACK packets to be send during initial TCP handshake it
- is advised to keep this value above 4 seconds.
Example:
mailers mymailers
timeout mail 20s
mailer smtp1 192.168.0.1:587