James Mail Server Password Encoding From PHP

Hi,
I am writing a PHP website server administration component for the MYSQL database used by James Mail server.
When I encode the password in PHP using MD5, Crypt, SHA, SHA1 or use MSQL encoding functions (MD5 or SHA) when I try to send mail to the Java server it keeps telling me "ERROR smtpserver: AUTH method LOGIN failed".
1)In PHP what encoding should I use so the JavaMail API can encode the authentication the same way?
2) If I want to use no encoding what code do I put in the pwdAlgorithm field?
PHP Version 5.2.6
Apache 2.0 Handler
James 2.3.1
Regards,
Jaco
Edited by: Buglish on Mar 4, 2009 10:59 PM
Edited by: Buglish on Mar 4, 2009 11:05 PM

This is a interaction with Java thus who better to ask then the people that work with JavaMail password encryption all the time.
What I am trying to solve is to find out the encryption format of James. Does James encrypt the passwords itself when a new mailbox is created or JavaMail's security class?
You will notice my second question is what code does james or javamail use when no encryption is used. (e.g. pwdAlgorithm). This field is the MySQL field used to store the encryption type.
James still has to encrypt the password in the format which is specified to verify the password.
Thus my main question, why does PHP encoding not match James's encoding?
In PHP the same encoding format should be used.
PHP uses :
SHA1 - RFC 3174 - US Secure Hash Algorithm 1 (SHA1)
MD5 - RSA Data Security, Inc. MD5 Message-Digest Algorithm
Edited by: Buglish on Mar 5, 2009 12:24 AM

