Results 1 to 6 of 6

Thread: Migrating from postfix, one hurdle left - Need to rewrite 'To:' before local delivery

  1. #1
    danielj is offline New Member
    Join Date
    Jul 2010
    Posts
    3
    Rep Power
    5

    Default Migrating from postfix, one hurdle left - Need to rewrite 'To:' before local delivery

    If there is another way to go about this, I would be glad to hear it. I have been googling this one piece of the puzzle for most of the day.


    I have outsourced spam filtering for a handful of accounts in the domain (I'll use example.com).

    Anything coming in for user@example.com gets rewritten to user@mx2.example.com in the aliases file. mx2.example.com filters the mail and sends it back to user_filtered@example.com.

    I currently have a procmail script:
    <code>
    :0 f
    *^To:.*_filtered@cheshirecat\.net
    | /usr/bin/sed -e 's/^To:/s/_filtered//'
    </code>

    This strips the _filtered off of user_filtered@example.com, so it gets delivered to user@example.com. No muss, no fuss. I was quite proud of myself when I figured out how to implement it.

    Alas, that isn't going to fly with Zimbra. This is the last piece before I can migrate (I don't think spamassassin is going to be good enough filtering on its own for these 5 users). I know I could just try it without the external filtering, but if there is a problem I will need a quick implementation solution, so better to figure it out before hand.

    Thank you for any suggestions.

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,586
    Rep Power
    57

    Default

    Quote Originally Posted by danielj View Post
    Anything coming in for user@example.com gets rewritten to user@mx2.example.com in the aliases file. mx2.example.com filters the mail and sends it back to user_filtered@example.com.
    Why are you actually using a domain name of mx2.example.com rather than example.com on your Zimbra server?
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    danielj is offline New Member
    Join Date
    Jul 2010
    Posts
    3
    Rep Power
    5

    Default

    I'm not. I didn't think the actual domain name was relevant to the question.

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,586
    Rep Power
    57

    Default

    Quote Originally Posted by danielj View Post
    I'm not. I didn't think the actual domain name was relevant to the question.
    You posted two example and one of them is using an FQDN or a sub-domain name (mx2.example.com) and the other a domain name (example.com), is that not correct? It's not the actual domain name that's important it's the fact you're showing two different formats for them in your example.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  5. #5
    danielj is offline New Member
    Join Date
    Jul 2010
    Posts
    3
    Rep Power
    5

    Default

    Mail comes in to user@example.com on the example.com mail server. The mail server forwards that email to the mail server at mx2.example.com, which is just a CNAME for our outsourced mail server. That outsourced server filters the mail and sends it back to example.com as user_filtered@example.com.

    Is it clearer that way? I realize this is an unusual scenario.

    Thanks.

  6. #6
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Why not add an alias to the accounts ?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. postdrop fail to create file after upgrade to 5.0.3
    By echoadisan in forum Installation
    Replies: 23
    Last Post: 07-15-2013, 03:02 PM
  2. DMZ relay to Zimbra internal host
    By swordfish in forum Installation
    Replies: 12
    Last Post: 02-04-2009, 11:30 AM
  3. postfix transport maps
    By pheonix1t in forum Administrators
    Replies: 12
    Last Post: 01-17-2009, 11:42 PM
  4. Zimbra fails after working for 2 weeks
    By Linsys in forum Administrators
    Replies: 10
    Last Post: 10-07-2008, 12:42 AM
  5. [SOLVED] Zimbra and local mail delivery with Postfix
    By Openlink in forum Installation
    Replies: 5
    Last Post: 12-07-2007, 03:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •