Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > ISPConfig 3 Priority Support

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 9th May 2013, 05:23
darinpeterson darinpeterson is offline
HowtoForge Supporter
 
Join Date: Nov 2011
Posts: 153
Thanks: 35
Thanked 13 Times in 13 Posts
Question PHPMailer Authentication Problem Possibly Caused by ISPConfig 3 Configuration?

OS: Debian Squeeze, Dovecot
ISPConfig: v3.0.5.2

I am trying to use PHPMailer to connect to my mail server, and I keep getting the following authentication error:

Code:
SMTP -> ERROR: Password not accepted from server: 535 5.7.8 Error: authentication failed: UGFzc3dvcmQ6
Initially I thought this was cause because openssl was not enabled for PHP, but I checked php -i, and it is enabled.

I changed the password several times, and it still will not authenticate. Here's my code, and I have enabled smtpd:

Code:
$mail = new PHPMailer();
        $mail->SMTPDebug = 1;
        $mail->IsSMTP();
        $mail->Host = 'mail.server.tld';
        $mail->Port = 587;
        $mail->Username = 'client@anotherdomain.tld';
        $mail->Password = 'zzzzzz';
        $mail->SMTPAuth = true;
        $mail->SMTPSecure = 'tls';
        $mail->FromName = 'Name';
        $mail->From = 'client@anotherdomain.tld';
        $mail->Subject = $subject;
        $mail->IsHTML(false);
        $mail->Body = $mail_message;
        $mail->AddAddress($to);
        $mail->AddReplyTo($email);
        if (!$mail->Send()) {
            echo "Could not deliver message to: $to.<br/>";
        }
My mail clients use the same information as I placed in the configuration above, and have no problems connecting.

Is there something in ISPConfig 3 that might be preventing me from connecting to the mail server via PHPMailer?
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending mails: fine > recive: bad Moundy General 1 19th June 2012 23:40
Need help with ISPConfig Mail and Squirrelmail m.xander Installation/Configuration 109 3rd February 2012 00:15
Fail2ban + sasl problem and Solution pititis General 1 2nd March 2011 07:02
Email problem 'Cannot set my user or group id.' (using ISPConfig 3 + OpenSuSE 11.2) urosm Installation/Configuration 5 19th June 2010 22:41
Ftp problems timeout reny2000 General 6 23rd December 2009 11:09


All times are GMT +2. The time now is 13:44.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.