PDA

View Full Version : Email piping



Tazzman
11-15-2003, 09:15 AM
Anybody care to write a quick HOWTO on email piping with Direct Admin. I'm just looking for the location of the alias files, but I can't seem to find the right one. I'm sure that given time and experimenting I'll find it, but maybe somebody can save me a little bit of effort.

Just trying to set up email piping with the Esupport helpdesk. Tried just adding a forwarder as you would do with Cpanel, but it will only accept email addresses as forwarders. Maybe this can be changed in a future release? Would be easier that SSH'ing in and changing alias files all the time.

DirectAdmin Support
11-15-2003, 03:23 PM
Hello,

Aliases:

/etc/virtual/domain.com/aliases

As for piping, if you paste a sample of what you want to be able to add, I can let it through the form checking.

John

Tazzman
11-15-2003, 05:28 PM
Basicly just allow forwarding to a script located on the server. For Esupport is would be something like this:

"|/home/path/to/esupport/admin/pop3pipe.php"

DirectAdmin Support
11-16-2003, 11:53 AM
Hello,

Ok, I'll add that for the next release.

John

sander815
11-18-2003, 01:10 AM
i would like to request this feature too

see http://www.osticket.com/server/ for whats needed

i use this as helpdesk, but emailpiping doesn't work yet on DA

nebukazar
11-18-2003, 08:10 PM
Hi, you can just add this to your /etc/virtual/domain.com/aliases :
something: |/home/logics/domains/domain.com/public_html/path/to/automail.pl

something is your helpdesk email addr (could be support@domain.com) just use the "support"

hope it will help :)

regards,

sander815
11-19-2003, 02:57 AM
i know, but as far as i know i don't have access to /etc/virtual/domain.com/aliases as reseller

DirectAdmin Support
11-19-2003, 08:52 AM
When the feature comes out, you'll be able to do it using a forwarder. Note that you'll need to have quotes around the pipe:

"|/pipe/command"

and not

|/pipe/command

John

sander815
11-28-2003, 12:37 AM
i just tried this option, but can't get it to work

i created a forwarder:
Alias support@xxxxxxx.nl -> "|/home/xxxxxx/domains/xxxxxxx.nl/public_html/cgi-bin/automail.pl" has been created
Click HERE to return to the forwards list


forwarder gets created fine, but when i send mail to support@xxx.nl i get it bounced back with this:

This message was created automatically by mail delivery software (Exim).

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/xxxxx/domains/xxxxx.nl/public_html/cgi-bin/automail.pl
generated by support@xxxxxx.nl
Child process of virtual_address_pipe transport returned 69 (could mean service or program unavailable) from command:
/home/xxxxxx/domains/xxxxxx.nl/public_html/cgi-bin/automail.pl

------ This is a copy of the message, including all the headers. ------


automail has chmod 777

FarCry
11-28-2003, 03:44 AM
Originally posted by DirectAdmin Support
When the feature comes out, you'll be able to do it using a forwarder.


Course it wont work yet :) wait till 1.203

sander815
11-28-2003, 05:25 AM
he, ok, thought it was already working

UltimeWWW
11-28-2003, 05:47 AM
It do works great, it was in 1.202 :)

sander815
11-28-2003, 02:32 PM
i don'understand what you mean

are you saying it works for you? cause i can't get it to work in 1.202

UltimeWWW
11-28-2003, 02:35 PM
It do works fine

"|/path/to/file" in a Forwarder.

sander815
11-29-2003, 07:44 AM
i know wthat, but i get the error as describede above..

UltimeWWW
11-29-2003, 07:47 AM
Try adding the Perl path before your line :)

DirectAdmin Support
11-29-2003, 09:11 AM
The only change to DA for piping was to allow it through the form checking. Exim should have already supported it, so the script is probably exiting prematurely. Perhaps try just running the script manually to make sure it works...

John

XYZed
04-22-2004, 07:05 AM
I don't have a problem with piping working, infact it works to well.

I am getting 2 of everything. So if someone sends a support ticket in it gets created twice.

Even when I had the wrong permission on the programs script I would get a error message back listing the 2 attempts:
pipe to |/home/user/public_html/esupport/admin/pop3pipe.php
generated by esupport@domain.com
local delivery failed
pipe to |/home/user/public_html/esupport/admin/pop3pipe.php
generated by esupport@domain.com
local delivery failed

This is to any email address that is piped and also to any program using pipe.

Any ideas?

Thanks.

DirectAdmin Support
04-22-2004, 12:57 PM
Hello,

The only thing I can think of is if the script isn't returning an exit code of 0 . Any non-zero value is considered to be an error, and exim might try to send it again.. Just a guess though.

John

XYZed
04-24-2004, 08:48 AM
Hi,

Problem solved by this post (http://www.directadmin.com/forum/showthread.php?s=&threadid=1286&highlight=exim+line)

Thanks.

Herbster
09-03-2004, 10:07 AM
After spending a lot of time trying to set this up, my host sez:
"You can't do that... it's not available to users."

Does this feature require root access or something?

thevillageinn
09-03-2004, 05:42 PM
it works with this particular host. I share a host with Herbster and I just wrote a bit on how I made it work.