[exim] Incoming mail to pipe and outgoing mail to smtp_remo…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: parser
Datum:  
To: exim-users
Betreff: [exim] Incoming mail to pipe and outgoing mail to smtp_remote

Hello,
How can i separate incoming mail and outgoing mail,
i want all incoming mail move to pipe (php script) and all outgoing mail
move to remote_smtp

begin routers

manualroute:
driver = manualroute
condition = ${if or{{eq{$sender_host_address}{127.0.0.1}}
{eq{$sender_host_address}{NULL}}}{yes}{no}}
route_list = !+local_domains
transport = remote_smtp
no_more


lookuphost:
driver = dnslookup
domains = ! +local_domains
ignore_target_hosts = 127.0.0.0/8
condition = "${perl{check_limits}}"
transport = mypipe_smtp
no_more

#------------------------------
begin transports

mypipe_smtp:             
  driver = pipe
  command = "/usr/local/bin/php /tmp/1.php"
  use_bsmtp = true
  user = mail
  group = mail


What is a wrong?
--
View this message in context: http://www.nabble.com/Incoming-mail-to-pipe-and-outgoing-mail-to-smtp_remote-tf4944545.html#a14155443
Sent from the Exim Users mailing list archive at Nabble.com.