How to assign inbox group email account to users?

Hi,

I will test the last SuiteCRM version this week, I’ll keep you up-to-date, too.

1 Like

I’m already running 7.11.13. Perhaps I’m doing thing wrong, in which case a little guidance would be helpful. Thanks both.

Well, obviously, it still doesn’t work or at least we don’t know how to use it.

I made several fresh installs of suitecrm 7.11.13.

Install 1:

  • No security groups configured
  • No roles configured
  • Security suite settings unchanged

I created a group inbound mail account.

  • Then I created a new user

  • Once created I went back to his profile as an admin and went to his mail settings.

  • On the first tab (the general tab), no folders appeared

  • On the second tab, the group mail account appeared and was checked.

  • I tried unchecking it and checking it again with no luck.

    • I checked the table folders_subscriptions during my tests.
    • Unchecking and checking it again does change the table content
      • new lines appeared for my user
      • but there are less lines for my new user than for the admin user (see screenshot)

In my other installs, I tried defining a default security group in the security suite settings, It didn’t change anything.

I also tried to create a new user before creating the group mail account, it doesn’t work too, I can’t link the related folder to the user.

As @ctucker1984 said, I too keep thinking I’m doing something wrong. Is there a more complete documentation about the group inbound mail accounts ?

@Mac-Rae do you know where I can find some information about how it works or point me to the php files involved in it, even if I’m not a developper anymore (been 12 years without coding…) I still can read some code, maybe I’ll find something ?


By the way here are the file access rights set on my install :

chown -R root:root ${SUITECRM_FOLDER}

the apache user has rights on the suitecrm folder

chown www-data:www-data ${SUITECRM_FOLDER}

the apache user has rights on these folders and subfolders

chown -R www-data:www-data ${SUITECRM_FOLDER}/cache/ ${SUITECRM_FOLDER}/custom/ ${SUITECRM_FOLDER}/modules/ ${SUITECRM_FOLDER}/themes/ ${SUITECRM_FOLDER}/data/ ${SUITECRM_FOLDER}/upload/ ${SUITECRM_FOLDER}/include/ ${SUITECRM_FOLDER}/install/

chmod -R u=rwx,g=rx,o=rx “${SUITECRM_FOLDER}”

Why is this thread marked Solved? I had posted another thread on this issue last year, then tried to resurrect my coding from days past to little or no avail. As recommended here in the forums I was told to post an issue on github, which I did in great detail and it got pulled as a security risk. Go figure. This issue doesn’t exist in SugarCRM by the way.

There are 4 files that affect this issue. EmailUI.js, EmailUI.php, EmailUIAjax.php and SugarFolders.php.

At least now the “Fix” has been to just lock down the feature so it doesn’t let you keep adding mailbox folder permissions (at all).

Before 7.11.10~ish would just keep populating the folders_subscriptions table with duplicate entries every time a user visited the email settings and clicked on either the allowed folders area or the settings tab where you can (or should) be able to enable/disable group mail account access.

Hi @stratacorps, it was marked “Solved” because at that time, I had a way to do what my customer wanted.

Anyway you’re right it shouldn’t be marked as solved, but in the new version of the forum I don’t know how to change this thread’ title.

2 Likes

Hi there. Is this still not fixed, @Mac-Rae? What a pity for all this great work if the email functionality isn’t working. It spoils the show. Even the two hotfixes posted by @Marc-Alexandre and enbyted do not work in my case. The folder selection window appearing in user mail settings is completely indifferent as to whether I tick or untick the mailboxes (which do correctly get listed there on the mail accounts tab, but missing on the general tab). If I untick them and then save the user’s profile, then when I next take a look they’re still marked as checked. The admin user, when clicking on the Emails module, has a button to the right on top of the list of messages which allows to select mail accounts. That button only exists in a degenerated form without content for normal users.

No offense, but do I take this correctly that SuiteCRM is for well over one year in a state in which non-admin users can’t access the system’s inbound mail accounts?

