The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Exim: forward and delete (no local delivery)?

Discussion in 'General Discussion' started by peruda.com, May 29, 2004.

  1. peruda.com

    peruda.com Well-Known Member

    Joined:
    Aug 23, 2003
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    I have been reading through pages and pages of Exim documentation, but I'm still not sure how to simply setup a scheme that forwards mail to a particular user WITHOUT delivering it to their mailbox. I have several users that want this ability - just to have mail sent to "user@mydomain.dom" forward to -> "user@internetserviceprovider.dom" without having it collect in the local inbox file taking up space and eventually reaching the quota.

    I thought this could be done with a .forward file in the user's home directory (/home/mydomain/mail/mydomain.dom/user) but I have had no success.

    Any ideas?? Thanks!!!
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    AFAIK You can't do that. If you have an email account with the same name as the forward you will always get email delivered to both.
     
  3. peruda.com

    peruda.com Well-Known Member

    Joined:
    Aug 23, 2003
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    Thanks for the response! It seems very strange to me that this cannot be done. I know that Exim is capable of a lot of complex filtering so it seems that it would be a relatively simple thing to! I have offered to pay someone for a solution to this over at http://www.webhostingtalk.com/showthread.php?s=&postid=2149206#post2149206

    So if anyone is proficient in writing Exim filters, I would be happy to pay a reasonable fee for this to be done. Thank you!

    -John
     
  4. largolam

    largolam Active Member

    Joined:
    May 16, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    Actually, with a *normal* exim setup, if you have a forwarder and a mailbox, it does just forward it, and not store in the mailbox. With this you can have a mailbox, and temporarily forward its mail without deleting the mailbox, then if for some reason you *do* want to both forward it *and* store it, you add both the address you want to forward to, as well as the address of the mailbox itself, and then exim hits the forwarder first, forwards to the external address, and back to the same address. the second time thru as its routing the same address, it recognizes its already been thru the forwarder, and skips that, falling thru the the mailbox.

    This is how most mail systems operate, and seems intuitive, and what most people expect, yet for some reason the cpanel 'developers' have gone to great lengths to make their setup *NOT* work that way. Probably there are more 'webmasters' on their team than actual sysadmins, and so they had no experience with the normal way email works. Basically, if all you want it to do is forward, then do *not* create a mailbox/account - create *only* a forwarder, and it will forward the mail to whatever address you set.
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It's not cPanel's "fault". That's how exim works and the exim developers did it that way intentionally.
     
Loading...

Share This Page