News and Announcements > General Discussion

How can I use as SMTP server?


I have a web server for my website and for my e-mail address How can I send outgoing e-mails by using I tried already, but the authentification failed.
As login, I have to set my complete gmail address: $config['smtp_user'] = '' - is there a backslash before @ necessary or not?
Must I install the plugin bartnv/twofactor_webauthn which is actually intended for FIDO? Or any other plugin?

OK, I figured it out so far: I generated a special password and now I am able to send e-mails. But the e-mails have my gmail address as sender instead of the address which I am really using:

----- E-Mail Header ----------------------------------------------------
Return-path: <>
Received: from mail by with spam-scanned (Exim 4.92)
   (envelope-from <>)
   id 1o6DXj-000C3x-86
   for; Tue, 28 Jun 2022 17:54:23 +0200
Received: from ([])
   by with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128)
   (Exim 4.92)
   (envelope-from <>)
   id 1o6DXj-000C3s-5w
   for; Tue, 28 Jun 2022 17:54:23 +0200
From: My Name <>
X-Google-Original-From: My Name <>

----- my RoundCube config -------------------------------------------------
$config['smtp_server'] = 'ssl://';
$rcmail_config['mail_domain'] = '';
$config['smtp_user'] = '';
$config['smtp_pass'] = 'abcdefghijklmnop';

Is there a way how to set "" as sender?

Please look at gmail documentation, google rewrote the heade,rs I'd guess as part of their anti-spam measures.


[0] Message Index

Go to full version