New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users created with the API can not create e-mails. #597

Open
JB1985 opened this Issue Nov 26, 2018 · 9 comments

Comments

Projects
None yet
2 participants
@JB1985
Copy link
Contributor

JB1985 commented Nov 26, 2018

Github Version: 0.10.0 (DB: 201811180)
Debian: 9
Postfix with Dovecot IMAP

A user reported that he created two email addresses. That seem to be true, see Screenshot:

image

But now, he cant see/or Login to the Email User and I cant create new user.

image

The link to create new Emails is missing.

In the database I cant find the users in mail_users and mail_virtual

All users who were not created with the API work without any problems.

@d00p

This comment has been minimized.

Copy link
Member

d00p commented Nov 26, 2018

Did the user create the emails using external API? What's the content of table mail_virtual?

@d00p

This comment has been minimized.

Copy link
Member

d00p commented Nov 26, 2018

The link to create new Emails is missing

The screenshot says otherwise..."E-Mail Adresse anlegen"...

@d00p

This comment has been minimized.

Copy link
Member

d00p commented Nov 26, 2018

Also, need the exact parameters you've created the user via API with...

@JB1985

This comment has been minimized.

Copy link
Contributor

JB1985 commented Nov 26, 2018

Hi d00p,

I cant find the User/Email in mail_virtual.
No, the user has created the e-mail via web interface.

On the Screenshot "E-Mail-Adresse anlegen" is missing. It should like this ->
image

The parameters are:

{
"status": 200,
"status_message": "successfull",
"data": {
"customerid": "XXXX",
"loginname": "webXXXXX",
"password": "soemthingwithhash",,
"adminid": "1",
"name": "XXXX",
"firstname": "XXXX",
"gender": "0",
"company": "",
"street": "XXXXX",
"zipcode": "XXXXX",
"city": "XXXXX",
"phone": "XXXXX",
"fax": "",
"email": email@here.yzr",
"customernumber": "1149",
"def_language": "",
"diskspace": "5242880",
"diskspace_used": "0",
"mysqls": "-1",
"mysqls_used": "0",
"emails": "-1",
"emails_used": "0",
"email_accounts": "-1",
"email_accounts_used": "0",
"email_forwarders": "-1",
"email_forwarders_used": "0",
"email_quota": "-1",
"email_quota_used": "0",
"ftps": "-1",
"ftps_used": "0",
"tickets": "-1",
"tickets_used": "0",
"subdomains": "-1",
"subdomains_used": "0",
"traffic": "-1048576",
"traffic_used": "0",
"documentroot": "/var/customers/webs/webXXXX/",
"standardsubdomain": "XXX",
"guid": "XXXXXX",
"ftp_lastaccountnumber": "0",
"mysql_lastaccountnumber": "0",
"deactivated": "0",
"phpenabled": "1",
"lastlogin_succ": "0",
"lastlogin_fail": "0",
"loginfail_count": "0",
"reportsent": "0",
"pop3": "1",
"imap": "1",
"perlenabled": "0",
"dnsenabled": "0",
"theme": "Sparkle",
"custom_notes": "",
"custom_notes_show": "0",
"lepublickey": null,
"leprivatekey": null,
"leregistered": "0",
"leaccount": "",
"allowed_phpconfigs": "[1,8,9,14]",
"adminname": "admin"
}
}

@JB1985

This comment has been minimized.

Copy link
Contributor

JB1985 commented Nov 26, 2018

I found the mistake. It has the hook in the domain missing that is an email domain.

I am sorry! But I dont know, why "Email Domain" was disabled.

The API Output was correct.

{
"status": 200,
"status_message": "successfull",
"data": {
"id": "XXX",
"domain": "domain.xyz",
"adminid": "1",
"customerid": "93",
"aliasdomain": null,
"documentroot": "/var/customers/webs/webXXX/",
"isbinddomain": "0",
"isemaildomain": "1",
"email_only": "0",
"iswildcarddomain": "0",
"subcanemaildomain": "0",
"caneditdomain": "1",
"zonefile": "",
"dkim": "0",
"dkim_id": "0",
"dkim_privkey": "",
"dkim_pubkey": "",
"wwwserveralias": "1",
"parentdomainid": "0",
"phpenabled": "1",
"openbasedir": "1",
"openbasedir_path": "0",
"speciallogfile": "0",
"ssl_redirect": "0",
"specialsettings": "",
"deactivated": "0",
"bindserial": "2000010100",
"add_date": "1542797671",
"registration_date": null,
"termination_date": null,
"phpsettingid": "4",
"mod_fcgid_starter": "-1",
"mod_fcgid_maxrequests": "-1",
"ismainbutsubto": "0",
"letsencrypt": "0",
"hsts": "0",
"hsts_sub": "0",
"hsts_preload": "0",
"ocsp_stapling": "0",
"http2": "1",
"notryfiles": "0"
}
}

@d00p

This comment has been minimized.

Copy link
Member

d00p commented Nov 26, 2018

Okay I'll check Domain.add() maybe something went wring there. Basically it does not matter whether internally added via Webinterface or externally via API as it both uses the API in the end.

@JB1985 JB1985 closed this Nov 26, 2018

@JB1985 JB1985 reopened this Dec 4, 2018

@JB1985

This comment has been minimized.

Copy link
Contributor

JB1985 commented Dec 4, 2018

I reopen this Issue again, because I think there is a bug in add Domain and Mailserver settings (isemaildomain).

If I want to add a Domain I do in Mailserver settings isemaildomain 1, after I save adding a domain the Mailserver settings are unset, ismaildomain = 0.

This is only when adding, not when editing a domain.

Can you look @d00p if you can find the mistake?

@d00p d00p closed this in 07d7908 Dec 4, 2018

@JB1985

This comment has been minimized.

Copy link
Contributor

JB1985 commented Dec 24, 2018

Unfortunately the bug still seems to be there.

Can you please check again these actions if there is not another error in it?

Dec 24 15:20:16 srvXXX Froxlor: [Customer Action web1] [information] [API] added email forwarder for 'aleph@domain.xyz'
Dec 24 15:21:38 srvXXX Froxlor: [Customer Action web1] [information] [API] toggled catchall-flag for email address 'j@domain.xyz'
Dec 24 15:26:52 srvXXX Froxlor: [Customer Action web1] [information] [API] updated email account 'second@domain.xyz'
Dec 24 15:58:54 srvXXX Froxlor: [Kunde Action web1] [information] [API] edited domain 'domain.xyz'
Dec 24 16:07:34 srvXXX Froxlor: [Kunde Action web1] [information] [API] edited domain 'domain.xyz'
Dec 24 16:27:26 srvXXX Froxlor: [Kunde Action web1] [information] [API] edited domain 'domain.xyz'
Dec 24 17:16:02 srvXXX Froxlor: [Kunde Action web1] [information] [API] added subdomain 'www.domain.xyz'

That is what I could find in the logs as actions.

@d00p

This comment has been minimized.

Copy link
Member

d00p commented Dec 25, 2018

Exact steps to reproduce please

@d00p d00p reopened this Dec 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment