Skip to content

Commit

Permalink
cPanel Importer: Bug fix: Domain not allowed on rainloop
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Aug 23, 2019
1 parent 38779d5 commit 9914692
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plogical/mailUtilities.py
Expand Up @@ -112,7 +112,12 @@ def createEmailAccount(domain, userName, password):

execPath = "/usr/local/CyberCP/bin/python2 /usr/local/CyberCP/plogical/mailUtilities.py"
execPath = execPath + " AfterEffects --domain " + domain
ProcessUtilities.executioner(execPath, 'lscpd')

if os.getlogin() == 'root':
## This is the case when cPanel Importer is running and token is not present in enviroment.
ProcessUtilities.normalExecutioner(execPath)
else:
ProcessUtilities.executioner(execPath, 'lscpd')

## After effects ends

Expand Down

2 comments on commit 9914692

@MyMammothTech
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am running a new install with the latest version and I am still getting this error.

@sawontheboss4
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, In Snappymail, I am getting the same message. "Domain is not allowed"

Please sign in to comment.