Roundcube Community Forum

Release Support => Pending Issues => Topic started by: gmarco on June 17, 2025, 02:13:18 AM

Title: error parsing opensmtpd virtuals
Post by: gmarco on June 17, 2025, 02:13:18 AM
Hi all,
roundcube v1.6.11 wrongly parse the virtuals of opensmtpd

The file is this:
# cat /usr/local/etc/mail/virtuals
[email protected]: dom-gmarco
....

The problem is that roundcube puts automagically upon login in the identities email field:
[email protected]:

which triggers errors while sending email as invalid sender.

The easy fix is manually edit identities and remove the ":" from the mail field, but probably many people will find difficulties trying to analyze where the problem could be.

I have in my config.inc.php this line:
// -- Plugins configs ------------------------------------------------

// -- virtuser_file
$rcmail_config['virtuser_file'] = '/usr/local/etc/mail/virtuals';

As a dirty quick fix will be possible to show automatically the identities window to the first login so people will be forced to check and modify the data ?

Thanks all for attention.
Title: Re: error parsing opensmtpd virtuals
Post by: alec on June 17, 2025, 06:32:14 AM
I create https://github.com/roundcube/roundcubemail/issues/9898 for you.

In meantime you can try the new_user_dialog plugin.
Title: Re: error parsing opensmtpd virtuals
Post by: gmarco on June 17, 2025, 06:50:07 AM
Hi,

probably the plugin is made for sendmail virtusertable format (where I use without any problems), but I think it should be sufficient to strip "brutally" all illegal characters from (the end of) email address  :)

Thanks so much for your kind reply.