You can't listen on the same port with multiple applications. So if there's already an application on the host listening on port 25, you can either stop that application, or configure your container to listen on a different host port, e.g.:
run -ti -p 2525:25 container
That causes the port to be mapped from the host port 2525 to the container port 25. If you don't need to receive mail from the container, you can remove this port mapping entirely, that will still allow you to send outbound messages.
If you don't know what is using port 25 on the host, you can look this up with a netstat command:
sudo netstat -lntp
Note that the sudo is required if you want to see the process that is listening on the port.