Author Topic: Disable Full Email login?  (Read 2809 times)

Offline staze

  • Newbie
  • *
  • Posts: 2
Disable Full Email login?
« on: January 19, 2012, 03:11:33 AM »
Found a weird one this evening. Users can login with their full email username@example.com to roundcube, but we have SMTP auth set to %u, and %p. When they would go to send an email, it would get rejected as bad username/password from SMTP because it doesn't like username@example.com as a valid user.

Can full email address login be disabled? I don't see anything in the main.inc.php that looks like it addresses this.

Thanks!
« Last Edit: January 19, 2012, 03:12:22 AM by staze »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Disable Full Email login?
« Reply #1 on: January 19, 2012, 03:23:39 AM »
If you add your domain to $rcmail_config['username_domain'] in /config/main.inc.php the user can login with the domain but I'm not sure that would fix your problem. I think you'll probably have to write a plugin to change the smtp user at login.

Offline staze

  • Newbie
  • *
  • Posts: 2
Disable Full Email login?
« Reply #2 on: January 19, 2012, 11:37:53 AM »
yes, and it's backwards anyway. I want to DISABLE the ability to login with their domain, and yet, it seems by default, you can. I don't have anything set in $rcmail_config['username_domain'] (it's currently ''), yet it seems that SOME users are able to login this way. =/ Not sure why only some...