CFMail Respool issue, Resend Undelivered Mails
Hi,
The issue I have is that I have a bunch of emails that were undelivered because the password of the email addresse used for CFMail was changed. I was not aware of the problem for a day or so. So, there a bunch of undelivered emails. I am able to update the password and CFMail on webpages are now working.
S
I would like to resend the undelievered mails.
From the Administration portal, Server Settings, Mail section, I can "respool" undelivered mails.
When I "respool" an undelivered mail, it will disappear from the listing, but will reappear a few minutes later.
I tried manually moving an undelivered mail from the "Undelivr" folder to the "Spool" folder. The .cfmail file will move back to "Undelivr" folder a few minutes later.
Opening up one of the .cfmail file, I saw that there is a password on the file.
So, I found correct "password" from the .cfmail file in the Spool folder by triggering a webpage that uses CFMail to send email and open up the .cfmail file in the Spool folder before the .cfmail went away.

I replaced the password in the Password line in one of the undelivered .cfmail file, saved it (now with a new modified time) and moved it to Spool folder.
Most of the times, the modified .cfmail will go back to "Undeliver" folder.
The entry on the mail.log is "Error","scheduler-2","10/30/25","07:10:34","","javax.mail.MessagingException"
Entry on mailsent.log is
"Information","scheduler-2","10/30/25","07:10:34","","Moved undelivered mail: Mail4438428978218712914.cfmail to C:\ColdFusion2021_2\cfusion/Mail/Undelivr directory"
Entry on exception.log is
