Our smtp server is MS exchange, with its connector access locked down against our linux servers (because our exchange admin hates linux and me personally.) I found that the only way it would accept emails from our graylog server was to also use in server.config:
transport_email_from_email = [email protected] Otherwise the default value graylog puts in the From: of the message doesn't match the auth_username, and exchange will reject it. Note that the Alert config screen allows you to specify a custom From: address which in this situation WILL NOT WORK unless it exactly matches what the exchange server is expecting. I filed a bug report for this conflict last month but I don't think the devs have even read the post yet. Sigh. This took me two days to figure out, and only after the cranky exchange admin got involved looking at the exchange logs while I ran tests. On Wed, Nov 25, 2015 at 10:06 AM, Khanh DUy Le <[email protected]> wrote: > Dear all, > We just config email alert as below: > transport_email_enabled = true > transport_email_hostname = <smtp server of my company> > transport_email_port = 25 > transport_email_protocol = smtp > transport_email_use_auth = true > transport_email_use_tls = false > transport_email_use_ssl = false > transport_email_auth_username = <username when I log in to my mail> > transport_email_auth_password = <password log in my mail> > transport_email_subject_prefix = [graylog2] > > But when we send test alert, I receive notification as attached file. > Please advise me to fix it. Thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Graylog Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/graylog2/5f7c401e-226e-4bcd-977e-c63be251ab29%40googlegroups.com > <https://groups.google.com/d/msgid/graylog2/5f7c401e-226e-4bcd-977e-c63be251ab29%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- No matter what we think of Linux versus FreeBSD, etc., the one thing I really like about Linux is that it has Microsoft worried. Anything that kicks a monopoly in the pants has got to be good for something. - Chris Johnson -- You received this message because you are subscribed to the Google Groups "Graylog Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/CAL5rfGXZ-4%3DabwbABd9gnD2PqtSnt50CMtiOF3%2B8viyCjFQvgw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