Similar Messages

  • Help : i cant start  James Mail Server

    hiii everybody , it seems to me that u all had started apache james mail server ... that's very good ... god with u all ... i am trying to start james server but i always fail ...
    i run the run.bat but it always give me exception ... the same exception i posted on many forums they told me that this exception is because that there is a service that users the port 25 of the smtp ... and they were right cause i had an iis running ... so i stoped it no change ... i formated the computer and installed xp ... i run it again ... the same exception
    so ...
    please help me to start james server any solutions ... why this exception
    here is the exception
    There was an uncaught exception:
    --- Message ---
    Error building configuration from file:/D:/Recovery from c/Java Samples/JAMES MAIL SERVER/james-2.2.0/apps/james/SAR-INF/config.
    --- Stack Trace ---
    org.apache.avalon.phoenix.interfaces.DeploymentException: Error building configuration from file:/D:/Recovery from c/Java Sample
    at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.getConfigurationFor(DefaultDeployer.java:499)
    at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:325)
    at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:498)
    at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:491)
    at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:476)
    at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:466)
    at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:224)
    at org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:158)
    at org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:144)
    at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:102)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:94)
    at org.apache.avalon.phoenix.launcher.Main.main(Main.java:46)
    Caused by: java.net.MalformedURLException: no protocol: ../conf/james-fetchmail.xml
    at java.net.URL.<init>(URL.java:537)
    at java.net.URL.<init>(URL.java:434)
    at java.net.URL.<init>(URL.java:383)
    at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:796)
    at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:725)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEntityReference(XMLDocumentFragmentScannerImpl.java:1073)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerIm
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
    at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
    at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
    at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169)
    at org.apache.avalon.phoenix.tools.configuration.ConfigurationBuilder.build(ConfigurationBuilder.java:129)
    at org.apache.avalon.phoenix.tools.configuration.ConfigurationBuilder.build(ConfigurationBuilder.java:116)
    at org.apache.avalon.phoenix.tools.configuration.ConfigurationBuilder.build(ConfigurationBuilder.java:97)
    at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.getConfigurationFor(DefaultDeployer.java:493)
    ... 15 more
    rethrown from
    java.net.MalformedURLException: no protocol: ../conf/james-fetchmail.xml
    at java.net.URL.<init>(URL.java:537)
    at java.net.URL.<init>(URL.java:434)
    at java.net.URL.<init>(URL.java:383)
    at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:796)
    at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:725)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEntityReference(XMLDocumentFragmentScannerImpl.java:1073)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerIm
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
    at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:524)
    at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:580)
    at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1169)
    at org.apache.avalon.phoenix.tools.configuration.ConfigurationBuilder.build(ConfigurationBuilder.java:129)
    at org.apache.avalon.phoenix.tools.configuration.ConfigurationBuilder.build(ConfigurationBuilder.java:116)
    at org.apache.avalon.phoenix.tools.configuration.ConfigurationBuilder.build(ConfigurationBuilder.java:97)
    at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.getConfigurationFor(DefaultDeployer.java:493)
    at org.apache.avalon.phoenix.components.deployer.DefaultDeployer.deploy(DefaultDeployer.java:325)
    at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:498)
    at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFile(DefaultEmbeddor.java:491)
    at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployFiles(DefaultEmbeddor.java:476)
    at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.deployDefaultApplications(DefaultEmbeddor.java:466)
    at org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor.execute(DefaultEmbeddor.java:224)
    at org.apache.avalon.phoenix.frontends.CLIMain.run(CLIMain.java:158)
    at org.apache.avalon.phoenix.frontends.CLIMain.execute(CLIMain.java:144)
    at org.apache.avalon.phoenix.frontends.CLIMain.main(CLIMain.java:102)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.apache.avalon.phoenix.launcher.Main.startup(Main.java:94)
    at org.apache.avalon.phoenix.launcher.Main.main(Main.java:46)
    The log file may contain further details of error.
    Please check the configuration files and restart Phoenix.
    If the problem persists, contact the Avalon project. See
    http://jakarta.apache.org/avalon for more information.
    Shutting down Phoenix.
    i am waiting for replies please help me ...

    Hi,
    I had the same problem.
    Simply had some spaces in my path to james.
    Moved it to another directory and it worked.
    Found this, helped me.
    http://www.mail-archive.com/[email protected]/msg02980.html
    Have fun!

  • Sending Mail Via  James Mail Server

    Is it possible to send mail to other domains like hotmail,yahoo,wipro etc from James Mail Server.

    Yes ofcourse its possible. James is a fully functional mail server. The easiest way to do it is to use James as POP server & configure a mail client like Outlook to send it using the POP server.
    Cheers
    Rajesh

  • When I open Thunderbird it always ask mail server password required and than several times i have to enter password. I have 30 emails.

    When I open Thunderbird it always ask mail server password required and than several times i have to enter password. I have 30 emails. They select email randomly.

    Hey there Sharon47.
    Couple of things that I see when I read this.
    1 - If you have tried to reset your password (and it says that mail has been sent) my guess is that your spam or junk folder may have it on Gmail? That's assuming your old email account (earthlink) is still forwarding to your new (Gmail) account.
    2 - Make sure your Firefox versions are up to date on the devices.
    Also,
    Here's a couple of support articles which may help you with syncing and
    https://support.mozilla.org/en-US/kb/how-to-update-to-the-new-firefox-sync
    https://support.mozilla.org/en-US/kb/ive-lost-my-firefox-sync-account-information
    Hope this helps!

  • Incoming Mail Server Password Disappears

    Suddenly I'm unable to receive mail.
    I check the account settings.
    Under "Incoming Mail Server", next to "password", I see "Required". Well, duh.
    I re-enter the password and exit Settings. The password is still there.
    I send myself a test mail. I wait about 3 minutes for the internets.
    I start mail on the iPhone.
    I receive the notification: "Cannot Get Mail > The connection to the server "mail.mydomainname.com" failed."
    I return to mail settings and find my password has been erased.
    I am able to retrieve the test mail from another computer with the same account setting.
    Help is appreciated.
    Don't know if this is part of the problem, but under "Mailboxes" I now only see "Inbox" and not "Sent" and "Trash". Also, I have no problem sending mail to the same mail server.

    I resolved this by:
    A) doing a memory consolidation restart;
    B) deleting the mail account;
    C) doing a memory consolidation restart;
    D) re-creating a mail account with exactly the same information as that deleted in B);
    E) restarting the iPhone.
    As the parameters in D match the parameters in B, this has to be a bug.

  • Me outgoing mail server not working from iPhone / Reply to email address

    Hi, I have MM sent up on my iPhone and Mac, the SMTP outgoing mail server does not work from the iPhone but does from the Mac, to get around this I changed the outgoing server on the iPhone to my optusnet outgoing server, that has been working fine, the problem I have is if someone reply's to a email from the phone it gets bounced back becuase the reply to email address for me is @mac.com not from @me.com
    I have tried to change the reply to email address in the phone but it only allows you to change the name not the @mac.com
    I have only ever had a Me account not a .Mac account so I dont know why its locked to @mac

    I deleted the MM account on the phone and reinstalled it again. Now it is working.

  • New mail server, software, changing from POP to IMAP. Advice / Thoughts?

    David Wiese wrote:
    just out of curiosity why are you doing imap for 80 users? Was this for cost reasons?
    another way is to use hosted exchange, $4/ month per mailbox
    That was my thought too...
    Is there no Office licencing? Even if you want to avoid Exchange, MDaemon with the Outlook Connector and ActiveSync is a far more pleasant experience than IMAP and Thunderbird.
    Is all email currently stored in the POP mailbox, or is it pulled to PST files? 
    I would investigate using something like MigrationWiz to copy the data between the two servers, so all you have to worry about it updating the server details in the clients. Being clever with DNS, depending on the current setup, might avoid having to do even that.

    Hi all.This won’t be short…..It seems I can’t find a good guide to migrating to a new non-exchange server solution and go from POP to IMAP in the process. I currently have approximately 80 email users in one location on a UTM device now functioning as email server only that must be retired. The mail service is the basic of all basic. After a lengthy trial, I have purchased Alt-N's mDaemon mail server. My end goal is to have everyone using IMAP (and eventually all the bells and whistles). The current production email server is mail.example.COM with WAN ip of xx.xxx.xxx.66My staged mDaemon server is mail.example.XYZ with WAN ip of xx.xxx.xxx.86 It is now on the same Lan with mail routing correctly to .XYZ. It is AD integrated and everything works for XYZ independently of .COM just nicely. I have tested everything through and all is good...
    This topic first appeared in the Spiceworks Community

  • OS X Mavericks Mail losing contact with outgoing mail server after waking from sleep.

    I upgraded my MAcBook Air to OS X Mavericks two days ago. Since then I have had intermittent problems connecting to my outgoing mail server. I get the "Unable to Receive Mail" error message. When I click "Take All Accounts Online," I get an additonal error message stating that connection to the host on the specifided port failed. I am using a different outgoing server for mail and I can continue to send emails.
    Putting the computer to sleep seems to trigger the problem. Sometimes restaring the computer resloves the problem, sometimes it does not. Any help would be greatly appriciated as this problems his disrupted my workflow significantly.

    Fixed. In case anyone has the same issue, I went to Internet Accounts, unclicked mail, and then re-clicked it. It worked. Disabling it in the mail configuration did not work, but it did in Internet Accounts.

  • Run Flash Media Encoder from PHP?

    I have tried to run Sorenson Squeeze from the command line to
    no avail. So far, no help from their support either. I was
    wondering. I have Flash Media Encoder V8. Can I run that via a PHP
    script and tell it through arguments what file to convert and how
    to convert it?
    Something like: c:\Program Files\Macromedia\Flash 8 Video
    Encoder\Flash 8 Video Encoder.exe - FileIn -Arguments -FileOut
    Any help would be great.

    nope not possible.. unless you mean the flash Media Encoder,
    which this forum was made for.
    Flash Video encoder is a FLV encoder
    Flash Media encoder is a Live Streaming Encoder

  • James mail server

    I am having a problem with the James email service. At different times during the day, users are unable to connect to the email server. After I reset the James Email service, they are able to get back in. I'm not sure if it has something to do with the number of concurrent connections being maxed out. Can anyone give me some ideas on what to look at?
    Thanks Joe

    I have a messagewith a content type "text/plainboundary..." but when I get it in IMAP using the getContent().toString , all I get is com.sun.mail.imap.IMAPInputStream@c5577c... I have triep type casting it to IMAPInputStream but I still get the same result. I can only open it in POP3 but not in IMAP. This really sucks.

  • Why is smtp iCloud outgoing mail server not connecting from iPod?

    My Macbook mail app works find with smtp iCloud setting?

    I deleted the MM account on the phone and reinstalled it again. Now it is working.

  • James Apache Mail Server how to

    Hye there im using james apache mailserver first time and stucked with the configuration ,thing is conf. xml file ? how to config this xml file and use it . Plz any links or any suggestion for any other server encouraged plz its urgent

    Hi all
    I am trying to set up James mail server for an enterprise. I have installed James and the server is up and running. Also I am able to send and recieve mails for a particular domain. How do I generalise it so as to send and recieve mails from and to any account such as yahoo / hotmail / gmail.com etc....
    Plz reply soon

  • James -  Java Mail Server

    I would really appreciate any help or support from the forum on the
    follwing queries.
    I am presently developing an application using the James Mail Server,
    however after initially setting it up to recieve mail on a local machine
    using pop3, I am not able to find any documentation on it's support for
    creating other folders like a 'sent' or even 'trash folder'.
    [II]
    If it is possible to create other folders in James i.e. a 'trash' folder,
    how would one delete mail so as to:
    (a)Relocate the message from an inbox folder to another folder i.e.
    'trash' folder and
    (b) completely delete it from the server?

    Get rid of the j2ee jar file.

  • I've just upgraded from 3G to 4s, I can't remember my incoming email server password, how can I retrieve it?

    Hi,
    I've just upgraded to Iphone 4s and I'm trying to set up my email, but can't remember my incoming mail server password, how can you get a reminder?

    contact your email provider.

  • James-mail

    Does anyone know how to configure james mail server to run on windows 2000 ?
    I followed the steps from documentation without any results !!!
    Thanks !!!

    - set both the CLASSPATH and the JAVA_HOME environment variables
    - unpack james-x.x.tar.gz (or the -with-phoenix variant) into a folder
    - open a Command prompt and cd to the folder where you extracted James
    - > cd dist\james-x.x\bin
    - > run (Phoenix should start and load James)
    - press control-c to kill the JVM
    - edit ..\apps\james\SAR_INF\config.xml
    - > run (Phoenix should start and load James)
    and James should be up and running in the command window.
    There is also a wrapper to run Phoenix as a service.

Maybe you are looking for

  • SAP BW 7.0 Authorization problem

    HI, we have the following problem on our project and I hope someone can help us! First some input: We are working with Net weaver 2004s (SAP BW 7.0) and my user has the following profiles S_A.SYSTEM and SAP_ALL. We have loaded the following data mode

  • Duplicate Email Notifications on iOS5

    I am currently having issues with notifications on my iphone, but not all the notifications, just my email. I checked the settings for notifications already (banner, bubble, etc) All other items show up as a single notification, but for emails, i rec

  • Mailto: in Flash CS3

    Dear Sirs, I use Flash CS3 for making home pages. For movie clips, that are going be used for email, I use e. g. the following code: astamail_mc.addEventListener(MouseEvent.CLICK,astadown); function astadown(event:MouseEvent):void var request4:URLReq

  • HT201177 I have a horizontal line in the bottom 1/3 of my screen display that I can't get rid of

    I can't seem to get rid of this black horizontal line in the bottom 1/3 of my display its there in all applications and there appears to be a shadow bar behind it? any help would be appreciated

  • Disable conference call/ three-way calling function

    Is there any way to disable the conference call/ three-way calling function on this phone???? I can't make a normal phone call without randomly starting a three-way call with someone from my contact list or recent call log.  I can only keep the phone