Author Topic: [SOLVED] sender identity and gmail smtp user  (Read 368 times)

Offline barbaran4w

  • Newbie
  • *
  • Posts: 2
[SOLVED] sender identity and gmail smtp user
« 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 (barbara@example.com, 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'] = 'xxxxxx@gmail.com'; 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 barbara@example.com, the recipient of the mail will see xxxxxx@gmail.com (and not barbara@example.com) 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!
« Last Edit: September 11, 2022, 03:17:27 PM by barbaran4w »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,783
    • SKaero - Custom Roundcube development
Re: sender identity and gmail smtp user
« Reply #1 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

Offline barbaran4w

  • Newbie
  • *
  • Posts: 2
Re: sender identity and gmail smtp user
« Reply #2 on: September 11, 2022, 03:16:35 PM »
Wonderful!
It worked!
thank you so much