I have an asp.net web app that generates emails when users perfrorm actions...these emails are generally notifications to other users that they should see/do something. The users can be internal to the company, or external (subcontractors).
These emails are stored in the database, and picked up by an email service. The database and email service are often, but not always, on a different server to the web app.
The email service up till now has been sending the emails from a generic account, or setting the sender as the user's email so it looks like it's come directly from them.
The problem I have is that some of our newer customer setup's don't allow emails that are claimed to be sent from somewhere, and actually sent from somewhere else. The solution I am looking at is to have the user enter their smtp settings and then the service will use these settings to actually send the email from that user. ...however, I need to be able to store the smtp settings securely, including password, so the service can retrieve them.
Can anybody please suggest how I can securely store the settings, or if it's not possible then how else I may tackle this issue?
thanks in advance.