Re: Program Delivery to PHP Script
Thanks for Philip and everyone's help. I got it to work by compiling the PHP CGI version and did in the .qmail: |usr/local/bin/php -q script Thanks a bunch! --- Philip Mak <[EMAIL PROTECTED]> wrote: > On Sat, 28 Jul 2001, PHP Webmaster wrote: > > > the .qmail makes a program delivery to a PHP > script at > > http://www.mydomain.com/parser.php which then > stores > > the message in a database. The PHP installation is > as > > an Apache module so I think I might have to use > Lynx. > > > > So here is something I've come up with: > > > > |/usr/bin/lynx -source > > "http://mydomain.com/parser.php"; > > That won't work exactly as is, since you need lynx > to send the contents of > standard input to the PHP script as POST data. "man > lynx" shows the > following option: > >-post_data > send form data from stdin using > POST method and > dump results. > > So try putting -post_data in the lynx command. > > A more correct way of doing this would be to run php > from the command > line. Try typing locate php | grep "/php$" to see if > a PHP executable is > available on your system. If not, you can compile > one by downloading PHP > from php.net, doing "./configure" (don't include any > options in > ./configure), then "make" (don't do "make install"), > and just copy the > "php" executable that it creates to whereever you > need it. > > If you go with the PHP executable, you would put in > your .qmail file: > > |/path/to/php -q /path/to/script.php > > (-q tells it not to send HTML headers.) > __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Parsing Bounces for permanent and temporary errors
Hello, I am looking for any prior work or tutorial that explains the best way to parse bounced email messages to see if the failure reason is permanent (eg username not found) or temporary (eg user's mailbox full). It would be great if anyone could point me toward a list of phrases or things from different isp's standard bounced messages I could look for in my parser with regex. Thanks! __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Re: Program Delivery to PHP Script
Thanks for the help! I have a few questions about your answer: LYNX METHOD === So for the lynx method, I tried in the .qmail file: |/usr/bin/lynx -post_data "http://..parser.php"; However, I keep getting the error in my qmail log: deferral: Your terminal lacks the ability to clear the screen_or_position_the_cursor./_/ It seems that the terminal needed to be declared so I then tried this in my .qmail file: |/usr/bin/lynx -post_data -term=xterm "..parser.php" However, I still keep getting that terminal curosr thing error again. Is there anything I can do to fix this? CGI PHP === I am currently running PHP as an apache module, so I don't seem to have an executable on the system. I am concerned if I install the CGI version of PHP which is an executable, would that interfere with the PHP module in apache? Also, I compiled the PHP as an apache module by using the following ./configure syntax: rm config.cache make clean ./configure --with-mysql=/usr --with-apxs=/etc/httpd/bin/apxs --with-curl=/usr/local/lib make make install Now, I understand that I need to remove the paxs=... part to build PHP as a CGI executable, but I still need the MySQL and curl support. So is it allright to leave those options in the ./configure (instead of doing ./configure only and losing mysql support)? Also, I am using qmail-inject instead of the standard sendmail for PHP's mail() function. As a result, I need to update the php.ini file. How would I do that if I only copy the php executable to another directory? would I also have to copy the php.ini file? Your help is greatly appreciated! Best Wishes. --- Philip Mak <[EMAIL PROTECTED]> wrote: > On Sat, 28 Jul 2001, PHP Webmaster wrote: > > > the .qmail makes a program delivery to a PHP > script at > > http://www.mydomain.com/parser.php which then > stores > > the message in a database. The PHP installation is > as > > an Apache module so I think I might have to use > Lynx. > > > > So here is something I've come up with: > > > > |/usr/bin/lynx -source > > "http://mydomain.com/parser.php"; > > That won't work exactly as is, since you need lynx > to send the contents of > standard input to the PHP script as POST data. "man > lynx" shows the > following option: > >-post_data > send form data from stdin using > POST method and > dump results. > > So try putting -post_data in the lynx command. > > A more correct way of doing this would be to run php > from the command > line. Try typing locate php | grep "/php$" to see if > a PHP executable is > available on your system. If not, you can compile > one by downloading PHP > from php.net, doing "./configure" (don't include any > options in > ./configure), then "make" (don't do "make install"), > and just copy the > "php" executable that it creates to whereever you > need it. > > If you go with the PHP executable, you would put in > your .qmail file: > > |/path/to/php -q /path/to/script.php > > (-q tells it not to send HTML headers.) > __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Program Delivery to PHP Script
Hello, I am trying to implement a .qmail file so that whenever someone sends a message to [EMAIL PROTECTED] the .qmail makes a program delivery to a PHP script at http://www.mydomain.com/parser.php which then stores the message in a database. The PHP installation is as an Apache module so I think I might have to use Lynx. So here is something I've come up with: |/usr/bin/lynx -source "http://mydomain.com/parser.php"; Would something like this work? Or is there a better and more correct way of doing something like this? Thanks! __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
Qmail - SMTP
I have running Qmail for 2 weeks without problems, but last Friday I get errors. Here is my Log. <[EMAIL PROTECTED]>: 62.157.196.171 does not like recipient. Remote host said: 550 relaying to <[EMAIL PROTECTED]> prohibited by administrator Giving up on 62.157.196.171.
please remove me
Emergency Help Needed - Server Going Down In Flames!
Hello, Ever since I switched to qmail a week ago, everything seemed to be working fine. Then, all of a sudden, about 30 minutes ago, I begun to see tons of zombie httpd processes in the "top" command. I opened up the apache error log and I see thousands of lines like the following: exit signal File size limit exceeded (25) Can anyone help me? I have no idea what this error means (is it caused by qmail) or what to do to make it go away. I apologize for this possibly off-topic post but any help is greatly appreciated. Thanks!!! __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
I can't install vmailmgr on my RH 7.1 Professional - Box
I got this Output when I ran the “make” command. OUTPUT START [root@ns vmailmgr-0.96.9]# ./configure creating cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... found checking whether make sets ${MAKE}... (cached) yes checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... c++ checking whether the C++ compiler (c++ ) works... yes checking whether the C++ compiler (c++ ) is a cross-compiler... no checking whether we are using GNU C++... yes checking whether c++ accepts -g... yes checking whether c++ accepts -fno-rtti... yes checking whether c++ accepts -fno-exceptions... yes checking for a BSD compatible install... /usr/bin/install -c checking for ranlib... ranlib checking for strip... /usr/bin/strip checking for rm... /bin/rm checking for mkdir... /bin/mkdir checking for ln... /bin/ln checking for python... /usr/bin/python checking Python library path... /usr/lib/python1.5/ checking for w3m... no checking for lynx... /usr/bin/lynx Using lynx to format html pages. checking for crypt in -lcrypt... yes checking for socket in -linet... no checking for socket in -lsocket... no checking for socket in -lxnet... no checking for dirent.h that defines DIR... yes checking for opendir in -ldir... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking whether time.h and sys/time.h may both be included... yes checking for fcntl.h... yes checking for sys/time.h... yes checking for unistd.h... yes checking for shadow.h... yes checking for crypt.h... yes checking for working const... yes checking for uid_t in sys/types.h... yes checking return type of signal handlers... void checking for inline... inline checking for pid_t... yes checking for size_t... yes checking for gethostname... yes checking for gettimeofday... yes checking for mkdir... yes checking for putenv... yes checking for rmdir... yes checking for socket... yes checking for srandom... yes checking for random... yes checking for crypt... yes updating cache ./config.cache creating ./config.status creating Makefile creating cgi/Makefile creating authenticate/Makefile creating commands/Makefile creating daemon/Makefile creating doc/Makefile creating lib/Makefile creating lib/cdb++/Makefile creating lib/cgi/Makefile creating lib/cli/Makefile creating lib/config/Makefile creating lib/courier-authlib/Makefile creating lib/fdbuf/Makefile creating lib/misc/Makefile creating lib/mystring/Makefile creating lib/vdomain/Makefile creating lib/vpwentry/Makefile creating lib/vpwtable/Makefile creating scripts/Makefile creating php/Makefile creating python/Makefile creating config.h [root@ns vmailmgr-0.96.9]# make make all-recursive make[1]: Wechsel in das Verzeichnis Verzeichnis »/root/vmailmgr-0.96.9« Making all in python make[2]: Wechsel in das Verzeichnis Verzeichnis »/root/vmailmgr-0.96.9/python« echo "sysconfdir = '/usr/local/etc'" >local.py python -c 'import __init__' python -O -c 'import __init__' python -c 'import constants' python -O -c 'import constants' make[2]: Verlassen des Verzeichnisses Verzeichnis »/root/vmailmgr-0.96.9/python« Making all in php make[2]: Wechsel in das Verzeichnis Verzeichnis »/root/vmailmgr-0.96.9/php« make[2]: Für das Target »all« gibt es nichts zu tun. make[2]: Verlassen des Verzeichnisses Verzeichnis »/root/vmailmgr-0.96.9/php« Making all in lib make[2]: Wechsel in das Verzeichnis Verzeichnis »/root/vmailmgr-0.96.9/lib« Making all in misc make[3]: Wechsel in das Verzeichnis Verzeichnis »/root/vmailmgr-0.96.9/lib/misc« c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -g -O2 -fno-rtti -fno-exceptions -Wall -W -c crc32.cc In file included from crc32.cc:1: crc32.h:48:8: warning: extra tokens at end of #endif directive c++ -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -g -O2 -fno-rtti -fno-exceptions -Wall -W -c exec.cc exec.cc: In function `int presetenv (const char *, const mystring &)': exec.cc:29: `strlen' undeclared (first use this function) exec.cc:29: (Each undeclared identifier is reported only once for each function it appears in.) exec.cc:31: `strcpy' undeclared (first use this function) make[3]: *** [exec.o] Fehler 1 make[3]: Verlassen des Verzeichnisses Verzeichnis »/root/vmailmgr-0.96.9/lib/misc« make[2]: *** [all-recursive] Fehler 1 make[2]: Verlassen des Verzeichnisses Verzeichnis »/root/vmailmgr-0.96
Where I can get vmailmgr-0.96-9.tar.gz.
I need this Programm as soon as possible. Can anybody send me this little programm through email ? Thanks
please unsubscribe me
unable to recieve remote mail
I'm fairly new at this, last week was the first time I had ever comfit's qmail. but it was working fine for a while, now we are unable to receive any messages from remote hosts. Local mail works fine, and even sending mail to a remote host has no problems, it;s receiving mail which is a problem. My first thought was that it was a dns err but I checked the mx record and it's accurate as far as I know: pbgnw.com. IN MX 10 mail.pbgnw.com.; EXTREF where can I look to figure out what's wrong? I followed law nearly exactly although I'm using splogger and procmail. is there more info you need?
Re: DotFiles
> > I am not sure what you are asking. > > ~username/.qmail is the file that determines how to process mail sent to > [EMAIL PROTECTED] (where yourmachine.example.org is your > machine, e.g. globalred.com). ~username/.qmail-foo is the file the > determines how to process mail sent to > [EMAIL PROTECTED] ~username/.qmail is processed when I send a mail to [EMAIL PROTECTED] but if I send a mail to [EMAIL PROTECTED] but ~username/.qmail-test isn't processed. Content of rcpthosts -> A line with yourmachine.example.org Content of virtualdomains -> A line with yourmachine.example.org:yourmachine.example.org What do you think??? - Original Message - From: "Sam Trenholme" <[EMAIL PROTECTED]> To: "Webmaster" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, January 28, 2001 9:05 AM Subject: Re: DotFiles > > I am not sure what you are asking. > > ~username/.qmail is the file that determines how to process mail sent to > [EMAIL PROTECTED] (where yourmachine.example.org is your > machine, e.g. globalred.com). ~username/.qmail-foo is the file the > determines how to process mail sent to > [EMAIL PROTECTED] > > Now, if /var/qmail/control/virtualdomains has a line like this: > > heaven.af.mil:username > > The mail sent to [EMAIL PROTECTED] will be processed in qmail as > [EMAIL PROTECTED] (the ~username/.qmail-foo file). > And mail sent to any undefined address @heaven.af.mil will be processed as > [EMAIL PROTECTED] (the ~username/.qmail-default > file). > > Read the relevent Qmail docs, FAQs, and man pages for more information. > > - Sam > > > Hi, I install qmail Memphis version with dt-run services with virtualdomains > > using assign file. And I have a little problem: > > > > The file .qmail is of the user is processed but the files > > .qmail-jkljklsdfsdjkl no. > > > > Any person can say me why??? > > > > Thanks. > >
Fw: DotFiles
I write again, sorry!!! :-) - Original Message - From: Webmaster To: [EMAIL PROTECTED] Sent: Saturday, January 27, 2001 2:54 PM Subject: DotFiles Hi, I install qmail Memphis version with dt-run services with virtualdomainsusing assign file. And I have a little problem: The file users .qmail file is processed but the files.qmail-jkljklsdfsdjkl no.Any person can say me why???Thanks.
DotFiles
Hi, I install qmail Memphis version with dt-run services with virtualdomainsusing assign file. And I have a little problem: The file .qmail is of the user is processed but the files.qmail-jkljklsdfsdjkl no.Any person can say me why???Thanks.
Qmail local spawn problems
Hi, I have some problems using qmail 1.03 with mysql-patch 0.6.6 over Redhat 6.2. Pop3 service works fine, but qmail-getpw never gets executed and all local messages get lost. If I use users/assign works fine, but I need qmail-getpw working. I think that the problem is related to qmail-lspawn, but I`ve recompiled the source code more than once and it doesn't work. If by any chance anyone could help me it would be great.
Re: multilog problem--quite urgent please
yeah, thanks a lot. it's my false. it works now. kittiwat - Original Message - From: "Chris, the Young One" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 26, 2000 2:15 PM Subject: Re: multilog problem--quite urgent please > On Wed, Jul 26, 2000 at 02:13:01PM +0700, [EMAIL PROTECTED] wrote: > [ls -l /var/log/qmail] > ! drwx-- 9 root root 4096 Jul 23 04:02 .. > > With those kinds of permissions, the qmaill user (which apparently > does all your logging) can't even touch the /var/log/qmail directory, > let alone write in it. > > Try ``chmod 755 /var/log''. Just make individual logs unreadable if > you think they're sensitive. > > ---Chris K. > -- > Chris, the Young One |_ but what's a dropped message between friends? > Auckland, New Zealand |_ this is UDP, not TCP after all ;) ---John H. > http://cloud9.hedgee.com/ |_ Robinson, IV > PGP: 0xCCC6114E/0x706A6AAD |_ >
Re: multilog problem--quite urgent please
ooppss... yes, please blame me. it works now! thanks a lot kittiwat - Original Message - From: "Petr Novotny" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, July 26, 2000 2:16 PM Subject: Re: multilog problem--quite urgent please > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 26 Jul 00, at 14:13, [EMAIL PROTECTED] wrote: > > > Yesterday, a guy from the data center has upgraded a memory on my > > server, and this morning I discovered a cpu load problem. What I'd > > figured out is that multilog just can't access /var/log/qmail/* so the > > supervise has been retrying on and on > > > > I checked the ownership of /var/log/qmail as follow: > > > > [root@ns qmail]# ls -al > > total 960 > > drwxr-xr-x 4 qmaill nofiles 4096 Jul 26 01:30 . > > drwx-- 9 root root 4096 Jul 23 04:02 .. > > That is your problem. Only root can access subdirectories of > /var/log. Change permissions of /var/log to 711 or 755. (Why are > you so restrictive on log directory? Sensitive logs are protected as > files...)
multilog problem--quite urgent please
Yesterday, a guy from the data center has upgraded a memory on my server, and this morning I discovered a cpu load problem. What I'd figured out is that multilog just can't access /var/log/qmail/* so the supervise has been retrying on and on I checked the ownership of /var/log/qmail as follow: [root@ns qmail]# ls -al total 960 drwxr-xr-x 4 qmaill nofiles 4096 Jul 26 01:30 . drwx-- 9 root root 4096 Jul 23 04:02 .. -rwxr--r-- 1 qmaill nofiles 97999 Jul 20 05:35 @40003976c7e118727dd4.s -rwxr--r-- 1 qmaill nofiles 98092 Jul 20 06:35 @40003976d5ee08bbaa14.s -rwxr--r-- 1 qmaill nofiles 98137 Jul 20 14:37 @4000397746f123398654.s -rwxr--r-- 1 qmaill nofiles 98112 Jul 21 02:00 @40003977e7180e5bed1c.s -rwxr--r-- 1 qmaill nofiles 98062 Jul 21 04:04 @40003978040e333ffccc.s -rwxr--r-- 1 qmaill nofiles 98326 Jul 21 20:03 @40003978e4df05f4e8f4.s -rwxr--r-- 1 qmaill nofiles 98018 Jul 22 03:36 @400039794f17081c6c74.s -rwxr--r-- 1 qmaill nofiles 98145 Jul 24 05:28 @4000397c0c632df9c48c.s -rwxr--r-- 1 qmaill nofiles 98063 Jul 25 05:12 @4000397d5a0c054330dc.s -rwxr--r-- 1 qmaill nofiles 37543 Jul 25 15:28 current drwxr-xr-x 2 qmaill root 4096 Jul 21 02:18 pop3d drwxr-xr-x 2 qmaill root 4096 Jul 26 01:33 smtp The startup script is just like those in LWQ and I haven't done anything related to qmail since. Can someone please tell me what's going on here? Or more info is needed? I've now diabled supervise multiloging so qmail itself is running.. though I hate this. Thanks kittiwat
cannot authenticate
Hi there: I'm not sure if this list is the right place, or I should post it to vpopmail list. But please help. --- I'm new to qmail, but have installed it according to the INSTALL file, and faq. I also installed vpopmail. Problem is when I tested the system the delivery works fine. All mails go to the right path in each virtual domain Maildir. But when I tried to pop in to get mail from a virtual domain that I put in place, using outlook express, I couldn't authenticate. The log mesg says: Jul 5 10:25:35 myhost in.qpopper[972]: webmaster%mydomain.com at bkk7a-102.dial56k.cscoms.com (202.183.197.102): -ERR [AUTH] Password supplied for "webmaster%mydomain.com" is incorrect. The password is correct, but look like qpopper is doing the job, instead of qmail or vpopmail. I couldn't find the document on this, so any help would be really appreciated. Thanks kittiwat
Problems with subdomains
Hi all, are there any limit with the number of characters of a subdomain?(p.e. .mydomain.com) And within virtualdomains, the very end of alias line? (p.e. .mydomain.com:alias-mydomain.com) We have two subdomains, sta.mydomain.com and industri.mydomain.com. industri.mydomain.com it´s ok, but with sta.mydomain.com we can't receive emails. that is mailer-daemon error [EMAIL PROTECTED] does not like recipient remote host said 553 sorry that domain isn´t in my list of allowed rcpthosts (#571) At my rcpthosts file .mydomain.com thanks in advance, Juan Carlos Rodríguez Webmaster SEKER BBS, S.A. [EMAIL PROTECTED] Comte Borrell 209-211, Entlo. 1D 08029 BARCELONA Tel. 93 444 76 00 - 902 338 338 - FAX 93 410 10 08
Problems with subdomains
Hi all, are there any limit with the number of characters of a subdomain?(p.e. .mydomain.com) And within virtualdomains, the very end of alias line? (p.e. .mydomain.com:alias-mydomain.com) We have two subdomains, sta.mydomain.com and industri.mydomain.com. industri.mydomain.com it´s ok, but with sta.mydomain.com we can't receive emails. that is mailer-daemon error [EMAIL PROTECTED] does not like recipient remote host said 553 sorry that domain isn´t in my list of allowed rcpthosts (#571) At my rcpthosts file .mydomain.com thanks in advance, Juan Carlos Rodríguez Webmaster SEKER BBS, S.A. [EMAIL PROTECTED] Comte Borrell 209-211, Entlo. 1D 08029 BARCELONA Tel. 93 444 76 00 - 902 338 338 - FAX 93 410 10 08
Problem with tcpserver and pop3
Hi everybody, I just installed tcpserver with pop3. /usr/local/bin/tcpserver 0 110 /var/qmail/bin/qmail-popup hostname.com /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir & i can't read mail with pop3 client,but if i do telnet hostname.com 110 Connected to Escape character is '^]'. +OK <> user x +OK pass x +OK list then i can read mail with pop3 client Any idea? thanks in advance Juan Carlos Rodríguez Webmaster SEKER BBS, S.A. [EMAIL PROTECTED] Comte Borrell 209-211, Entlo. 1D 08029 BARCELONA Tel. 93 444 76 00 - 902 338 338 - FAX 93 410 10 08
Problem: Error while saving mail messages
A couple of my users have the following error message come up when they try to read their emails. "An error occurred while saving mail messages" I did some searching at http:// www.deja.com and it looks like I need to delete this specific message from their queue. I tried a 'mail -f /home/username/Mailbox' to look a their email messages, but nothing is there. Why not? How can I get my hands on the queue for this specific user to look at his messages and delete the one that gives him trouble. Any clue is welcome. I tried to use qmHandle to look at the messages, but the program just seems to hang, without any output, unless I reqest the message numbers only. And doing do, I have no clue to whom that message belongs! Maybe there is another way to view the queue for a specific user? Thanks in advance, Will