FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Qmail Piping to mailing list does not work.
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Qmail Piping to mailing list does not work. [message #21746 is a reply to message #21742] Tue, 14 December 2004 01:11 Go to previous messageGo to previous message
sirroot is currently offline  sirroot   United States
Messages: 5
Registered: December 2004
Karma:
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) Smile

[Updated on: Tue, 14 December 2004 01:21]

Report message to a moderator

[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Error Deleting Forums
Next Topic: Show all users email address by default in registration?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 10:36:09 GMT 2024

Total time taken to generate the page: 0.05633 seconds