SMTP authentication

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Andrew - Tracker Support, Tracker - Clarion Support, John - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Support Staff, moderators

Post Reply
sabio5
User
Posts: 5
Joined: Thu Apr 24, 2008 6:49 pm

SMTP authentication

Post by sabio5 » Thu Apr 24, 2008 7:25 pm

We are having trouble with sending email via a particular SMTP server. We are able to telnet to the SMTP server and send mail manually, using EHLO and AUTH PLAIN, but cannot get it to work via the PDF drivers. We are unable to get help from the ISP to see their server logs, so we are trying to figure out what might be different between the way the driver communicates with the SMTP server, and what we are doing manually (or for that matter, what Outlook is doing, since it also works).

Is there any information available about what AUTH protocol the drivers use, or any way to force it to use AUTH PLAIN?

Are there any new developments in this area in v4?

John - Tracker Supp
Site Admin
Posts: 8201
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Fri Apr 25, 2008 11:32 am

Hi,

can you advise please how you have you SMTP setup whensending from the drivers - you may prefer to email this to us direct - usrfiles@tracker-software.com.

Also can you please advise what version/build of the driver you are using ?

thanks
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

sabio5
User
Posts: 5
Joined: Thu Apr 24, 2008 6:49 pm

SMTP issue cont.

Post by sabio5 » Fri Apr 25, 2008 6:20 pm

The driver version is 3.60124. We could update to 3.60130 but as there is no mention of SMTP in the update notes, I doubt that there would be any difference.

The "Escape" commands relating to email being sent to the driver are as follows:

Email.Type,3
Email.From,"me@mydomain.com"
Email.To,"you@yourdomain.com"
Email.SMTP.Address,"server1"
Email.SMTP.UserName,"myname"
Email.SMTP.Password,"mypassword"
Email.SMTP.Port,25
Email.SMTP.UseSSL,0
Email.Subject,"Test"
Email.Content,"bla bla bla"

(Details have been changed to protect the innocent but we are able to use the same details via a TELNET connection to the SMTP server using EHLO and AUTH PLAIN, with the password base64-encoded. This is what raised the question of just how the drivers translate the above SMTP options into HELO/EHLO and AUTH options, and whether the driver could be coerced to use EHLO with AUTH PLAIN.)

The PDF file is being generated but no email is sent.

Incidentally, we would be happy to use the MAPI approach (Email.Type,2), but at this particular site (XP Pro SP2 with Outlook Express 6), that fails also, without the usual pop-up dialog warning about an external application trying to send mail. We were unable to figure out what might be blocking that interface, but figured it was some kind of security setting somewhere, and so decided to go with SMTP instead. Both methods have worked for us at all of our other sites, so I don't think it is an application issue.

Ivan - Tracker Software
Site Admin
Posts: 3587
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Post by Ivan - Tracker Software » Mon Apr 28, 2008 8:56 am

Driver sends:
EHLO, then it sends AUTH login.
Can you check via TELNET if your SMTP server handles AUTH login, or it requires AUTH PLAIN ?
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

sabio5
User
Posts: 5
Joined: Thu Apr 24, 2008 6:49 pm

Post by sabio5 » Wed Apr 30, 2008 3:42 pm

We've confirmed that the SMTP server supports AUTH LOGIN, and have succeeded in performing such a login using TELNET. So it would seem that whatever the issue is, it is low-level (timing or some other hiccup with the login). It would be nice if we could get a detailed log from one side or the other, but apparently there is none on the PDFX side, and dealing with the people on the SMTP side so far has not been fruitful. I'm going to rig up an automated login in C and create my own log so we can at least get some kind of documented benchmark of how it can work. But unfortunately due to some kind of holiday schedule at the site, we won't be able to do that until some time next week.

Post Reply