Hello All,

I have a LAMP server running Drupal 7.

Linux Redhat 6.
Apache 2.2
MySQL 5.1.61
PHP 5.3.3

PHP Mailer - 7.x-3.x-dev
SMTP Authentication Support - 7.x-1.0

From both the above email modules, I'm able to successfully send email to both our internal domain (@test.com) and to an external domain (@gmail.com). No warnings appear and emails are delivered to recipients successfully.

However, when I attempt to use any email functions (request new password, webforms, etc), emails are delivered to recipients successfully, although when sending to an external domain (@gmail.com), I receive:

Unable to send e-mail. Please contact the site administrator if the problem persists.

I do not receive any warnings when emails are sent to our internal domain (@test.com).

"Recent log messages" shows two errors:

mail 2014-01-20 11:43 Error sending e-mail (from "Test Email) Anonymous (not verified)
phpmailer 2014-01-20 11:43 SMTP error: data not accepted ... Anonymous (not verified)

The "mail" error displays the following message:
Error sending e-mail (from "Test email" to test@gmail.com).

The "phpmailer" error displays the following message:
SMTP error: data not accepted

Any ideas?

Comments

Jaypan’s picture

This is an error coming from the mail server. With the SMTP module, you can turn on debugging to get more information. When you have that information, you should contact your mail host and ask them for support.

PhilGarrelhas’s picture

I'm using my own SMTP server.

Also, I'm able to send mail to both an internal address and external address from the server itself. And as I mentioned, there are no errors when I use the test feature built into both the PHP Mailer and SMTP module in drupal. The error only appears when I'm submitting a webform, requesting a new password, etc.

Jaypan’s picture

What do your mail server logs show?

PhilGarrelhas’s picture

There are no errors that appear in the server logs.

Jaypan’s picture

I guess it's not an error then, but looking at the message:

SMTP error: data not accepted ... Anonymous (not verified)

This really sounds like a response from the server, not from Drupal. Notice it says Anonymous - is that maybe because you haven't properly authenticated with your mail server?

Try switching to a different mail server to see if it works or not, that way you can start to isolate the problem. Google allows their servers to be used as SMTP servers, you can try that for testing purposes.

PhilGarrelhas’s picture

I tried using Gmail's SMTP with no luck for both internal/external tests.

I managed to pull some captures from the server.

In the case of the internal capture, we send the mail to our Exchange 2010 relay.
The relay acknowledges the mail and sends a receipt.

In the case of the external capture, we send the mail to our Exchange 2010 relay.
The relay acknowledges the mail, but then never sends a receipt. So after about 10s the server closes the connection with a TCP FIN.

In both cases, the mail is delivered successfully.

Any other thoughts?