Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have one postfix+cyrusIMAP mail server in the production environment, now I need to migrate it to a new hardware platform. I've got the new server set up (ubuntu 10.04.2 LTS, postfix+cyrusIMAP), but how can I test it without messing with the current mail server? It's going to be on the same domain that the company is using.

share|improve this question
add comment

1 Answer

You can send emails from a machine using some kind of fake DNS (or special transport map entry). So your mail client will believe this is the real mail server (you do not have to modify the real externally visible MX record yet).

You can do the same with connecting to the new machine with telnet or netcat and sending some test mail by hand and checking later if they arrived fine.

There is a parameter in postfix soft_bounce you can switch on just before you modify your MX records. This way postfix will never bounce or reject a mail. (Do not keep this option for too long as real bounce notifications will be delayed.)

In a migration scenario you want to either shut down SMTP on port 25 (after modifying the MX record) on the old server or use some mechanism (e.g. content_filter transport) to redirect the mails hitting the old server to the new one.

share|improve this answer
    
Thanks cstamas. –  tw79 Jun 11 '11 at 7:26
    
Thanks cstamas. I'll play with the fake DNS , sounds fun! I'll report back what I find :) –  tw79 Jun 11 '11 at 7:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.