Find the answer to your Linux question:
Results 1 to 3 of 3
hi i want to forward emails from a postfix ( me_at_mydomaindotcom) to another email account that is independant of the forwarding account (eg. myself_at_ispdomaindotcom). how do i go about this?what ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    9

    Question postfix email forwarding

    hi
    i want to forward emails from a postfix ( me_at_mydomaindotcom) to another email account that is independant of the forwarding account (eg. myself_at_ispdomaindotcom). how do i go about this?what are the configs and in which postfix file do i do them

  2. #2
    Just Joined!
    Join Date
    Jul 2009
    Posts
    5
    hi clarencek

    depends if you want to forward instead or as well as receiving locally.

    if it's instead then edit /etc/aliases and add a line like:

    Code:
    me: myself_at_ispdomaindotcom
    then run postalias /etc/aliases


    if you want the email to be redirected and not received locally at all then:

    edit /etc/postfix/main.cf and add a line:

    Code:
    virtual_alias_maps = regexp:/etc/postfix/virtual
    (check that you don't already have virtual_alias_maps set to something else)

    then in /etc/postfix/virtual or wherever your existing setting is pointing put:

    Code:
    me_at_mydomaindotcom  myself_at_ispdomaindotcom
    and sudo postfix reload

  3. #3
    Just Joined!
    Join Date
    Nov 2009
    Posts
    27
    Do you also have to add this line to main.cf?
    Code:
    virtual_alias_domains = myfristdomain.com,myseconddomain.com

Posting Permissions

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