`global:
smtp_smarthost: 'smtp.163.com'
smtp_from: "Alertmanager XXXXXX@163.com"
smtp_auth_username: '[email protected]'
smtp_auth_password: 'XXXXXXXX0808'
route:
group_by: ['alertname', 'cluster', 'service']
group_wait: 30s
group_interval: 5m
repeat_interval: 3h
receiver: email-me
receivers:
this is my alerting yaml file
and prometheus is linking to alertmanager,
from prometheus site, we could see the alerts firing.
Since we are testing, I set "up == 1" to generate alerts.

My setting for email related seemed to work fine in a python email sending scripts, and can send test mail to my set receiver, but alertmanager could not, and no logs.
Anyway, who can tell me where can I find the logs?
I am using docker to run alertmanager, and I use docker logs $containerID, but there is no email sending related issues.
Some errors catched
time="2017-04-05T10:18:29Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:18:29Z" level=error msg="Notify for 12 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:18:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:18:30Z" level=error msg="Notify for 9 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:19:29Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:19:30Z" level=error msg="Notify for 12 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:19:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:19:30Z" level=error msg="Notify for 9 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:20:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:20:30Z" level=error msg="Notify for 12 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:20:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:20:30Z" level=error msg="Notify for 9 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:21:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:21:30Z" level=error msg="Notify for 12 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:21:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:21:30Z" level=error msg="Notify for 9 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:22:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:22:30Z" level=error msg="Notify for 12 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:22:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:22:30Z" level=error msg="Notify for 9 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:23:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:23:30Z" level=error msg="Notify for 12 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:23:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:23:30Z" level=error msg="Notify for 9 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:24:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:24:30Z" level=error msg="Notify for 12 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:24:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:24:30Z" level=error msg="Notify for 9 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:25:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:25:30Z" level=error msg="Notify for 12 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:25:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:25:30Z" level=error msg="Notify for 9 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:26:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:26:30Z" level=error msg="Notify for 12 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:26:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:26:30Z" level=error msg="Notify for 9 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:27:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:27:30Z" level=error msg="Notify for 12 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:27:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:27:30Z" level=error msg="Notify for 9 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:28:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:28:30Z" level=error msg="Notify for 12 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:28:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:28:30Z" level=error msg="Notify for 9 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:29:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:29:30Z" level=error msg="Notify for 12 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:29:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:29:30Z" level=error msg="Notify for 9 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:30:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:30:30Z" level=error msg="Notify for 12 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:30:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:30:30Z" level=error msg="Notify for 9 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:31:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:31:30Z" level=error msg="Notify for 12 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:31:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:31:30Z" level=error msg="Notify for 9 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:31:45Z" level=info msg="running maintenance" component=nflog source="nflog.go:288"
time="2017-04-05T10:31:45Z" level=info msg="running maintenance" component=silences source="silence.go:233"
time="2017-04-05T10:31:45Z" level=info msg="maintenance done" component=silences duration=89.322碌s source="silence.go:250"
time="2017-04-05T10:31:45Z" level=info msg="maintenance done" component=nflog duration=69.918碌s source="nflog.go:305"
time="2017-04-05T10:32:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:32:30Z" level=error msg="Notify for 12 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:32:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:32:30Z" level=error msg="Notify for 9 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:33:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:33:30Z" level=error msg="Notify for 12 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
time="2017-04-05T10:33:30Z" level=error msg="Error on notify: dial tcp: missing port in address smtp.163.com" source="notify.go:272"
time="2017-04-05T10:33:30Z" level=error msg="Notify for 9 alerts failed: dial tcp: missing port in address smtp.163.com" source="dispatch.go:246"
already fixed by myself by adding the port in smtp host.
Thanks all the same.
Most helpful comment
already fixed by myself by adding the port in smtp host.
Thanks all the same.