![]() |
IspConfig API: FTP & Email not accessible
Hi guys,
I am using your API to connect my software to your IspConfig these are my steps: 1. Create a client (client_add) 2. Create the website (sites_web_domain_add) 3. Create the FTP account (sites_ftp_user_add) 4. Create the Email Account (mail_user_add) 5. Create the Database (sites_database_add) All the elements are visible in the IspConfig panel but the FTP and the Email doesn't work. :confused: I mean that If I try to log with roundcube for the email account and/or browse by the Filezilla the ftp profile created It doesn't connect. These are the parameters log from my software to your software: Code:
05-12-2011 09:48:32 - ID 1 - Shineisp_Api_Panels_Ispconfig_Main::create_client - Paramenters: {"company_name":"My User","contact_name":"John Doe","customer_no":"212","vat_id":"IT1231231231","email":"info@johndoe.com","street":"via Roma 31","zip":"20111","city":"Milan","state":"TS","country":"IT","mobile":[],"fax":[],"telephone":"+39.0400644524","language":"it","usertheme":"default","template_master":0,"template_additional":"","created_at":0,"limit_web_quota":"3000","limit_mailbox":"10","limit_database":"3","limit_traffic_quota":"12000","limit_ftp_user":"3","limit_web_domain":"5","limit_mailaliasdomain":"1","limit_maildomain":"10","limit_mailcatchall":"3","limit_mailforward":"10","limit_mailrouting":"10","limit_fetchmail":"3","limit_mailfilter":"10","limit_mailquota":"1000","limit_spamfilter_wblist":"-1","limit_web_aliasdomain":"10","limit_cron_frequency":"15","limit_cron_type":"url","limit_web_subdomain":"15","limit_spamfilter_policy":"-1","ssh_chroot":"no,jailkit","limit_spamfilter_user":"-1","limit_webdav_user":"0","limit_cron":"7","limit_shell_user":"0","web_php_options":"no,fast-cgi","username":"johndoe","password":"furerufe"}Code:
Risposta: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------Seems that the email has been not created. Roundcube tells me that there is not any account with the credencials posted. Furthermore if I delete the customer and all the services by the IspConfig panel I get this error: Possible security violation when deleting the maildir If you need to see my inteface for IspConfig take a look at: http://code.google.com/p/shineisp/so...onfig/Main.php |
Seems as if you have not set the maildir or that you set a invalid maildir path while you created. You might want to take a look at bthe example functions that we proviude in the 3.0.4.1 tar.gz and also compare the database records for mail users that you created with the api with one that you created in ispconfig to see the correct parameters.
|
Hi Till,
these are my email parameters sent to ISPConfig API: Code:
{Code:
'server_id' => 1, |
I have solved the eMail maildir problem.
In your example you have to write the default value Code:
'gid' => 5000,Code:
'gid' => 5000,Anyway when the email is deleted by IspConfig this error appears: Possible security violation when deleting the maildir |
Quote:
|
Yes now I have completely solved the email problem, thanks!
Now I am trying to solve the ftp problem. |
Nothing to do :(
I have set the parameters as mentioned in your example but If I set the UID and the GID Filezilla doesn't connect to the profile. This is my snipped code: http://code.google.com/p/shineisp/so...g/Main.php#268 Code:
Risposta: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------- When I set the UID and GID with the value: 5000 I can login with filezilla but I see only empty dir and not the web dir. - When I set the UID and GID with the correct web3798 and client133 I don't connect myself anymore. Why!? |
Quote:
Quote:
|
I have found a little bug in the vhost configuration:
Code:
/etc/apache2/sites-enabled/100-thedomain.com.vhostWhy? Furthermore when I restart the webserver I get: Code:
# /etc/init.d/apache2 restart |
Quote:
What have I wrong in these parameters? Code:
Paramenters: {Code:
{ |
| All times are GMT +2. The time now is 18:00. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.