Mikrotik RB750GR3 IPSec Site-to-Site VPN dyndns issue

Hello,

i have a problem with a site-to-site IPSec vpn connection between a barracuda firewall and a mikrotik RB750GR3.

the barracuda firewall has a static ip address, the mikrotik a dynamic.

If i use public static ip-addresses, the connection works. But if i use the dyndns name for the mikrotik, i get an error “authentification failed” after initiate the tunnel.
I think the problem is in ph2, because the log says that IPSec-SA etablished and after that it process a payload and it kills the IPSec connection after that with the error.

Mikrotik has version 6.46.4

regards