How can I use a user alias with gmail smtp authentification?
<p>I am using Drupal 7 and the SMTP module. The Gmail (Apps for work) account uses 2 step verification and an app password so that the website can auth using SMTP. Fine so far.</p>

<p>The problem is that the user account, say <code>johndoe@domain.com</code> should not be the from address, but <code>info@domain.com</code> should. info is already a working alias for <code>johndoe</code>.</p>

<p>We must use <code>johndoe</code> to actually authenticate, an alias does not work for this. But, although the from address in debug is <code>info@domain.com</code>, in my mail app the sender still seems to be <code>johndoe@domain.com</code>.</p>

<p>Any ideas?</p>

<p>Edit: I've read that the Google SMTP service overrides the from address with the user account. Even if the from address is an existing alias?</p>

<p>This is really weird.</p>