Sunday, June 30, 2013

Steps to forward mails from/to all accounts under a domain to another email

Steps to forward mails from/to all accounts under a domain to another email

Check which exim filter is used in the exim configuration file

grep filter /etc/exim.conf

Add the following entries to the filter file.

vi /etc/cpanel_exim_system_filter

##send a copy of all mails from domain.com to gmail

if $header_from: contains “@domain.com”
then
unseen deliver “test@gmail.com”
endif

##to forward gmail a copy of all mails to domain.com

if $recipients contains “@domain.com”
then
unseen deliver “test@gmail.com”
endif

Restart exim once this is done.

13 comments:

  1. Hello, everything is going sound here and ofcourse every one
    is sharing data, that's truly fine, keep up writing.

    ReplyDelete
  2. I've been browsing online more than 3 hours today, yet I never found any interesting article like yours. It's pretty worth enough for me.
    In my view, if all web owners and bloggers made good
    content as you did, the net will be a lot more useful than ever
    before.

    ReplyDelete
  3. Hi Dear, are you genuinely visiting this web site regularly, if so after that you will without
    doubt take good knowledge.

    ReplyDelete
  4. I couldn't refrain from commenting. Very well written!

    ReplyDelete
  5. If some one needs expert view on the topic of blogging and site-building afterward
    i propose him/her to pay a quick visit this webpage, Keep up the fastidious
    job.

    ReplyDelete
  6. Great website you have here but I was wanting to know if
    you knew of any user discussion forums that cover the
    same topics discussed in this article? I'd really like to be a part of online community where I can get responses from other experienced individuals that share the same interest. If you have any suggestions, please let me know. Thanks!

    ReplyDelete
  7. My partner and I stumbled over here by a different web page and
    thought I should check things out. I like what I see so i
    am just following you. Look forward to finding out about your
    web page yet again.

    ReplyDelete
  8. You've made some good points there. I looked on the web to learn more about the issue and found most people will go along with your views on this site.

    ReplyDelete
  9. We stumbled over here coming from a different page and thought I might check things out.
    I like what I see so now i am following you. Look forward to looking over
    your web page yet again.

    ReplyDelete
  10. When I originally commented I clicked the "Notify me when new comments are added" checkbox and
    now each time a comment is added I get several e-mails with the same comment.
    Is there any way you can remove me from that service?
    Bless you!

    ReplyDelete
  11. Hi there to every one, it's genuinely a pleasant for me to pay a quick visit this site, it consists of useful Information.

    ReplyDelete
  12. I delight in, cause I discovered exactly what I was looking for.

    You have ended my four day lengthy hunt! God Bless you man.

    Have a great day. Bye

    ReplyDelete
  13. I am truly thankful to the owner of this website who has shared this enormous
    paragraph at here.

    ReplyDelete