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.


-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to