We have a apex app that sends out bulk emails and we are running into a performance issue with how long it takes for messages to get dequeued from the apex_mail_queue and sent to the SMTP server. We are seeing the db take hours to a full business day to send out a bulk message that was sent to 10k people.
What can we do to tweak the dequeue to SMTP process of apex mail?