Requirments:
Some perl modules must be installed on your server before you can try to set this up, which are:
1)mail::tools
you can get it here:http://www.cpan.org/authors/id/G/GB/GBARR/MailTools-1.15.tar.gz
2)MIME::Tools
you can get here:http://www.cpan.org/authors/id/E/ER/ERYQ/MIME-tools-5.411a.tar.gz
The best way to install these modules will be using the cpan module at the command line
perl -MCPAN -e 'install mail::tools'
just watch for errors and try to correct them. I would highly recommend upgrading your cpan module itself using the same command as above, the new module(version 1.76) have some features that are awsome,if you try to install a module and that module is dependent upon another module, the new cpan module will stop the install and append the required module to its list of installation and install the reqiured module and then go back and install the original module, how about that!
You can also try installing it manualy at the command line , if you need to know how let me know.
Enough about modules.
Next>
Edit your email.cgi file and set the paths correctly around the top of the file and then upload to your server in ASCII mode,then chmod to 755.
Next we need to setup perldesk for incoming email. Login to your admin area of pd and click on settings.
Before we can setup the email part, we need to create a department to tie with the email address.
Click on departments and create a department , whatever name you like.
now goback to settings and click incoming email:
Here we will setup the incoming email address, in the email box you should see "ticket@domain.com"(for the email name part of the address use any name that does not exist on your system, for this how to I'm gonna use "ticket", replace domain with your actual domain and choose the department that we created earlier and click on Add.
Lets just do one more thing before we move on to qmail. In the admin area settings/incoming email, make sure require registration is set to NO, so we can send a test mail without having to register first.
Now Lets move on to the fun stuff. Qmail
qmail is a modern smtp server that is powerful and easy to use.
qmail uses .qmail files(that is dot-qmail) to setup directions on mail delivery for each user on the server , each user on the server has a .qmail file, the beauty of qmail you can even have .qamil files for users that don't even exist on the server, how nice is that.Now that we talked about the .qmail file lets setup the piping in the .qmail file.
This setup was done on a redhat 7.3and rh9 with the qmail location in :
/var/qmail
if yours is different move to the right directory.
***********************************
SSH into your server and su for root
We need to move to where the .qmail file needs to be
at the prompt
[root@admin]# cd /var/qmail/mailnames
in that directory you should see your domain name
[roor@mailnames]#cd domain.com
in that directory we need to creat the .qmail file and this is how you do it.
At the prompt.
[root@domain.com]# pico .qmail-ticket
don't forget the "dot"
now you will see a blank page, in there put this line
|/path/to/your/email.cgi (this needs to be system absolute path)
now we need to save the file by doing
Ctrl+o
Enter
then exit by doing
Ctrl+x
now that the file is created you will need to set the right permission on this file
chmod 600 .qmail-ticket
chown popuser.popuser .qmail-ticket
now exit from your SSH sesion and use your email client and send a test email to "ticket@domain.com" and it should log a ticket for you and if not then something have gone wrong along the way, recheck everything and see if you can correct the problem, otherwise log a ticket for support and I will help you there.
One thing to mention is that here we setup an email aliase to a user that does not exist on the system, this also can be done for regular users with a different setup, if you need to set it up this way let me know and I will show you how, but I like this setup myself since I'm only using that email address for incoming mail to perldesk.



