Results 1 to 4 of 4

Thread: email forwarding question?

  1. #1
    Join Date
    Nov 2005
    Location
    Oklahoma
    Beans
    64
    Distro
    Ubuntu 8.04 Hardy Heron

    Question email forwarding question?

    Hi,

    I currently have a linux machine running SMTP and Dovecot for an email server.

    I'm looking at replacing this server with an Ubuntu/Zimbra machine.

    I have the Ubuntu/Zimbra machine all configured for the same domain as the original mail server.

    Is there a way that I can set my original mail server to relay only a specific address to the new server for testing?

    i.e. user1@domain.com mx record points to server1.domain.com. can I have server1.domain.com relay messages for user1 to newzimbra.domain.com while not relaying all of the other mail for domain.com?


    Thanks in advance,

    Matt

  2. #2
    Join Date
    Feb 2010
    Location
    Tehran
    Beans
    26
    Distro
    Ubuntu

    Re: email forwarding question?

    you can forward an email address to other address just by adding .forward in user home directory.
    therefor if you use different temporary address for your new mail server you can forward the mails toward the new mail server.
    im not sure but i think it is impossible to use rely based on the users.
    if you find some solution let us know

  3. #3
    Join Date
    Sep 2007
    Beans
    49

    Re: email forwarding question?


  4. #4
    Join Date
    Nov 2005
    Location
    Oklahoma
    Beans
    64
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: email forwarding question?

    thanks for the responses.

    I don't know what I was thinking.. putting both servers as the same domain won't work for testing for me because I cant send mail from the zimbra server to the main server as the zimbra server thinks everything for its domain should be internal to that server..

    I'm going to use a test domain for the testing on the zimbra server and use the .forward file on the main server to copy mail over there..

    I did find out that in the .forward file you can escape the same email address to keep it from recursively looping

    ie for mail account user1@mainserver.com .forward would contain

    Code:
    \user1
    user1@testserver.com
    this keeps it from reading the .forward file the second time around

Bookmarks

Posting Permissions

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