Run script on other container

I’ve a docker server with two containers: Postfix and Nginx.

The Nginx container runs a webbased tool where users can create their mailboxes. So I need to create a mailbox on the other container.

What’s the best solution for this? I tried it with SSH from Nginx to the Docker node, but it isn’t the best way. Any suggestions? Thanks alot!