Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Migration

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-21-2010, 01:58 PM
New Member
 
Posts: 3
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.
Reply With Quote
  #2 (permalink)  
Old 07-26-2010, 10:50 PM
Zimbra Consultant & Moderator
 
Posts: 20,317
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
Reply With Quote
  #3 (permalink)  
Old 07-27-2010, 04:56 AM
New Member
 
Posts: 3
Default

I'm not. I didn't think the actual domain name was relevant to the question.
Reply With Quote
  #4 (permalink)  
Old 07-27-2010, 06:12 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
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
Reply With Quote
  #5 (permalink)  
Old 07-27-2010, 06:18 AM
New Member
 
Posts: 3
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.
Reply With Quote
  #6 (permalink)  
Old 07-27-2010, 06:21 AM
Moderator
 
Posts: 7,928
Default

Why not add an alias to the accounts ?
__________________
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.