Roundcube Community Forum

 

Change Sender Domain when sending SMTP?

Started by dwoolridge, January 27, 2022, 06:14:00 PM

Previous topic - Next topic

dwoolridge

Hello,

I recently changed my home e-mail server PC from Windows to Linux.  Please bear with me, I know enough to be dangerous, but don't know all I should about e-mail setup & configuration.  I think I've backed myself into a corner with my e-mail setup...

I'm able to send e-mails using Mozilla Thunderbird, but I can't figure out how to get Roundcube 1.5.0 to work.

I get the following response from my e-mail service (Charter.net) when sending from Roundcube.  Charter is expecting the sender to be '[email protected]', but Roundcube is using "[email protected]" as the sender.
SMTP Error (550): Failed to set sender '[email protected]', sender rejected.

I had set up my e-mail with the default_host to be 192.168.0.5 because of my home network and how I'm using No-IP for outside access to my dynamic IP address.

Is there a way to change the domain of the sender when sending from Roundcube SMTP?

Here are the settings that I'm using...

$config['smtp_server'] = 'ssl://mobile.charter.net';
$config['smtp_port']   = 587;
$config['smtp_user']   = '[email protected]';
$config['smtp_pass']   = '[hidden]';
$config['default_host'] = '192.168.0.5';


I had tried changing 'default_host' to 'charter.net', but then I couldn't log in to Roundcube (spinning wheel with "Loading..." message for a long time and then "Connection to storage server failed").

For Reference, the SMTP configuration that works with Mozilla to send e-mails:
Server Name:  mobile.charter.net
Port:         587
User Name:    [email protected]
Password:     [hidden]
Security:     SSL/TLS



Any help would be appreciated.





alec

Just update the email address in user identities. Also, set username_domain.

dwoolridge

Thanks so much alec!

Changing the e-mail address in "Settings-->Identities-->[email protected]"  to [email protected] did the trick.

I did not have to set the "username_domain" for it to work for me.