PDA

View Full Version : I need help forwarding email to a Perl script via qmail


adamcornwell
04-26-2001, 08:55 PM
I've read through the forum and the qmail.org site and still can't get the forwarding working right.

I'm setting up Mojo (a mailing list) so that when subscribers send email to the list (xyz@xyz.com) it will automatically get sent to the Perl script which forwards it to all of the list subscribers.

The directions for setting up the .qmail forward for Mojo can be found at http://mojo.skazat.com/installation/mojo_send.html. I've followed the directions completely and I've triple checked everything. I did notice something on an earlier post regarding .qmail forwarding on the DEEDEE server, which I'm on, which may or may not be the issue.[nbsp][nbsp]Using the web interface, the mail list manager works fine. It's only when I try to do a direct email through the .qmail forward that it doesn't send or receive.

This is what I have set up:
email alias: test@tpmtools.com
.qmail forward: .qmail-test (containing: |/big/dom/xtpmtools/cgi-bin/mojo/mojo_send.pl) This file is in both /big/dom/xtpmtools/username and /big/dom/xtpmtools since I don't know which one it is supposed to go in.

Theory suggests that any mail sent to test@tpmtools.com will be intercepted by the Perl script (mojo_send.pl) which will forward the email to the list subscribers. The only problem is that I never receive the email.

Any help provided would be greatly appreciated.

sheila
04-26-2001, 10:23 PM
This file is in both /big/dom/xtpmtools/username and /big/dom/xtpmtools since I don't know which one it is supposed to go in.
It goes in /big/dom/xtpmtools.
Other than that, I don't know why your script isn't working. Looks to me, at a glance, like you have your .qmail file set up correctly?

Frank.Bauer
06-11-2001, 10:21 AM
I have the same problem at www.add2it.com.

The Mojo Mail works perfect with it's online admin center, but I can't get .qmail-test (Content: |/big/dom/xadd2it/www/mojo/mojo_send.pl )
to forward emails to the script. Of course I did set up a list called test in Mojo Mail.

All messages that I send to test@add2it.com just disapear... :confused:

Can anybody assist me please?

Her.ph
06-17-2001, 04:42 PM
Adam & Frank:
I think you have to make sure the last line on your .qmail-xxxx
is a blank line, i.e. the file is two lines long.

Frank.Bauer
06-18-2001, 02:29 AM
Hmmm, I just checked that... it has been only one line. I will change that and try it again.

Frank.Bauer
06-27-2001, 01:12 PM
:( It is still not working.

I tried a different script that is located at
/big/dom/xadd2it/www/mmp/test.cgi

Once an email gets send to test2@add2it.com
I get the following reply:

<test2@add2it.com>:
/bin/sh: /big/dom/xadd2it/www/mmp/test.cgi: No such file or directory
I'm not going to try again; this message has been in the queue too long.


Can anybody help me? What I need to find out is how to
receive an email that has been forwarded with .qmail-test2
with a perl script. Then I need to extract the email address
and name in that email and save it in a database.

Looking forward to your ideas or sample scripts.

jokesplus
06-27-2001, 01:54 PM
Frank I've got a simple Perl script that just extracts the e-mail address and writes it to a flat-file. It's currently used to handle bounces from a recommend this site script.

The script isn't pretty, it's badly commented and there are probably better ways of coding it. But your welcome take a look. I''ll e-mail you a copy.

Jarrod

Her.ph
07-11-2001, 12:28 AM
Ummm... one more thing. I think you have to put an ampersand
in front of the address you are redirecting to:

E.g. file .qmail-mom

&mom@hotmail.com
-- blank line here --


Hope that helps.

Frank.Bauer
07-11-2001, 07:14 AM
Hmmm, my .qmail-test2 file looks more like this:

|/big/dom/xadd2it/www/mmp/test2.cgi
(Blank line)

Do I have to add the & in front of the | ?

Bruce
07-11-2001, 03:03 PM
No, you do not need to put an ampersand in front of a command line, only in front of an email address to forward to. Strictly speaking, you don't even need it for that, but it's good practice.

Her.ph
07-14-2001, 06:36 PM
Adam & Frank:
This has been discussed once before:
Originally posted by Terra:
I will have to plead the 5th on most of what you ask, for the main reason that you can easily shoot yourself in the foot


See the ugly details at:

http://www.aota.net/forums/showthread.php?s=&threadid=3669&highlight=qmail+filter