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.

Redirecting email via mailscanner?

Discussion in 'cPanel Developers' started by dory36, Sep 13, 2005.

  1. dory36

    dory36 Well-Known Member

    Joined:
    Aug 30, 2003
    Messages:
    179
    Likes Received:
    0
    Trophy Points:
    16
    Long story involving lawyers and court orders etc that don't bear repeating here...

    But I need to redirect mail addressed to a domain on my server that comes from a couple of specific addresses, and have that email be delivered somewhere else instead.

    Can I use something like the following in the MailScanner rules? (I didn't see an example of this situation in EXAMPLES.)

    To: *@domain.com From: specific@address.com forward lawyer@somewhereelse.org delete

    Or other solutions?

    Thanks!
     
  2. dory36

    dory36 Well-Known Member

    Joined:
    Aug 30, 2003
    Messages:
    179
    Likes Received:
    0
    Trophy Points:
    16
    FWIW,
    Code:
    To: *@domain.com From: specific@address.com forward lawyer@somewhereelse.org delete
    
    does NOT work. :(
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You can't do that with MailScanner really, you'd need to use the Filter function in cPanel.
     
  4. dory36

    dory36 Well-Known Member

    Joined:
    Aug 30, 2003
    Messages:
    179
    Likes Received:
    0
    Trophy Points:
    16
    The sound you just heard was me slapping myself for trying to find a hard way to do a simple task... :eek:

    Thanks.
     
  5. pshepperd

    pshepperd Well-Known Member

    Joined:
    Feb 12, 2005
    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    16
    In cpanel for that domain you can add a domain forwarder (its under mail), will that accomplish what you want? or you could just change the MX for that domain to the other smtp, and have it forward them back to you, depending on whether the court order says you need it going through another one first.
     
  6. dory36

    dory36 Well-Known Member

    Joined:
    Aug 30, 2003
    Messages:
    179
    Likes Received:
    0
    Trophy Points:
    16
    I believe adding the filter that Chirpy suggested will work... filtering on FROM with the stalker's email address and setting the action to another email address.

    That works in testing using different addresses, anyway.

    Forwarding would work if it was ALL the mail to the victim's address that needed to be forwarded, but it's only mail from one person, and the destination email address is a business address that can't be merely abandoned, due to lots of advertising etc.

    Thanks for the ideas!
     
  7. pshepperd

    pshepperd Well-Known Member

    Joined:
    Feb 12, 2005
    Messages:
    147
    Likes Received:
    0
    Trophy Points:
    16
    Oh okay, I didn't really understand that you just wanted a couple addresses.
     
  8. jasgot

    jasgot Well-Known Member

    Joined:
    Mar 2, 2004
    Messages:
    55
    Likes Received:
    1
    Trophy Points:
    6
    I do this with Mailscanner. PM me if you need info.
     
Loading...

Share This Page