|
|
Re: Qmail Piping to mailing list does not work. [message #21746 is a reply to message #21742] |
Tue, 14 December 2004 01:11 |
sirroot
Messages: 5 Registered: December 2004
Karma: 0
|
Junior Member |
|
|
nope that doesnt work...
just so you know my setup...
here is my .qmail-mylist file
|/home/mygroup/groupfiles/fudforum/3814588639/scripts/maillist.php 1
|preline /home/mailman/mail/mailman post karyakars-test
this doesnt work an causes the mail to get stuck...i think its because qmail require you to exit(0); i put that in the maillist.php but that didnt work either...
so i created a shell script to simply pipe...here is my shell script called fudtrap.sh
#`(cat > /tmp/pipe)`
`(cat |/usr/bin/php $1 $2)`
#/bin/cat /tmp/pipe| $1 $2 > /tmp/pipe2
#`(cat /tmp/pipe |$1 $2)`
exit 0
change my .qmail-mylist to
|/path/to/my/fudtrap.sh /home/mygroup/groupfiles/fudforum/3814588639/scripts/maillist.php 1
|preline /home/mailman/mail/mailman post karyakars-test
that doesnt work..however the mail goes throuigh and doesnt get stuck in queue...it also registers in my mailman but for some wierd reson it doesnt pipe to maillist.php correct.....
however if i pipe to /tmp/pipe instead of maillist.php it works...also ifi run this command from shell it workd... if i run for example cat /tmp/pipe | /path/to/my/fudtrap.sh /home/mygroup/groupfiles/fudforum/3814588639/scripts/maillist.php 1
it works....
its so wierd i dont know whats wrong....
im pulling my hair out...although i did fix the common errors for maillist.php and egw (the db.inc error)
[Updated on: Tue, 14 December 2004 01:21] Report message to a moderator
|
|
|
|
|
|
|
|
|
Re: Qmail Piping to mailing list does not work. [message #21782 is a reply to message #21781] |
Wed, 15 December 2004 21:43 |
srchild
Messages: 88 Registered: December 2003 Location: UK
Karma: 1
|
Member |
|
|
sirroot wrote on Wed, 15 December 2004 21:39 | Where did u put .procmailrc....i have virtual domains with vpopmail...will that work?
|
The usual place for .procmailrc is your home directory.
I don't know vpopmail and I don't know about virtual domains.
Simon Child
|
|
|