A few weeks ago I was trying to implement a gmail-like SMTP relay / aliases system on Postfix here: Postfix: SMTP Relay based on alias (from address)
After posting a solution for the question one user (@danielAzuelos) pointed out that storing postfix's sender credentials in plain text could be a security issue.
Is there a way to store them in a safe way and retain the functionality explained on the question/answer?