virtual_alias_domains for all domains and all addresses

Discussion in 'Server Operation' started by kongi123, Apr 28, 2010.

  1. kongi123

    kongi123 New Member

    Hello,

    I am looking for a code for setting virtual alias for all domains and addresses. The scenario is that when I send an email from anywhere to my server, it will send to only one address but not send to the orginal recipients.

    This is my code: I think the problem may be from the regular expression (.*) for any domains/email addresses. I choose this method because I would like any emails sent will be forwarded to admin.

    /etc/postfix/main.cf:
    virtual_alias_domains = (.*) <-----
    virtual_alias_maps = hash:/etc/postfix/virtual

    /etc/postfix/virtual
    (.*) [email protected] <----

    Thank you very much.
     

Share This Page