pogiii Posted October 21, 2011 Share Posted October 21, 2011 Hi guys I get the "local delivery failed" email everytime an email gets forwarded to whmcs (tickets) The script has been working for me for over 7 months already, and this just suddenly happend out of nowhere!!!???!! Ive been talking with the whmcs support team and my host's support team Im really caught in the middle here WHMCS told me: The forwarder setup is correct. The exact same setup is used on many users servers without issue. The only variant is the server, so this is something that would need to be checked. I had the whmcs take a look and they couldnt find anything Host told me: It looks like your path at the top of that php file is #!/usr/local/bin/php. I am not sure when it changed but that path no longer exists. I would suggest updating that path to a current php location and see if that fixes the problem. Some options would be: /usr/bin/php /usr/bin/php-cli /usr/bin/php-cli.orig /usr/bin/php-config /usr/bin/php.orig /usr/bin/php53s /usr/bin/php5s I think my host is talking about the hash at the top of the pipe.php Well it has always been like that. I received the security patch email the other day, and uploaded it to the whmcs Everything was fine, but this is also the last time i got ay tickets (from emails) Could this be coincidence? Just wondering if you had an experience like this before and what did you do? Ive tried both codes in the documentation for "local delivery failed" emails, Ive tried what support have suggested as well. It just wont work Host is hostmonster Any help would be greatly appreciated. Thanks guys 0 Quote Link to comment Share on other sites More sharing options...
webking1 Posted October 22, 2011 Share Posted October 22, 2011 Hostmonster. Same boat here. Nothing works. Everything suddenly not working at all this includes the ionCube cron job as well as the email forwarding piping. This must be hostmonster I think? I contacted hostmonster about ionLoader and they said they fixed it but apparently did not. I tried to run the cron.php but it still asking for ionLoader. 0 Quote Link to comment Share on other sites More sharing options...
kantlivelong Posted December 22, 2011 Share Posted December 22, 2011 I am having the same problem.... The only thing that changed was me updating from 4.3.x to 5.0.x Nothing on the server has changed.... 0 Quote Link to comment Share on other sites More sharing options...
kantlivelong Posted December 22, 2011 Share Posted December 22, 2011 Update... The issue must be with the WHMCS pipe.php script as it keeps returning 255 even though it works... I wrote a simple shell script wrapper that returns 0 exit code and it all works fine......... Filename: pipe_wrapper.sh #!/bin/bash php -q /path/to/pipe.php exit 0 [/code] Then edit your .forward file to use the new pipe_wrapper.sh 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted December 22, 2011 Share Posted December 22, 2011 If "everything worked" and it still returned a non zero exit code, the WHMCS system would still be getting the emails. The message may bounce back, but the emails would still be entered into the ticket system. If this isnt happening, something else is wrong. My guess is, your host moved php to another location, didn't tell you. My suggestion would be to change the pipe to pass to the real php binary. | /usr/bin/php -q /path/to/pipe.php 0 Quote Link to comment Share on other sites More sharing options...
ihostct Posted December 23, 2011 Share Posted December 23, 2011 I am having the same issue: This message was created automatically by mail delivery software. 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/mydir/public_html/mydir/pipe/pipe.php generated by terri@myaddress.net local delivery failed This is driving me crazy, but it started happening a few days ago and I didn't realize it until this morning (I don't get a lot of support requests so thought nothing of not seeing any new tickets for a few days). But from what I can tell, new tickets were submitted and I have not gotten any of them since my WHMCS upgrade last week. I don't know which direction to go... the company I get my server from will tell me its a WHMCS issue, and WHMCS says the piping has not changed. Well, SOMETHING changed the day my WHMCS was upgraded, and if cpanel changed that same day it would be an interesting coincidence though I have my whm set NOT to update my cpanel automatically.... I need this corrected asap, I can't take this circle of stress. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted December 23, 2011 Share Posted December 23, 2011 read what I wrote, apply it, see if it works. 0 Quote Link to comment Share on other sites More sharing options...
ihostct Posted December 23, 2011 Share Posted December 23, 2011 read what I wrote, apply it, see if it works. THANK YOU, THANK YOU!!!! I tried it on the test I set up and yes, it did work. I can't thank you enough!!! Going to apply it to my non-test addresses now and do one more check. You have no idea how much stress you just relieved me of. Terri 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted December 23, 2011 Share Posted December 23, 2011 Great, glad it worked for you. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.