Click to See Complete Forum and Search --> : vpopmail support in PHP


largo
10-14-2002, 09:38 PM
HI all,

I needed vpopmail support in php which was easy enough to compile and use. The problem however came in when I realized --enable-valias=y was left out of my vpopmail configuration, and php was reporting

vpopmail valias support: Not supported by vpopmail

through phpinfo().

I recompiled vpopmail and added support, then I tested the config files and could see it had been added. MySQL tables for valias were also present.

I then recompiled php but it refused to pick-up valias support. I have deleted the entire tree and done a fresh install on apache as well. Hell I even restarted the web server! :)

Any ideas on why it's not picking up valias support? Am I missing something really obvious?

Thanks, appreciate any help.

-m.

largo
10-14-2002, 10:42 PM
additional Info:

I verified the valias function was working by adding an alias from the command line tool (valias), as well as checking the MySQL table for the entry. Both seemed correct. As an added measure I even sent an email and it saw redirected properly.

The vpopmail library has valias_select, etc. functions listed which can be grepped from it -- however, php's config log reports:

checking for vpopmail support... yes
checking for vpopmail install directory... /usr/home/vpopmail
checking for valias_select in -lvpopmail... no

*sigh*, I am out of coffee filters too :mad:

Any ideas?

largo
10-15-2002, 06:39 PM
Though I have not found a solution, I simply wrote a function to talk directly to the valias table in the vpopmail db and it works just fine.

I have emailed the person responsible for adding this functionality to php and hopefully he will respond. I'll update you guys if a solution does come about.

-m.

largo
10-16-2002, 12:53 AM
I got an email from the vpopmail developer (Boian Bonev) who confirmed php having a problem picking up valias support on bsd systems.

The following edit to /path/to/php_src/main/php_config.h that he recommended worked for my system.

replace
/* #undef HAVE_VPOPMAIL_VALIAS */
with
#define HAVE_VPOPMAIL_VALIAS 1

-m.

largo
10-17-2002, 01:49 PM
I got another email from Boian Bonevm as he was good enough to track down complete details of this issue and recommend a proper fix as opposed to the brute force method specified earlier:

if php is configured without external mysql, and vpopmail uses mysql the check fails...
i will make one more check if a function that for sure exists in vpopmail library can be found and if not report the error and terminate the configure process.

you may fix the problem without editing the php_config.h by just adding a --with-mysql=/usr (or where it is located) to the configure's command line

Hope this helps -- many thanks to Boian.

-m.