Afaik it’s working as expected right now, I’ll see if I can take a look today and confirm which side of the fence this falls on. It may be that the email documentation needs an update which if I get the time I can take a look at.

Emails is still broken in its own ways however on the front end it should at least be functional.

I’ll let you know how I get on!

1 Like

Hey there - any news on this front?

Hello to all,
we evaluate suitecrm and came across this problem in v.7.11.18.
Searching for a solution I finally found this thread and can confirm the problem is still there as described above by Marc-Alexandre and stratcorps.
Our goal is simple:
One sales team that has access to a shared group email box sales@…
A support team that has access to a shared group email box support@… and which is using the AOP for dealing with the cases.
In addition the sales users have all a personal account.
I thought this is a common basic starter configuration, but failed to configure it.
As admin I can access any of the incomming group e-mails.
If I try to assign them (as admin) to individual users in the folder management window (select one or many and click done) . I get a confirmation “The settings have been saved”.
But just reopening the folder management window I see they are not saved.
@ Mac-Rae: That’s at least how I understand you instruction from Dec. 2019.

Please excuse my ignorance, if I asked the obvious and please give me an advice how to deal with this.
With best regards
Dieter

Yeah, there must be something wrong - I tried all sorts of things, for days, and I’m not like new to computers at any rate.

Hey folks! I’m circling back round these issues documenting them today, if you have any more issues with emails please let me know exact info so i can attempt to replicate them. Thanks!

Hi,

I will try to write down my different issues I had with emails next weekend.

But as I am not working with suitecrm anymore for the last 3 months (new job) I will have to check they are still relevant

Good day to everyone !

1 Like

Hi @Mac-Rae - they are still relevant as detailed above.

Just the other day I spent really quite a couple of hours spread over a couple of days on it trying all sorts of things to get it to work, eventually had to stop.

Hi @Mac-Rae,
yes they are still as described above.
Perhaps the most programmatic way to understand our issue and help us, is to setup a new instance with the demo data.
Then create the two teams east sales und west sales as described in the security group documentation (as example).
Make a real group e-mail account for both sales teams and try to assign them to the users of each team.
If you succeed on this please document the steps (perhaps extend the documentation) you performed.
I’m willing to test this step by step based on your description and let you know, if and where I got stuck.
This is all close to a real starting configuration and I would believe it is helpful for everybody.
With best regards
Dieter

Hey folks!

So! I managed to get it to work; I will point out that this is not a great setup and definitely needs improvements which I hope we will see with Suite8. I’ll write up proper documentation when I get the chance, however, for now, here’s the walkthrough of how to set up as you wanted.

  • Set up both your teams

  • Make sure all users who are using the group emails have a personal inbound and outbound email (Outbound can be system)

  • Create the 2 group emails, make sure you tick the “Allow users to send emails using the “From” Name and Address as the reply to address” options

  • Go to the user’s accounts as admin and open the emails menu, tick active next to the email account you want them to access.

  • Then in the email folders options hit none, this will display all emails folders this user has access to.
    CTRL+Clicking on an email folder will cause it to be hidden again.
    Hide all folders they don’t need.

  • Log in as the user, and in the emails module, you should see the emails displayed for that folder.

Hopefully, that works for you all, if not let me know and I can break it down further! There appears to be more than just a few issues :laughing: but I’m sure that during the development of Suite8 this system will be replaced or fixed in some manner to make this way more intuitive :+1:

1 Like

Quick edit, the button you need to tick is called this - Allow users to send emails using the “From” Name and Address as the reply to address:

1 Like

Came across this thread while trying to set up multiple group emails, however it seems that group emails and “personal” emails may conflict with each other if they match (auto-importing of emails stops working and thus custom logic hooks may also stop working).

This is just to note that the suggested setup is only a workaround and may not always work correctly.

What do you mean “if they match”? Meaning the Group email and the Personal email are for the same address?