Re: [Exim] Routing Mail to a Script

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: kmb
Data:  
Para: exim-users
Asunto: Re: [Exim] Routing Mail to a Script
This can be done with a Pipe;

In the aliase file you would put ...


Code:
--------------------

  user:     |/path/to/script/scriptname.pl


--------------------

In your case "user" would be moblog with out the domain name.

This also assumes that you have a pipe_transport defind in the
system_aliases section as here:


Code:
--------------------

driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/aliases}}
user = exim
file_transport = address_file
pipe_transport = address_pipe


--------------------


That would take care of it... and just for completeness in the
transport section you need to have


Code:
--------------------

address_pipe:
driver = pipe
return_output

--------------------


I hope this helps

Kevin


--
kmb

Kevin Barrett
Administrator -- Exim-Users.org Portal And Forums
Exim-users email list to forum gateway
Come Join us at 'The Exim-Users Forums' (http://www.exim-users.org)

------------------------------------------------------------------------
kmb's Profile: http://www.exim-users.org/forums/member.php?action=getinfo&userid=1
View this thread: http://www.exim-users.org/forums/showthread.php?threadid=865