Solved

Drupal SMTP module output when sending mail

Posted on 2008-10-14
1
1,661 Views
Last Modified: 2013-11-30
My server is no longer supporting the php mail function as 'nobody' so I've had to seek out the use of the SMTP module for Drupal. After following instructions listed in the module, it appears to have installed without any problems. My hosting server requires authentication, and I have set the proper username and password on the module's admin section.

However, when I send a test email, or if the contact link is used on my site, or newsletters are sent, etc etc (i.e. anything using the SMTP module), then I get a mass of output despite the email being successfully sent. Can anyone shed light on why this is happening, if it is a bug, and possible solutions for it? The output [with my server name edited out] is:

(see Attached Code Snippet)

Thanks.
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220-[myserverhere.net] ESMTP Exim 4.69 #1 Tue, 14 Oct 2008 10:27:01 -0700 "
SMTP -> get_lines(): $data is "220-[myserverhere.net] ESMTP Exim 4.69 #1 Tue, 14 Oct 2008 10:27:01 -0700 "
SMTP -> get_lines(): $data was "220-[myserverhere.net] ESMTP Exim 4.69 #1 Tue, 14 Oct 2008 10:27:01 -0700 "
SMTP -> get_lines(): $str is "220-We do not authorize the use of this system to transport unsolicited, "
SMTP -> get_lines(): $data is "220-[myserverhere.net] ESMTP Exim 4.69 #1 Tue, 14 Oct 2008 10:27:01 -0700 220-We do not authorize the use of this system to transport unsolicited, "
SMTP -> get_lines(): $data was "220-[myserverhere.net] ESMTP Exim 4.69 #1 Tue, 14 Oct 2008 10:27:01 -0700 220-We do not authorize the use of this system to transport unsolicited, "
SMTP -> get_lines(): $str is "220 and/or bulk e-mail. "
SMTP -> get_lines(): $data is "220-[myserverhere.net] ESMTP Exim 4.69 #1 Tue, 14 Oct 2008 10:27:01 -0700 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. "
SMTP -> FROM SERVER: 220-[myserverhere.net] ESMTP Exim 4.69 #1 Tue, 14 Oct 2008 10:27:01 -0700 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail.
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250-[myserverhere.net] Hello bcims.org [66.193.109.66] "
SMTP -> get_lines(): $data is "250-[myserverhere.net] Hello bcims.org [66.193.109.66] "
SMTP -> get_lines(): $data was "250-[myserverhere.net] Hello bcims.org [66.193.109.66] "
SMTP -> get_lines(): $str is "250-SIZE 52428800 "
SMTP -> get_lines(): $data is "250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 "
SMTP -> get_lines(): $data was "250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 "
SMTP -> get_lines(): $str is "250-PIPELINING "
SMTP -> get_lines(): $data is "250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 250-PIPELINING "
SMTP -> get_lines(): $data was "250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 250-PIPELINING "
SMTP -> get_lines(): $str is "250-AUTH PLAIN LOGIN "
SMTP -> get_lines(): $data is "250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN "
SMTP -> get_lines(): $data was "250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN "
SMTP -> get_lines(): $str is "250-STARTTLS "
SMTP -> get_lines(): $data is "250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS "
SMTP -> get_lines(): $data was "250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS "
SMTP -> get_lines(): $str is "250 HELP "
SMTP -> get_lines(): $data is "250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP "
SMTP -> FROM SERVER: 250-[myserverhere.net] Hello bcims.org [66.193.109.66] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250-STARTTLS 250 HELP
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 OK "
SMTP -> get_lines(): $data is "250 OK "
SMTP -> FROM SERVER: 250 OK
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 Accepted "
SMTP -> get_lines(): $data is "250 Accepted "
SMTP -> FROM SERVER: 250 Accepted
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "354 Enter message, ending with "." on a line by itself "
SMTP -> get_lines(): $data is "354 Enter message, ending with "." on a line by itself "
SMTP -> FROM SERVER: 354 Enter message, ending with "." on a line by itself
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250 OK id=1Kpnfh-0006or-TV "
SMTP -> get_lines(): $data is "250 OK id=1Kpnfh-0006or-TV "
SMTP -> FROM SERVER: 250 OK id=1Kpnfh-0006or-TV
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "221 [myserverhere.net] closing connection "
SMTP -> get_lines(): $data is "221 [myserverhere.net] closing connection "
SMTP -> FROM SERVER: 221 [myserverhere.net] closing connection

Open in new window

0
Comment
Question by:shish1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
shish1 earned 0 total points
ID: 22731619
Well, since I've not heard a reply to my question for some time now, I'll post my own solution:

There is a debugging setting on the SMTP Authentication module. Not only does this log errors in the Drupal log, but it will also print the output (successful or otherwise) of the SMTP reply from the server onto the screen. By turning this off, the output goes away and messages are still sent without a problem.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
IMAP and POP3 authentication problem exchange 2013 sp1 6 98
Mailflow issue - Bounce backs 3 115
Exchange 2007, certificates 4 53
PowerMTA - Competing product 5 18
Drupal 5.x currently does not have a production-ready patch bundle to allow for split read & writes for a MySQL master/slave replication setup. After reading a open discussion/thread on the Drupal site (http://drupal.org/node/147160 (http://drupal.o…
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question