Web Hosting Talk







View Full Version : ticket smith problems (with the raq4i)


diyoha
11-09-2001, 02:53 AM
Hello,

I need some help with installing ticketsmith
(I posted this message in the raq area but realized this was probably a better bet:D)
--
The web part works fine!

I am having problems recieving support emails that get translated to tickets. Has anyone installed ticket smith on the raq? And have any pointers.

I have done the basics:
added the entry
ticket: "|/etc/smrsh/gateway.pl"
in the /etc/mail/aliases file

I put the gateway.pl in the
/etc/smrsh directory

I ran the command
newaliases after I made the changes to the alias file

When I send a message to ticket@mydomain.com
it bounces back
--
Each of the following recipients was rejected by a remote mail server.
The reasons given by the server are included to help you determine why
each recipient was rejected.

Recipient: <ticket@mydomain.com>
Reason: 5.3.0 <ticket@mydomain.com>... No such user here
--

questions
1. do I have to create a ticket user on the system?
2. does procmail come with the raq if so is there somewhere I can use that?

thanks in advance!

David

swissmonk
11-09-2001, 05:06 AM
With a raq you can use procmail:

1. Create a user

2. Create a .procmailrc file in the user home directory

:0
* (^To:|^CC:|^Cc:) .*email@domain.com
| /etc/smrsh/gateway.pl

3. Chmod 644 .procmailrc

4. chmod 2711 /home/sites/sitex/users/theuser

And then it should be ok....

diyoha
11-09-2001, 09:32 AM
Hi,

I tried that and it did not seem to work.

when I run the gateway.pl file directly I get no response ie

perl /etc/smrsh/gateway.pl


nothing happens it simply hangs. Is that correct?

any ideas?

When I send the mail to
ticket@mydomain.com

I get no errors but it does not get added to my ticketsmith web interface

help!

thanks

David

swissmonk
11-09-2001, 12:28 PM
It is normal that nothing happend when you launch the perl script.

To solve your problem, first try to find if it is a problem with procmail or the script
1. Try to modify your .procmailrc file to just forwad the email to another address:
:0
*
! email@domain.com

If you are receiving the email... procmail is ok, you have a problem with the script.

diyoha
11-09-2001, 01:24 PM
Hey,

Thanks for you help. It now works fine.

I had the return address in the gateway.pl file wrong ... so seems like it that was causing problems.

thanks

David