It has been discovered that the company mail server is configured as an open relay. Which of the following actions would help prevent the mail server from being used as an open relay while maintaining the possibility to receive company mails? (Choose two.)

A. Restrict Postfix to only accept e-mail for domains hosted on this server
B. Configure Dovecot to support IMAP connectivity
C. Configure netfilter to not permit port 25 traffic on the public network
D. Restrict Postfix to only relay outbound SMTP from the internal network
E. Upgrade the mailbox format from mbox to maildir