Forwarding mail to a new mail server

Discussion in 'Installation/Configuration' started by [email protected], May 4, 2008.

  1. james@thereidsonline.com

    [email protected] New Member

    Hi,

    I've been using ISPConfig for some time (couple of years) and have quite a few users and an even larger number of email accounts.

    I have a need to use a separate email server to the one that comes with ISPConfig.

    I've built the new server, and am at the point where it is ready for testing.

    I would like to be able to send a copy of all emails that are currently being delivered to the ISPConfig Server to my new server (ie keep them on the existing server for now (just in case anything goes wrong!) and copy to the new server.)

    I've looked at the advanced user settings in ISPConfig, and have reconfigured one user so that it is forwarded to [email protected] with a tick in the "keep copy" box.

    I've also set up a user called [email protected] on my new server.

    However, what I can't figure out is how to handle the DNS.

    I've set newserver.com up in my host file (on the ISPConfig server), but I am getting the following postfix error:
    I don't own newserver.com so I don't think I can set up any proper authoritive DNS for it???

    I *think* I need to set something up in the postfix transport file to achieve what I want, but am not quite sure!

    Also... what I am trying to do is only required as an interim measure for testing. Once I've got everything ready I would change my existing MX records to point to my new server.

    Thanks!
    James.
     
  2. gauthier

    gauthier New Member

    Related question

    Hi, I am new with ISPConfig so I cannot answer James, sorry.

    But I have a related question. I am trying to move from server A to server B. The thread "Moving ISPConfig" (http://www.howtoforge.com/forums/showthread.php?t=2717) helps me but I finaly decided to make a new instalation of ISPConfig and recreate each web (I suspect my ispconfig database to be corrupted in some way on old server).

    The idea I have is to create manually (using ISPConfig panel) each mail account (each user).

    My question is: how shall I get mail directories and address book for each user and move them to the new server? (If it can be made including password it would be better but not absolutly needed).

    I read in "Moving ISPConfig" thread: "mailboxes are included in www.tar.gz." (this means it is included in the /home/www directory in my case, /var/www directory).

    I tried to create users on the new server with the same name than in old one, and I replaced the directory /var/www/webxx/user/username/ with the same directory from old server.... it does not work.

    Any help would be apreaciated.

    Thanks
     
  3. falko

    falko Super Moderator Howtoforge Staff

    You could add newserver.com (together with the right IP address) to /etc/hosts on the old server.
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Please open a new thread for this because otherwise this one will become too confusing.
     
  5. james@thereidsonline.com

    [email protected] New Member

    Hi Falko,

    I tried adding newserver.com to my hosts file, but this did not help - postfix is looking for an mx record (I *think* it might be antispam software at work???) - see error message in my original message.

    James.
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Please run
    Code:
    postconf -e 'smtp_host_lookup = dns, native'
    /etc/init.d/postfix restart
     

Share This Page