This question about Configuration: Answered

SMTPEmailNotBeingSent

This report corresponds to version: Foswiki-1.1.4, Tue, 20 Dec 2011, build 13483, Plugin API version 2.1

The installation was a fresh install, and not an upgrade.

My company recently switched from gmail to a corporate exchange server. Mail used to work (Net::SMTP::SSL) and now does not (Net::SMTP).

While I've enabled debug in configure, the results are not complete; IE I don't see any status codes.

I ran mailnotify on the command line and get the following:

Net::SMTP=GLOB(0x292a730)<<< 220 FNC-AME-SMTP.fnc.local Microsoft ESMTP MAIL Service ready at Thu, 6 Dec 2012 14:41:09 -0500
Net::SMTP=GLOB(0x292a730)>>> EHLO fluidnet.net
Net::SMTP=GLOB(0x292a730)<<< 250-FNC-AME-SMTP.fnc.local Hello [192.168.10.140]
Net::SMTP=GLOB(0x292a730)<<< 250-SIZE
Net::SMTP=GLOB(0x292a730)<<< 250-PIPELINING
Net::SMTP=GLOB(0x292a730)<<< 250-DSN
Net::SMTP=GLOB(0x292a730)<<< 250-ENHANCEDSTATUSCODES
Net::SMTP=GLOB(0x292a730)<<< 250-STARTTLS
Net::SMTP=GLOB(0x292a730)<<< 250-X-ANONYMOUSTLS
Net::SMTP=GLOB(0x292a730)<<< 250-AUTH NTLM
Net::SMTP=GLOB(0x292a730)<<< 250-X-EXPS GSSAPI NTLM
Net::SMTP=GLOB(0x292a730)<<< 250-8BITMIME
Net::SMTP=GLOB(0x292a730)<<< 250-BINARYMIME
Net::SMTP=GLOB(0x292a730)<<< 250-CHUNKING
Net::SMTP=GLOB(0x292a730)<<< 250-XEXCH50
Net::SMTP=GLOB(0x292a730)<<< 250-XRDST
Net::SMTP=GLOB(0x292a730)<<< 250 XSHADOW
Error sending mail for EmbeddedSoftware: Emailing xxxxxxx@fluidnet.net - Mail could not be sent to xxxxxx@fluidnet.net - please ask your webmaster@foswiki.org to look at the Foswiki warning log.

Note that a simple external perl script to send email works.

Also, for some reason, I am not getting a warning log generated. Only events and error logs are generated. I'm guessing that if I could see the full debug messages with status codes, I'd get this fixed tout d'suite. But right now I'm blind.

-- SteveAnthony - 06 Dec 2012

This version of Foswiki has a "Mail and Proxies" -> "Email Test" tab in configure. This will send a message and should report any issues during the send process. It captures messages, although looking at the checkins, 1.1.5 and 1.1.6 do a more thorough job of logging.

If you have provided the Foswiki configuration with a userid / password for email, you should remove them. Your report above shows that the server is requesting NTLM based authentication. That is not supported by the Authen::SASL module used by Foswiki, so you need to run without authentication. If you need authentication, then the Exchange connector needs to be configured to support the LOGIN and/or PLAIN authentication methods. I seem to recall that there is a crash in one version of Authen::SASL if no supported authentication method can be found.

Note also that this release does not support STARTTLS.

Warnings and errors are all combined into the error log, the recent versions of Foswiki don't split out the warning messages into a separate log. Our documentation could use an update here.

This doesn't help you, but note that for Foswiki 1.2 (Still alpha) we just checked in rewritten email handler complete with full support for STARTTLS and SSL connections. It also will have an "autoconfigure" tool which will connect to the email server on ports 587, 25, and 465 to find one that works, and then sets the configuration to match the working combination.

-- GeorgeClark - 06 Dec 2012

Thanks - removing the uid/pwd did the trick.

Nice to see the rapid response to a vexing question!

-- SteveAnthony - 07 Dec 2012
 

QuestionForm edit

Subject Configuration
Extension
Version Foswiki 1.1.4
Status Answered
Related Topics
Topic revision: r4 - 07 Dec 2012, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy