Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8239885
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:17:56+00:00 2026-06-07T20:17:56+00:00

My code needs to connect to IMAP and SMTP servers to send out and

  • 0

My code needs to connect to IMAP and SMTP servers to send out and recieve emails on a periodic basis, currently every 3 mins or so. The typical user flow is as follows

  1. Log in
  2. integrate your email by feeding in your IMAP and SMTP details (including emailId and password).
  3. Go to data

In the background, I run a quartz scheduler which periodically pulls emails from the IMAP server. the web UI and the quartz scheduler run in separate VM’s and talk to each other on REST.

What would be a good way to protect the user’s email credentials in such a scenario? One way hashing will not help because I will never want to ask the user for his password again, but i need to provide credentials to connect on IMAP

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T20:17:58+00:00Added an answer on June 7, 2026 at 8:17 pm

    Of course, the best way to ensure a password is safe is having a “no return to the original”, but that’s out of the scope of this question 🙂

    Having said that, your best option is to encrypt the password on the application code side, using a Private Key that exists only on the server (but not deployed together with the app). You can take a look at Jasypt, which is a tool for encryption for Java. Also, you might want to consider splitting the passphrase for the key into two parts: one coming from some configuration file inside the properties file, and one coming from, perhaps, the database itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working a piece of code which needs to send an attachment
My current code needs to read foreign characters from the web, currently my solution
I'm researching how to code an iPhone app that needs to connect to an
What is the code that needs to be written to attach or connect a
The following code needs to produce an XML file. string path = @c:\load\myFile.xml; SqlConnection
I know Drupal 7 jQuery code needs to be wrapped in a way which
I have an android app which has native code. The native code needs to
My code basically needs to start up a simple chat server with a client.
I have code which needs to do something like this There is a list
I have code that needs to loop and it will need to change the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.