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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 28th November 2010, 13:55
Ryanmt Ryanmt is offline
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.
:0 c
* ^To.*support@domain.com
Ive tried putting it in


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?



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
<-q@vps.co.uk> (expanded from <support@domain.com>): unknown user:

<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

    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 15:13.
Reply With Quote
Sponsored Links
Old 29th November 2010, 14:05
falko falko is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts

Can you post the output of
ls -la /var/www/web38/web/support/
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


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 10:58
mail authentication failure - unknown user or password evok Installation/Configuration 9 16th October 2010 07:37
sneaking suspicion my postfix config has gone awry mjbarfoot Installation/Configuration 7 24th August 2010 13:23
421 Unexpected failure Lizard King Installation/Configuration 20 7th July 2009 21:43
Help configure Postfix to use alt port 465 or 587 BoloMarkIII Installation/Configuration 10 16th March 2009 18:57

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

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