Re: [newbie question] RegExp on Postfix

From: Noel Jones (no email)
Date: Thu Sep 01 2005 - 14:31:37 EDT

  • Next message: Etienne Goyer: "Re: Appending @domain to a virtual mailbox lookup"

    At 07:04 AM 9/1/2005, Jug Mensenares wrote:
    >Hi everyone! The last time I administered a Postfix server was 3
    >years ago so i hope the list would be very forgiving. Hehe
    >
    >I've just finished installing and configuring
    >postfix-2.1.5-4.2.RHEL4 on CentOS. I've configured it and confirmed
    >that I can already send and receive emails. What I need to do now is
    >be able to accept emails for
    ><mailto:>, where N
    >is any number, and deliver it to a particular mailbox. I'm quite lost.

    Use a regexp virtual_alias_maps. Something like this should do:

    # main.cf
    virtual_alias_maps = regexp:/etc/postfix/virtual.regexp

    # virtual.regexp
    /^acct[0-9]+@example\.com$/

    Note changes to regexp files are not detected automatically, so run
    "postfix reload" after you edit virtual.regexp.

    Also, please click the "Plain Text" button when composing list mail in Gmail.

    -- 
    Noel Jones 
    

  • Next message: Etienne Goyer: "Re: Appending @domain to a virtual mailbox lookup"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD