Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th October 2011, 13:25
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default mail_domain_get_by_domain doesn't get the email.

Hi guys,

we are connect our software with ISPConfig but we get some difficulties in order to get the list of the email addess set in the ISPConfig by SOAP.

After the soap connection we call this method:

$mails = $client->mail_domain_get_by_domain ( $this->getSession (), "ourdomain.com" );

ourdomain.com is already set in the ISPConfig panel and work as well but the result of the call is empty. Why?!

thanks
Reply With Quote
Sponsored Links
  #2  
Old 11th October 2011, 13:29
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,453
Thanks: 813
Thanked 5,222 Times in 4,092 Posts
Default

Which ISPConfig version do you use for development? There was a bug in this function in the api in 3.0.3.3. which has been fixed in 3.0.4 beta.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 11th October 2011, 13:38
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

The quotes have been added in you code. The result is the same. Does we have to connect to the mailserver?

We have the ispconfig 3 multiserver with the configuration
Reply With Quote
  #4  
Old 11th October 2011, 13:50
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,453
Thanks: 813
Thanked 5,222 Times in 4,092 Posts
Default

Connections are always done to the master server.

The changes were not about quotes, the changes were in the variable name. The function in 3.0.4 has been tested last week successfully. The function in 3.0.3.3 is broken.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 11th October 2011, 13:53
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

Yes, i forgot to write in the last post that i have changed the domain var from domain_id to domain too.

Any idea?
Reply With Quote
  #6  
Old 11th October 2011, 13:56
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,453
Thanks: 813
Thanked 5,222 Times in 4,092 Posts
Default

You can debug the function by returning the sql query that is used to get the domain as soap error and then try this query in the ispconfig database of the master with phpmyadmin to see if it return the correct results.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 11th October 2011, 14:28
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

this is the result in MySQL. The SOAP request is empty.

Code:
mysql> SELECT * FROM mail_domain WHERE domain = 'ourdomain.com';
+-----------+------------+-------------+---------------+----------------+----------------+-----------+-------------------+--------+
| domain_id | sys_userid | sys_groupid | sys_perm_user | sys_perm_group | sys_perm_other | server_id | domain            | active |
+-----------+------------+-------------+---------------+----------------+----------------+-----------+-------------------+--------+
|         3 |          1 |           4 | riud          | ru             |                |         3 | ourdomain.com | y      |
+-----------+------------+-------------+---------------+----------------+----------------+-----------+-------------------+--------+

Last edited by vaio1; 11th October 2011 at 14:34. Reason: wrong reply
Reply With Quote
  #8  
Old 11th October 2011, 14:59
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,453
Thanks: 813
Thanked 5,222 Times in 4,092 Posts
Default

How did you check if its empty? The functions returns a two dimensional arry, not a one dimensional array. Please use the print_r() function to display the output that you received from the remote script.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 11th October 2011, 15:34
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

I have printed the value using the print_r() function but the result is an bool(false)

Last edited by vaio1; 11th October 2011 at 15:47.
Reply With Quote
  #10  
Old 11th October 2011, 15:54
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,453
Thanks: 813
Thanked 5,222 Times in 4,092 Posts
 
Default

Then you might have to try to debug your code, you should also check if you enabled thsi function for the remote user that you use to conect to ispconfig. We had tested this function a few days ago here and it worked, so I'am sure that the code in 3.0.4 is ok.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix Cannot Receive Email - Smtp Timed Out newbielinx Installation/Configuration 4 26th September 2011 17:14
Email delivery problem - Ubuntu Karmic Koala (Ubuntu 9.10) [ISPConfig 2] qiubosu General 58 16th April 2010 12:24
Email delivery problem - Ubuntu Karmic Koala (Ubuntu 9.10) [ISPConfig 2] qiubosu Installation/Configuration 1 18th January 2010 09:21
hotmail rejects outgoing email nzimas Server Operation 3 1st May 2009 03:39
email forwarding locally consumes all resources rdells General 20 1st May 2006 19:43


All times are GMT +2. The time now is 18:09.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.