Roundcube Community Forum

 

[SOLVED] sender identity and gmail smtp user

Started by barbaran4w, September 11, 2022, 02:40:26 PM

Previous topic - Next topic

barbaran4w

Hi,
I'm using roundcube (v 1.4.3) with Ispconfig.
I've my own domain (example.com) with multiple mailbox ([email protected], etc).
As my new ISP blocks SMTP Port 25, I edited the roundcube config file to have the gmail smtp settings ($config['smtp_server'] = 'ssl://smtp.gmail.com'; $config['smtp_user'] = '[email protected]'; etc.).
It works both with tls/port 587 and ss/465.
The odd thing is that the "smtp_user" becomes the sender identity, so if I send an email as [email protected], the recipient of the mail will see [email protected] (and not [email protected]) as sender --  that only happens with gmail smtp settings.
(btw, If I use another server as smtp, the sender remain the original, but then gmail doesn't accept the mail).
I hope I made myself clear,
any suggestion will be welcome, thank you!

SKaero

Gmail is changing the sender email address before they send the email to prevent email spoofing. They may allow you do it if you've added the email your trying to send from as an alias: https://support.google.com/mail/answer/22370?hl=en

barbaran4w