[Exim] redirect all mail going to domain.com

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Paul Robinson
Datum:  
To: exim-users
Betreff: [Exim] redirect all mail going to domain.com
Hello all,

I just wanted to get people's opinion on the method of sending all mail
directed for "mydomain.com" into a pipe. The way i've decided to go
about it is by adding "mydomain.com" to the local_domains, then adding
in the following director:

mydomain:
driver = forwardfile
domains = mydomain.com
check_local_user = false
user = mydomain
file = /some/path/to/a/forwardfile
pipe_transport = mydomain_transport

Then i've added the following transport:

mydomain_transport:
driver = pipe
user = mydomain
group = mydomain
command = /some/path/to/a/command.sh


Obviously, the "command" line isnt necessarily needed, but i've put it
in for completeness. I was just wondering if theres a more ellegant
solution?

Thanks in advance...

Paul

--
Paul Robinson ----- paulr@??? ----- http://www.best.com/~crash
Snr Unix Systems Administrator -+++- Access Systems Research Pty. Ltd.