Roundcube Community Forum

Release Support => Pending Issues => Topic started by: barbaran4w on September 11, 2022, 02:40:26 PM

Title: [SOLVED] sender identity and gmail smtp user
Post by: barbaran4w on September 11, 2022, 02:40:26 PM
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!
Title: Re: sender identity and gmail smtp user
Post by: SKaero on September 11, 2022, 02:56:24 PM
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
Title: Re: sender identity and gmail smtp user
Post by: barbaran4w on September 11, 2022, 03:16:35 PM
Wonderful!
It worked!
thank you so much