Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th November 2010, 12:55
Ryanmt Ryanmt is offline
Member
 
Join Date: Apr 2008
Posts: 92
Thanks: 15
Thanked 6 Times in 4 Posts
Default Postfix email piping

I am trying to create an email pipe so i can use osTicket on my server.
Code:
:0 c
* ^To.*support@domain.com
|/var/www/web38/web/support/automail.php
Ive tried putting it in

/var/www/web38/user/web38_support/.procmailrc
/var/www/web38/.procmailrc

and restarted postfix and its not working. There is a support@domain.com email setup so I assume any mail thats sent to it is still ending up in the inbox rather than getting piped.

What is the correct way to do this?

Thanks
Ryan

-edit

I also did a bit of searching on here and had ago at doing it with aliases. Im not sure if this will work since the script needs to know which email address it was sent to. It uses things like
33423support@domain.com to attach things to ticket 33423 as far as i can gather.

i added

web38_support: | php -q /var/www/web38/web/support/automail.php

to /etc/aliases and ran sudo newaliases

if i send an email to support@domain.com i now get it bounced back
Code:
<-q@vps.co.uk> (expanded from <support@domain.com>): unknown user:
    "-q"

<web38_support@vps.co.uk> (expanded from <support@domain.com>):
    cannot append message to file /var/www/web38/web/support/automail.php:
    cannot open file: Permission denied
also if i chmod or chown the file to root and 777 etc i get

Code:
    cannot append message to file /var/www/web38/web/support/automail.php: file
    is executable
I have also tried

web38_support: "|php -q /var/www/web38/web/support/automail.php"
web38_support: |/var/www/web38/web/support/automail.php
web38_support: root, "| php -q /var/www/web38/web/support/automail.php"
with either the same error or no error atall (still doesnt work)

Last edited by Ryanmt; 28th November 2010 at 14:13.
Reply With Quote
Sponsored Links
  #2  
Old 29th November 2010, 13:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
 
Default

Can you post the output of
Code:
ls -la /var/www/web38/web/support/
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
ispconfig2, piping, postfix

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How cai remove amavis from postfix ? gabrix Server Operation 16 2nd October 2012 09:58
mail authentication failure - unknown user or password evok Installation/Configuration 9 16th October 2010 06:37
sneaking suspicion my postfix config has gone awry mjbarfoot Installation/Configuration 7 24th August 2010 12:23
421 Unexpected failure Lizard King Installation/Configuration 20 7th July 2009 20:43
Help configure Postfix to use alt port 465 or 587 BoloMarkIII Installation/Configuration 10 16th March 2009 17:57


All times are GMT +2. The time now is 09:29.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.