Re: Urgent Help, please! SOLVED
Well thanks to all of you guys, I've solved my problem. However even with vpopmail support built into PHP it didn't work out 'cause permissions where not set right. I solved this way: I setuid che vpopmail scripts. (not all of them just vadduser and vmoduser) Don't know if it's correct but it works for me :) Best regards, Guyver
Re: Urgent Help, please! How to use vpopmail functions in PHP!
Yes, you're right! But then when using the correct function I had the UID/GID problem. I'm working on that right now. Regards, Guyver - Original Message - From: "Flavio Curti" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 21, 2001 11:55 AM Subject: Re: Urgent Help, please! How to use vpopmail functions in PHP! > hi > > well, judging from the source code you should try the following > functions: > vpopmail_add_user() > > also read the file in ext/vpopmail in the php4 source tree... > > greetz & hope it helps > > Flavio >
Re: Urgent Help, please! How to use vpopmail functions in PHP!
Sorry for bothering you guys again, but I've recompiled PHP/Apache with vpopmail support in (I checked with phpinfo() and I got this: vpopmail vpopmail support enabled vpopmail version 4.10.30 vpopmail uid/gid php uid/gid/euid/egid 89/89 99/99/99/99 vpopmail dir /home/vpopmail vpopmail vadddomain /home/vpopmail/bin/vadddomain vpopmail vdeldomain /home/vpopmail/bin/vdeldomain vpopmail vaddaliasdomain /home/vpopmail/bin/vaddaliasdomain so I guess everything should be working) BUT when I call the vpopmail functions (like vadduser() ) I get this error: Fatal error: Call to undefined function: vadduser() in /home/www/test/scripts/mail_add.php on line 9 Am I missing something? I though once compiled in those functions were already present, how do I define them. Please help me out, I feel very close to the solution but still cannot reach it. Thanks again to anyone answering! Guyver - Original Message - From: "The Guyver" <[EMAIL PROTECTED]> To: "Sean C Truman" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, September 21, 2001 9:51 AM Subject: Re: Urgent Help, please! > Don't worry I wasn't going to ask you to code my script :) > > I'll try to recompile PHP and see what happens, hope it really works out! > Thanks anyway for your precious help and I wish to thank all the people > that answered my message, even though I tried suid the scripts and didn't > work out. > > I'll let you know if this PHP recompile will do. > > Best regards, > Guyver > > - Original Message - > From: "Sean C Truman" <[EMAIL PROTECTED]> > To: "guyver" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Friday, September 21, 2001 12:36 AM > Subject: Re: Urgent Help, please! > > > > Guyver, > > > > I am sorry I can't write the script for you.. Just configure PHP > > with --with-vpopmail (Should find the directory automatically) compile PHP > > and Apache Again.. and Look at the vpopmail.h and vauth.h for the callable > > functions and there parameters. > > > > Sean > > - Original Message - > > From: "guyver" <[EMAIL PROTECTED]> > > To: "Sean C Truman" <[EMAIL PROTECTED]> > > Cc: <[EMAIL PROTECTED]> > > Sent: Thursday, September 20, 2001 4:38 PM > > Subject: Re: Urgent Help, please! > > > > > > > Sean C Truman writes: > > > > > > > Brandon, > > > > > > > > If you configure PHP --with-vpopmail=/home/vpopmail you can > call > > the > > > > vadduser() function from within your PHP script. This is one of the > > reason > > > > Ken created the API for vpopmail. > > > > > > > > Sean > > > > > > Wow, that sounds very interesting, could you please be more specific > > > about it? I absolutely have to finish the script by tomorrow... :( > > > > > > So basically I should recompile my PHP simply adding > > > --with-vpopmail=/home/vpopmail ?? > > > > > > I've checked the Inter7 website but there's nothing about it (or at > least > > > nothing that I could find) except on the Admin Guide I found a piece of > > text > > > regarding vpopmail API but I thought it was only for C programs... am I > > > wrong? It says there is a library at ~vpopmail/lib/libvpopmail.a that is > > > linkable with C programs how do I link it to PHP? > > > > > > Thanks again for your patience. > > > > > > Best regards, > > > Guyver > > > > > > > > > > > >
Re: Urgent Help, please!
Don't worry I wasn't going to ask you to code my script :) I'll try to recompile PHP and see what happens, hope it really works out! Thanks anyway for your precious help and I wish to thank all the people that answered my message, even though I tried suid the scripts and didn't work out. I'll let you know if this PHP recompile will do. Best regards, Guyver - Original Message - From: "Sean C Truman" <[EMAIL PROTECTED]> To: "guyver" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, September 21, 2001 12:36 AM Subject: Re: Urgent Help, please! > Guyver, > > I am sorry I can't write the script for you.. Just configure PHP > with --with-vpopmail (Should find the directory automatically) compile PHP > and Apache Again.. and Look at the vpopmail.h and vauth.h for the callable > functions and there parameters. > > Sean > - Original Message - > From: "guyver" <[EMAIL PROTECTED]> > To: "Sean C Truman" <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Thursday, September 20, 2001 4:38 PM > Subject: Re: Urgent Help, please! > > > > Sean C Truman writes: > > > > > Brandon, > > > > > > If you configure PHP --with-vpopmail=/home/vpopmail you can call > the > > > vadduser() function from within your PHP script. This is one of the > reason > > > Ken created the API for vpopmail. > > > > > > Sean > > > > Wow, that sounds very interesting, could you please be more specific > > about it? I absolutely have to finish the script by tomorrow... :( > > > > So basically I should recompile my PHP simply adding > > --with-vpopmail=/home/vpopmail ?? > > > > I've checked the Inter7 website but there's nothing about it (or at least > > nothing that I could find) except on the Admin Guide I found a piece of > text > > regarding vpopmail API but I thought it was only for C programs... am I > > wrong? It says there is a library at ~vpopmail/lib/libvpopmail.a that is > > linkable with C programs how do I link it to PHP? > > > > Thanks again for your patience. > > > > Best regards, > > Guyver > > > > > >
Re: Urgent Help, please!
Sean C Truman writes: > Brandon, > > If you configure PHP --with-vpopmail=/home/vpopmail you can call the > vadduser() function from within your PHP script. This is one of the reason > Ken created the API for vpopmail. > > Sean Wow, that sounds very interesting, could you please be more specific about it? I absolutely have to finish the script by tomorrow... :( So basically I should recompile my PHP simply adding --with-vpopmail=/home/vpopmail ?? I've checked the Inter7 website but there's nothing about it (or at least nothing that I could find) except on the Admin Guide I found a piece of text regarding vpopmail API but I thought it was only for C programs... am I wrong? It says there is a library at ~vpopmail/lib/libvpopmail.a that is linkable with C programs how do I link it to PHP? Thanks again for your patience. Best regards, Guyver
Re: Urgent Help, please!
Thanks again!! I'll try it, hope it works. Best regards, Guyver - Original Message - From: "Sean O'Dea" <[EMAIL PROTECTED]> To: "'The Guyver'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, September 20, 2001 8:37 PM Subject: RE: Urgent Help, please! > The script should be owned by vpopmail > chown vpopmail script > Set the script to run as vpopmail > chmod u+s script > > That will allow the script to have the same permissions as vpopmail and it > should be able to write the the directory. >
Re: Urgent Help, please!
How do I do it please?? Thanks again! - Original Message - From: "Sean O'Dea" <[EMAIL PROTECTED]> To: "'The Guyver'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, September 20, 2001 8:32 PM Subject: RE: Urgent Help, please! > The script probably needs to run setuid to the vpopmail user. > > -Original Message- > From: The Guyver [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 20, 2001 11:30 AM > To: [EMAIL PROTECTED] > Subject: Urgent Help, please! > > > Hello there, > I'm in a desperate need to write a PHP script that creates a new mailbox > with vpopmail 4.10.35 > I've written everything correctly but when I use exec or system I always end > up with this error: > > Error: Unable to chdir to vpopmail/domains directory > > please help me it's very urgent if anybody has a clue I'll appreciate so > much. > > Guyver >
Urgent Help, please!
Hello there, I'm in a desperate need to write a PHP script that creates a new mailbox with vpopmail 4.10.35 I've written everything correctly but when I use exec or system I always end up with this error: Error: Unable to chdir to vpopmail/domains directory please help me it's very urgent if anybody has a clue I'll appreciate so much. Guyver
Re: Qmail-scanner install
Hi, you know what, I forgot to put the export QMAILQUE before the exec. just when I exported the variable it started to work perfectly! Thanks again for your help! P.S. Upgrade your AntiVirus quickly 'cause the new worm Nimda is striking hard! Best regards, Guyver - Original Message - From: "Tren Blackburn" <[EMAIL PROTECTED]> To: "'The Guyver'" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, September 19, 2001 3:11 PM Subject: RE: Qmail-scanner install > Strange, works just fine for my sqwebmail users. Here are the relevant > lines from my sendit.sh > > QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" > export QMAILQUEUE > exec /var/qmail/bin/qmail-inject -f "$1" > > Hope that helps, > > Tren. > > -Original Message- > From: The Guyver [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 19, 2001 2:37 AM > To: Tren Blackburn > Cc: [EMAIL PROTECTED] > Subject: Re: Qmail-scanner install > > > Hi there, > Hope I'm not going too much off-topic but I saw this thread. so here > I > go: > > I've recently installed the Qmail-Scanner with McAfee VirusScan and it > seems to work nice, BUT it doesn't work when a user writes a msg with > SQWEBMAIL, what my be the problem? I've added the QMAILQUEUE variable in > the sendit.sh script but still doesn't work. > > Any clues? Thanks > > Guyver > > > >
Moving domains from one server to another
Hi there, I need to move some mail domains from one server to another one the first server runs with vpopmail 4.9.x (don't remember exactly how do I check the version number?) while the second runs vpopmail 4.10.35 since the first one had only 6 domains I need to move all of them (including mails) to the new one (that runs about 50 domains) what should I do in order to make the moving less painful for me and the users? Thanks in advance to anyone answering. Best regards, Guyver
Re: Qmail-scanner install
Hi there, Hope I'm not going too much off-topic but I saw this thread. so here I go: I've recently installed the Qmail-Scanner with McAfee VirusScan and it seems to work nice, BUT it doesn't work when a user writes a msg with SQWEBMAIL, what my be the problem? I've added the QMAILQUEUE variable in the sendit.sh script but still doesn't work. Any clues? Thanks Guyver
.over-quota.msg and .no-user.msg don't work anymore after upgrading
Hi there, Few days ago I've upgraded from vpopmail-4.9.10 to 4.10.30 since sqwebmail-3 wouldn't compile w/o the devel release everything seemed to work fine but now I realized that my .no-user.msg and .over-quota.msg don't get showed anymore!! What's wrong ?? I tested both of them when I used the previous vpopmail release and I swear they were working, now the mail bounces back using regular qmail Failure notice... Any idea to make them working again? Thanks TG