Hi!
Thanks Philip. It works ...
virtual_aliases:
driver = redirect
pipe_transport = special_pipe_transport
group = mail
user = mail
data = ${if exists{/usr/exim/accts/$domain}\
{\
${lookup{$local_part@$domain}lsearch*{/usr/exim/accts/$domain}}\
}\
{}}
Well, only the autoresponder does not work properly
This is the working transport from v3:
special_pipe_transport:
driver = pipe
group = mail
user = mail
This line is called every time a lookup matches the emailaddress:
respond@???: |/usr/local/admin/bin/autorespond
respond@???:/usr/etc/virt/mydomain/respond.resp
[ emailaddress - autoresponder - emailaddress - respondermsg ]
/usr/local/admin/bin/autorespond (just sends the reply):
#!/usr/bin/perl
$query = $ARGV[0];
($address,$file) = split(/:/, $query);
open(SEND,"|(/usr/bin/formail -r -A \"X-Loop: $address\" -A\"From:
$address\" -X To: -X X-Loop;/bin/cat $file)|/usr/sbin/sendmail -t");
@lines = <STDIN>;
foreach $line (@lines) {
print SEND "$line\n";
}
close(SEND);
This is in the logfile: transport "autoreply" not found in virtual_aliases
router
Should I use the autoreply function in combination with a pipe?
Any clues?
It was working on v 3
Cheers
Hub