
|
View Full Version : PerlDesk piping
davidg 10-18-2002, 10:04 PM I have downloaded and succesfully installed PerlDesk, however, I'm having trouble getting my email to pipe in. I am on a Burstnet Linux server with Cpanel. I belive there used to be answsers to this on the PerlDesk forum, but it's gone now. I've searched this forum and was not able to find anything.
Can anyone please offer some pointers on to how I can get email piping working on the server for PerlDesk?
Your input is greatly appreciated!
David
ffeingol 10-18-2002, 11:29 PM I'm not that familar with cpanel. What MTA does it use? Sendmail, qmail?
Frank
The Prohacker 10-19-2002, 12:05 AM Cpanel uses Exim
Open /etc/valiases/yourdomain.com
in your favorite editor..
Above the *: whatever line
Add:
support@yourdomain.com: |/home/username/public_html/cgi-bin/email.pl
or where ever it is :D
smidwap 10-19-2002, 12:34 AM I say make this thread "Important:". This question is asked almost everyday. Frankly, I've always had the same question. ;)
MarlboroMan 10-19-2002, 08:10 AM <edit>
erp
</edit>
LinuXpert 10-19-2002, 08:40 AM From Cpanel 5.0 build 152, you can use email forwarding to pipe your email to a script, just login to cPanel and forward support@yourdomain.com to |/home/username/public_html/perldesk/cgi-bin/email.pl (path to email script).
This will be easier for those who don't familiar with shell command
davidg 10-19-2002, 05:19 PM Cpanel uses Exim
Open /etc/valiases/yourdomain.com
in your favorite editor..
Above the *: whatever line
Add:
support@yourdomain.com: |/home/username/public_html/cgi-bin/email.pl
or where ever it is
Thank you! This worked beautyfully!
For others just so you know, the actual default path is /home/username/public_html/cgi-bin/include/email.pl (took me 10 extra minutes before I realized that :), so the line should be
support@yourdomain.com: |/home/username/public_html/cgi-bin/include/email.pl
Thank you The Prohacker and thanks to all who contributed :)
David
davidg 10-19-2002, 07:18 PM Hi,
I have another question, regarding piping on a Cpanel server.
I got it set up as described in previous posts, and the mail gets into the queue, however, the sender does not get an autoreply with the ticket number, and, when I write a reply to the sender, they do not receive an email at all.
I can send and receive email using regular email though through the support email address, just PerlDesk will not send anything out. Any thoughts would be appreciated.
David
LinuXpert 10-19-2002, 09:15 PM Make sure you add support@yourdomain.com to the Department where you want emails to be delivered to and you should allow unregistered user to submit ticket via email, that can be done in the Admin panel.
davidg 10-24-2002, 03:22 PM Yea, I got all that set up.
It turns out that it is some setup problem on the Nocster server, all email gets trapped in some file instead of being sent. Something to do with the DNS server server (I set it up wrong), even though only PerlDesk email gets trapped, not regular email.
They've been working on it since October 19th, thats 5 days now to get this resolved. Couple times they emailed me saying that they fixed it, yet it's still not working at all.
Still trying though...
David
Aushosts 10-25-2002, 03:41 AM I have the piping set up, and email is accepting to dep. I am having some problems with the actual support message being logged?
What do I have to do to make perldesk grab the email body message, or do I just have it set-up wrong?
BTW- PerlDesk is getting the Subject, From, etc fine just not the email message. I have tried sending email in Plain Text, HTML, hotmail, etc no success with seeing an email body.
bhalsted 10-25-2002, 08:05 AM Can you set it to pipe to a file and to PerlDesk at the same time? That way you can see what is getting passed to PerlDesk and if it's a problem with PerlDesk or the MTA.
Cheers,
--Ben
LinuXpert 10-25-2002, 08:17 AM Originally posted by bhalsted
Can you set it to pipe to a file and to PerlDesk at the same time? That way you can see what is getting passed to PerlDesk and if it's a problem with PerlDesk or the MTA.
Cheers,
--Ben
This is exactly what I did before to test my Email2SMS script.
Aushosts 10-25-2002, 08:27 AM How do your log to a text file in CGI, like in PHP you can use fopen, fputs, fclose, what do you use for CGI?
bhalsted 10-25-2002, 08:34 AM Instead of piping it to a file, You can just specify a text file and it will get appended to the file. Example:
... | /home/bob/maillog.txt
Cheers,
--Ben
Aushosts 10-25-2002, 09:10 AM Didn't work...
This message was created automatically by mail delivery software (Exim).
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
pipe to |/home/support/maillog.txt
generated by test@spiritconnect.com.au
Child process of virtual_address_pipe transport returned 69 (could mean service or program unavailable) from command:
/home/support/maillog.txt
Aushosts 10-27-2002, 01:18 AM Can any one help me???
|