Handlers (email - handler) related questions - Sensu Go

Thanks @jspaleta for the Quality answer and quick reply.

You were correct about mail part, Issue was with host postfix configuration file - Mail is working fine without the host network.

  1. –authMethod=none is not working, are we missing something in below test command

./sensu-email-handler --help doesnt show (-a or --authMethod) options as described in github

/var/lib/sensu # sensuctl event info test-docker keepalive --format=json | ./sensu-email-handler --authMethod=none -f user@mydomain.com -t user@mydomain.com -s smtp.server.mydomain.com -P 25 -S ‘Test mail from sensu’
Error: unknown flag: --authMethod
Usage:
sensu-email-handler [flags]

Flags:
-T, --bodyTemplateFile string A template file to use for the body
-l, --enableLoginAuth Use “login auth” mechanisim
-f, --fromEmail string The ‘from’ email address
-h, --help help for sensu-email-handler
-H, --hookout Include output from check hook(s)
-i, --insecure Use an insecure connection (unauthenticated on port 25)
-s, --smtpHost string The SMTP host to use to send to send email
-p, --smtpPassword string The SMTP password, if not in env SMTP_PASSWORD
-P, --smtpPort uint The SMTP server port (default 587)
-u, --smtpUsername string The SMTP username, if not in env SMTP_USERNAME
-S, --subjectTemplate string A template to use for the subject (default “Sensu Alert - {{.Entity.Name}}/{{.Check.Name}}: {{.Check.State}}”)
-t, --toEmail string The ‘to’ email address

Error executing [sensu-email-handler unknown flag: --authMethod]: %!v(MISSING)

( Fyi: sensu-email-handler binary is kept in /var/lib/sensu and ran a test mail as above for checking. user mail and smtp addresses are random for obvious reasons )

Question: Is there any configuration option available for containers like .yml files for logging errors/warnings into a log file in particular path (docker logs contains huge logs and finding/debugging the error is difficult)

Thanks in advance.
Regards,
Sensu-user :slight_smile: