Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

2505 Posts in 648 Topics- by 1314 Members - Latest Member: Saudi Arabia

eTicket CommunitySupportInstallation Help & Software Support (Moderators: jason, Hummdis)Topic: Problems reciving mail into eTicket and Sending as well
Pages: [1]   Go Down
Print
Author Topic: Problems reciving mail into eTicket and Sending as well  (Read 1701 times)
0 Members and 1 Guest are viewing this topic.
doozer
New Member
*

Karma: +0/-0
Offline Offline

Posts: 3


« on: July 01, 2009, 02:00:44 AM »

Hi All,

Apologies for the long winded post, I have an issue that I hope someone can help me with.

I have a fresh install (went really well!) but what I want to do is pipe emails into eTicket from my CPanel application.

For some reason mails sent just get bounced back to the user.

Here is the output from the troubleshooter
Troubleshooter:

    * PHP version: 5. 2. 9 (Should be PHP 5. 0. 0 or above)
    * PHP Safe Mode is off
    * Webserver: Apache/2. 0. 63 (Unix) mod_ssl/2. 0. 63 OpenSSL/0. 9. 8e-fips-rhel5 mod_auth_passthrough/2. 1 mod_bwlimited/1. 4 FrontPage/5. 0. 2. 2635 mod_jk/1. 2. 25
    * GD version: bundled (2. 0. 34 compatible)
    * Multibyte String is installed
    * iconv version: 2. 5
    * IMAP is installed
    * Socket support enabled.
    * User Agent: Mozilla/5. 0 (Windows; U; Windows NT 6. 0; en-GB; rv:1. 9. 1) Gecko/20090624 Firefox/3. 5 (. NET CLR 3. 5. 30729)
    * Character set:
    * Link: hxxp: www. energycommunications. co. uk/troubleshooter. php

This appears to be OK from what I can see.

In CPanel I have created a forwarder called "test(at)energycommunications. co. uk" this pipes to |/home/energyco/public_html/eticket/pipe. php

The location of eTicket is www. energycommunications. co. uk/eticket
The 'real' location of eTicket is /home/energyco/public_html/eticket


I think I have all the right things, please can someone confirm this?

Also, I am not able to SEND mail via eTicket, any suggestions on where to start?  I have read the docs and tried a number of options (sendmail, SMTP etc. ) is there an error log anywhere I can look at to find out whats happening?

Thanks
Ben
Logged
Hummdis
Moderator
Super Member
*****

Karma: +13/-0
Offline Offline

Posts: 558



WWW
« Reply #1 on: July 01, 2009, 07:03:01 PM »

Have your hosting provider check the cPanel configuration or the php.ini file for the sendmail configuration.  If that's not right, it won't work.
Logged

Don't PM me directly for help.  Post to the forums, that's what they are for after all.  PM's to me that request help will be ignored.

Hummdis Communications - Freelance Website Design & IT Consulting
doozer
New Member
*

Karma: +0/-0
Offline Offline

Posts: 3


« Reply #2 on: July 01, 2009, 10:44:57 PM »

Quote from: Hummdis link=topic=571. msg2218#msg2218 date=1246518181
Have your hosting provider check the cPanel configuration or the php. ini file for the sendmail configuration.   If that's not right, it won't work.

Thanks Hummdis,

I have passed a support request onto the webhost and they are looking into it.

In the mean time, they fixed the piping issue, can you give me an idea what they have done?

They have used a prefix of /usr/bin/php -f then the path to the pipe. php file to give me this command:
|/usr/bin/php -f /home/energyco/public_html/eticket/pipe. php

Now this one works, the only difference is the prefix they have added.   I have not seen this mentioned anywhere else, is this just some weird fluke for webhostgiant?

Thanks for you help and answer.
Logged
Hummdis
Moderator
Super Member
*****

Karma: +13/-0
Offline Offline

Posts: 558



WWW
« Reply #3 on: July 02, 2009, 02:40:04 AM »

It's not a fluke.  It's also not called a prefix, but an 'argument' to the 'php' command.

On your Linux machine, run "man php" and you find all the arguments that you can use for PHP.  If you don't have a Linux machine, then Google it and you'll find the online version of the PHP Man page.

The '-f' argument that they have added tells PHP to "parse and execute the following file" and then they give it the file.  That's why it suddenly works.  Some PHP installations, depending on version and security rules, require the -f and others done (such as mine).

As for the sendmail fix, my ISP requires that the sendmail path in my PHP.ini file look like this:

Code: (php)
sendmail_path = /usr/sbin/sendmail -t -i;

The -t and -i arguments have to be there in order for PHP to be able to send out emails.  Make sure that the sendmail path on your installation is setup correctly.
Logged

Don't PM me directly for help.  Post to the forums, that's what they are for after all.  PM's to me that request help will be ignored.

Hummdis Communications - Freelance Website Design & IT Consulting
itoregon
Guest
« Reply #4 on: July 17, 2009, 12:49:50 PM »

I am also having this problem.   When I send email to my support address, no ticket is generated in eTicket.   According to the troubleshooter,  looks like my server is good.

1: Troubleshooter:

    * PHP version: 5. 1. 6 (Should be PHP 5. 0. 0 or above)
    * PHP Safe Mode is off
    * Webserver: Apache/2. 2. 3 (CentOS)
    * GD version: bundled (2. 0. 28 compatible)
    * Multibyte String is installed
    * iconv version: 2. 5
    * IMAP is installed
    * Socket support enabled.
    * User Agent: Mozilla/5. 0 (Windows; U; Windows NT 6. 0; en-US; rv:1. 9. 1. 1) Gecko/20090715 Firefox/3. 5. 1 (. NET CLR 3. 5. 30729)
    * Character set:
    * Link: hxxp: secure. itoregon. net/troubleshooter. php


2: My /etc/alias line for support (also tried this without /usr/bin/php -f)

support:        |/usr/bin/php -f /home/admin/secure. itoregon. net/helpdesk/pipe. php


3: My sendmail_path from /etc/php. ini

sendmail_path = /usr/sbin/sendmail -t -i



4: Permissions on pipe. php are set to 755



5: My /var/log/maillog showing the message was sent

Jul 17 17:37:58 hurricane milter-greylist: n6I0bw61003466: skipping greylist because this is the default action, (from=<jaysen@spiretech. com>, rcpt=<support@itoregon. net>, addr=hyperion. spiretech. com[69. 168. 63. 208])
Jul 17 17:37:58 hurricane sendmail[3466]: n6I0bw61003466: from=<jaysen@spiretech. com>, size=790, class=0, nrcpts=1, msgid=<4A611969. 9000401@spiretech. com>, proto=ESMTP, daemon=MTA, relay=hyperion. spiretech. com [69. 168. 63. 208]
Jul 17 17:37:58 hurricane sendmail[3466]: n6I0bw61003466: Milter add: header: X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-3. 0 (hurricane. itoregon. net [69. 168. 53. 7]); Fri, 17 Jul 2009 17:37:58 -0700 (PDT)
Jul 17 17:37:58 hurricane sendmail[3470]: n6I0bw61003466: to=|/usr/bin/php -f /home/admin/secure. itoregon. net/helpdesk/pipe. php, ctladdr=<support@itoregon. net> (8/0), delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=31162, dsn=2. 0. 0, stat=Sent


Is there anything I am missing?  Any ideas at all?  Thank you all in advance for your hard work and support.

Jaysen

Logged
Hummdis
Moderator
Super Member
*****

Karma: +13/-0
Offline Offline

Posts: 558



WWW
« Reply #5 on: July 24, 2009, 02:19:06 PM »

On number 3, just to be sure, your path ends with a semi-colon, right?
Logged

Don't PM me directly for help.  Post to the forums, that's what they are for after all.  PM's to me that request help will be ignored.

Hummdis Communications - Freelance Website Design & IT Consulting
itoregon
Guest
« Reply #6 on: July 24, 2009, 04:10:22 PM »

Quote from: Hummdis link=topic=571. msg2252#msg2252 date=1248488346
On number 3, just to be sure, your path ends with a semi-colon, right?


This file doesn't require lines to be terminated with semi-colons.   That path was actually in there by default.   If semi-colons were required then I would think php would be broken entirely since I've never used them.   

I've decided to go with osTicket, I've got it working with mail piping just great.
Logged
andrewmmc
New Member
*

Karma: +0/-0
Offline Offline

Posts: 2


« Reply #7 on: August 11, 2009, 03:04:16 AM »

Hello,

I seem to be having the same problem.   Sendmail appears to be configured correctly, I can send mails from the system fine, but cannot receive emails.   As with a previous user, messages seem to be sent ok through the pipe, but aren't received into eticket.

As far as I can see the configuration is as it should be, what else is there to check?

Andrew
Logged
eTicket Community
   

 Logged
Pages: [1]   Go Up
Print
eTicket CommunitySupportInstallation Help & Software Support (Moderators: jason, Hummdis)Topic: Problems reciving mail into eTicket and Sending as well
Jump to: