Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to forward all emails to my gmail email address.

In my aliases file. I have this code:


and it's working fine,but I have a hundreds of email addresses, I can not add them all manually I am trying this code:


but it is not working:

So, how I can tell the software to forward my all emails to the gmail email?

I've got exim installed without cpanel

share|improve this question
up vote 1 down vote accepted

I don't think this is possible, it will be interpreted as a literal string. You will need to add a new router to exim

  driver = redirect
  domains = yourdomain
  data =
share|improve this answer
Thank you very much .. but what if i want forward them to a file? i get this error -> pipe_transport unset in catchall_pub router <br /> I am using ( data = |/home/resend.php ) – Emad Ahmed Apr 29 '12 at 10:09
i've added this lines in the config file_transport = address_file pipe_transport = address_pipe it's now working so fine, thank you very much Lucas – Emad Ahmed Apr 29 '12 at 10:26
did you selected the name of the router randomly or it should be as that? .. can i change the name? or can i create my own routers? How can i read more about this? do you have a useful links ? Thanks bro – Emad Ahmed Apr 29 '12 at 10:30
You can create your own routers, the name is random. You can learn more by searching for it in google or going to the exim website and read their documentation. – Lucas Kauffman Apr 29 '12 at 11:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.