IMAP folder mapping

I have the following issue, the local Junk folder is trying to map to a junk folder in the server. The server doesn’t have that folder is uses spam instead.

I am not allowing the client to make the folder since we are running server side filters in the spam folders to train our mail servers. Is it possible to map the clients Junk folder to the spam folder in the server? I cant find any way of mapping local folders to different servers in the server.