Results 1 to 4 of 4

Thread: [SOLVED] Wildcard forwarding

  1. #1
    peng1can is offline Senior Member
    Join Date
    Aug 2007
    Location
    Indianapolis
    Posts
    54
    Rep Power
    7

    Default [SOLVED] Wildcard forwarding

    Under our old postfix setup, we standardized that addresses ending in -list were piped to our mailing list system. Since that resided on the same box as our MTA, we used two lines in transport_regexp that looked like this:
    /^.*-list\@domain\.com$/ sympa:
    /^.*-list-(request|editor|subscribe|unsubscribe)\@domain\.co m$/ sympa:

    Now that we're on zimbra, I'm running sympa on another box, so instead of using a different transport, I "just" need to forward those addresses to another box. I've tried adding the line:

    canonical_maps = hash:/opt/zimbra/postfix/conf/canonical

    to /opt/zimbra/postfix/conf/main.cf and then placing the following line in /opt/zimbra/postfix/conf/canonical:

    /^(.*-list)@domain.com$/ ${1}@lists.domain.com

    So far, that seems to have no effect. Does anyone have any other suggestions for forwarding a matching set of addresses to another domain?

    Thanks

  2. #2
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    Try
    postconf -e canonical_maps = hash:/opt/zimbra/postfix/conf/canonical

  3. #3
    peng1can is offline Senior Member
    Join Date
    Aug 2007
    Location
    Indianapolis
    Posts
    54
    Rep Power
    7

    Default

    The suggestion to use postconf -e did indeed make postifx pick up the canonical file. I guess this is turning into more of a postfix question, but apparently my regex is wrong or something.

    I've placed in /opt/zimbra/postfix/conf/canonical:
    /^(.*)-list\@domain\.com$/ ${1}-list@lists.domain.com

    But this command yields no results:
    # /opt/zimbra/postfix/sbin/postmap -q 'test-list@domain.com' /opt/zimbra/postfix/conf/canonical

    Anyone see an obvious error in what I am doing here? If I can get this working, I'll write up my howto on making Sympa work with Zimbra, but at this point alias management is still a bit too complicated.

  4. #4
    peng1can is offline Senior Member
    Join Date
    Aug 2007
    Location
    Indianapolis
    Posts
    54
    Rep Power
    7

    Default

    Got it... should've been:

    postconf -e canonical_maps = regexp:/opt/zimbra/postfix/conf/canonical

    in order to use the regular expression mapping.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Forwarding to local email account(s)
    By hernad in forum Administrators
    Replies: 0
    Last Post: 06-27-2007, 05:16 AM
  2. Forwarding, and forwarding as Attachments
    By gfdos.sys in forum Users
    Replies: 4
    Last Post: 06-06-2007, 07:22 AM
  3. Forwarding Email
    By Collins Denny in forum Users
    Replies: 2
    Last Post: 04-19-2007, 04:59 AM
  4. Mail forwarding via command line
    By NIRMESH KUMAR in forum Administrators
    Replies: 2
    Last Post: 01-24-2007, 03:19 AM
  5. Forwarding
    By scottp in forum Administrators
    Replies: 6
    Last Post: 04-05-2006, 04:40 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
  •