Autor: FLORENT Philippe Data: Dla: exim-users@exim.org Temat: Re: [exim] mail between local linux machines
Hi everyone,
I need a script to process the latest email received
So far I added this to /etc/exim4/exim4.conf.template from infos I gathered on the web and in the manual
but I am not sure if this is correct nor if it this is supposed to be added to 00_exim4-config_header
the plan is to run a python script that will process the email content everytime the machine receives a mail
...
...
### router/mmm_run_script
#################################
# process received emails
runscript:
debug_print = "R: localuser for $local_part@$domain"
driver = pipe
domains = +local_domains
data = /var/mail/mail
file_transport = address_file
local_parts = localuser
user = localuser
group = mail
command = /some/path/to/some/command with some options
maildir_format
#####################################################
### end router/mmm_run_script
#####################################################
#####################################################
### transport/00_exim4-config_header
#####################################################
######################################################################
# TRANSPORTS CONFIGURATION #
######################################################################
# ORDER DOES NOT MATTER #
# Only one appropriate transport is called for each delivery. #
######################################################################
# A transport is used only when referenced from a router that successfully
# handles an address.