I've tried the solution with killing the proccess and start it again. But it doesn't work.
The strange thing is that it transfers one email and then get stuck. So the connection is established correct.
It looks like it never print anything to the log, it just stuck in the migration proccess. Only if I cancel the proccess it print this error:
"Restore command: "C:\Program Files...