Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » PHPMailer and Kerio Connect
  •  
fishtech

Messages: 626
Karma: 14
Send a private message to this user
Hi,

We are trying to configure PHPMailer on a MySQL server to send mail through a separate Kerio Connect server.

However, we are having a problem relaying mail to the outside world.

The KC server requires SMTP authentication.

PHPMailer can send email successfully within our domain. Only external mails that need to be relayed have this problem.

The KC debug log shows:


[22/Jan/2013 11:35:54][2974085120] {smtps} Task 242070 handler BEGIN
[22/Jan/2013 11:35:54][2974085120] {smtps} Task 242070 handler starting
[22/Jan/2013 11:35:54][2974085120] {smtps} SMTP server session begin; client connected from myserver.mycompany.com:54270
[22/Jan/2013 11:35:54][2974085120] {smtps} Sent SMTP greeting to myserver.mycompany.com:54270
[22/Jan/2013 11:35:54][2974085120] {smtps} Command HELO data.mycompany.com
[22/Jan/2013 11:35:54][2974085120] {smtps} Sent reply to HELO: 250 mail.mycompany.com
[22/Jan/2013 11:35:54][2974085120] {smtps} Command MAIL FROM:<account<_at_>mycompany.com>
[22/Jan/2013 11:35:54][2974085120] {smtps} Sent reply to MAIL: 250 2.1.0 Sender <account<_at_>mycompany.com> ok
[22/Jan/2013 11:35:54][2974085120] {smtps} Command RCPT TO:user<_at_>gmail.com
[22/Jan/2013 11:35:54][2974085120] {smtps} Sent reply to RCPT: 550 5.7.1 Relaying to <user<_at_>gmail.com> denied
[22/Jan/2013 11:35:54][2974085120] {smtps} Command RCPT TO:user<_at_>gmail.com
[22/Jan/2013 11:35:54][2974085120] {smtps} Sent reply to RCPT: 550 5.7.1 Relaying to <user<_at_>gmail.com> denied


On the PHPMailer side we see


FROM SERVER: 550 5.7.1 Relaying to denied (authentication required)


Apple's Mail client can run on that MySQL machine and send mail successfully using SMTP authentication. But it seems that PHPMailer is having authentication problems.

We would appreciate some guidance as to why the relay may be failing only with PHPMailer.

Many thanks,

ft.
  •  
Lucian Maly (Kerio)

Messages: 136
Karma: 8
Send a private message to this user
You also need to enable "SMTP Client" in debug to see more details about these e-mails. It seems like PHPMailer is not sending any authentication to the server.

Kerio Technologies AU Pty Ltd.
  •  
fishtech

Messages: 626
Karma: 14
Send a private message to this user
Here is same with smtp client debug log activated.


[23/Jan/2013 09:03:07][2986864640] {smtps} Task 7488 handler BEGIN
[23/Jan/2013 09:03:07][2986864640] {smtps} Task 7488 handler starting
[23/Jan/2013 09:03:07][2986864640] {smtps} SMTP submission server session begin; client connected from myserver.mycompany.com:58142
[23/Jan/2013 09:03:07][2986864640] {smtps} Sent SMTP greeting to myserver.mycompany.com:58142
[23/Jan/2013 09:03:07][2986864640] {smtps} Command HELO mail.mcompany.com
[23/Jan/2013 09:03:07][2986864640] {smtps} Command MAIL FROM:<myaccount<_at_>mycompany.com>
[23/Jan/2013 09:03:07][2986864640] {smtps} Unauthorized command for submission: User from IP address '192.168.0.78' can not set sender ''
[23/Jan/2013 09:03:07][2986864640] {smtps} Command RCPT TO:<oustideuser<_at_>outsidecompany.com>
[23/Jan/2013 09:03:07][2986864640] {smtps} Unauthorized command for submission: User from IP address '192.168.0.78' can not set recepient '<oustideuser<_at_>outsidecompany.com>'
[23/Jan/2013 09:03:07][2986864640] {smtps} Command DATA
[23/Jan/2013 09:03:07][2986864640] {smtps} Unauthorized command for submission: User from IP address '192.168.0.78' can not process DATA
[23/Jan/2013 09:03:07][2986864640] {smtps} Command quit
[23/Jan/2013 09:03:07][2986864640] {smtps} SMTP server session end
[23/Jan/2013 09:03:07][2986864640] {smtps} Task 7488 handler END


I am not seeing an AUTH command here either.

We definitely have smtp authentication set in PHPMailer.

Thanks

ft.
  •  
fishtech

Messages: 626
Karma: 14
Send a private message to this user
Switched to SwiftMailer and quickly had it up and running.

I think authentication does not work in PHPMailer, at least not with our PHPMailer version and PHP version.

Cheers,

ft.
Previous Topic: Thunderbird losing calendar info
Next Topic: Kerio Connect 8 Release Notes ... BAD LINK??
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Tue Oct 17 22:15:35 CEST 2017

Total time taken to generate the page: 0.00427 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.