#1  
Old 25th July 2008, 11:35
ajw_doc ajw_doc is offline
Member
 
Join Date: Jun 2008
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default Aliases for email piping

I run a couple of sites that both have the need for email to be piped. I have one already set up in the etc/aliases file which works fine but my stumbling block is setting up the second site. Both sites use support and sales but etc/aliases only allows you to put in one support/sales alias (you dont reference the domain).

I assume this is because there is only the one etc/aliases rather than one per site?

Is there a way to achieve what I want?

Thanks,

AJ
Reply With Quote
Sponsored Links
  #2  
Old 25th July 2008, 12:11
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Please remove the aliases from the file as this is the wrong way to set this up.

Instead, enter the aliases in the aliases field of the mail account in ispconfig.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 25th July 2008, 12:12
ajw_doc ajw_doc is offline
Member
 
Join Date: Jun 2008
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The alias is a php path to file command that doesn't work in the alias box as that is for setting up aliases to an existing user.

Eg user is fred and alias is support. Support email will be sent to fred.

I have a path to a php file that I need to send the email too.

Last edited by ajw_doc; 25th July 2008 at 15:24.
Reply With Quote
  #4  
Old 26th July 2008, 11:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Can you describe in more detail what you're trying to do?
__________________
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
  #5  
Old 26th July 2008, 11:23
ajw_doc ajw_doc is offline
Member
 
Join Date: Jun 2008
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Falko,

I'm trying to pipe email into a support desk

Eg mail to support@domain.com > sent to php pipe file (pipe.php) > imported into helpdesk software (eg cerbeurs or kayako).

I don't want to use the pop3 import method - I don't like it and it doesn't work for me.

Now normally to do this and on other servers running other control panels I edit the alias file and add

support: | php -q /path/to/pipe.php

and all is good.

However I can't do so here as there is only one aliases file for the server rather than one for each site so that limits me too only having one support email address being piped. I suspect only having one aliases file has something to do with the way ISPconfig has everything set up.

I've tried using support.domain.com (user name) but to no avail!

Obviously because I'm trying to send an email to a php file I can't use the alias box till suggested (I have tried that and the forward box and no joy).



AD

Last edited by ajw_doc; 26th July 2008 at 11:27.
Reply With Quote
  #6  
Old 26th July 2008, 11:28
ajw_doc ajw_doc is offline
Member
 
Join Date: Jun 2008
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To add, if there is something in ISPconfig I can edit to make an alias file for each site I'm happy to delve into the code!
Reply With Quote
  #7  
Old 27th July 2008, 17:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

I'd simply create a support email address for each site and then use the username of the account (e.g. web1_support) in /etc/aliases:

Code:
web1_support: | php -q /path/to/pipe.php
__________________
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
  #8  
Old 27th July 2008, 18:37
ajw_doc ajw_doc is offline
Member
 
Join Date: Jun 2008
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Thanks Falko that works a treat! I had tried using the username but it wasn't working but tried again today and all is good!

Thanks so much.

AJ
Reply With Quote
Reply

Bookmarks

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 do E-Mail Aliases Work? bswinnerton Installation/Configuration 8 28th March 2008 14:50
Aliases not added from ISPConfig gregi Installation/Configuration 14 29th December 2007 23:31
Is it possible to have mail aliases (forwarders) MvincM Installation/Configuration 3 27th November 2006 14:07
Managing aliases in /mailuser/ heri Tips/Tricks/Mods 0 27th June 2006 11:38
Can't receive email for aliases sbecker Installation/Configuration 10 4th April 2006 16:51


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


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