Mail management with Cloudflare

Old Nick

Well-known member
This is how i set mail in XenForo and Cloudflare :
  • Cloudflare :
  • XenForo :
    • Default email address : XYZ@permaforo.net
    • Contact email address : XYZ@permaforo.net
    • Email transport method : PHP built-in mail system
    • DKIM email authentication : XenForo is signing your outgoing emails with DKIM (I entered the settings in CF)
Well, all seems to works fine, contact form works fine, test email works fine, following content with email works fine...
So now i used a "virtual" email address XYZ@permaforo.net for all emails sent/received to/from my forum permaforo.net.

So I didn't even create an email address from my domain name via my registar.
But it all seems so simple to me, am I forgetting something, what are the disadvantages for such a configuration? I would like to point out that my forum is very inactive, so there are very few emails sent, and even fewer received.

Thanks.
 
You probably want to set up a separate mailbox that you can access via IMAP (and is used for only this purpose) and then set the bounced email address and automated bounced email handler in the XF Email options.

Hint: the bounced email address really needs to be part of your domain - so set up another cloudflare alias for it.
 
Can i access to "virtual" email created in CF via IMAP, what are the settings?
Sorry, i understand nothing in this matter...

(Sorry for the ping-pong between this thread and the sparkpost thread !)
 
Can i access to "virtual" email created in CF via IMAP, what are the settings?
Sorry, i understand nothing in this matter...

No - you need to set up a new mailbox on Gmail, Outlook, iCloud, or somewhere else and then set up a virtual email in Cloudflare that redirects all mail to that mailbox. Then you set up XF to retrieve bounced emails via IMAP from that mailbox.
 
Ok, so i will use the IMAP credentials from Gmail (for example) here, correct?

1728044922374.webp

But this field is filled with the virtual email address set in CF?

1728044978966.webp


Assuming i set a routing rules from the virtual CF address created for boucing to the Gmail address
 
  • Like
Reactions: Sim
And now the question that kills: What is the point of getting bounced emails in a mailbox?

So that the user accounts you're sending to which are bouncing, are automatically disabled to prevent you from continually trying to send them emails - which is one of the signals that will get your IP address and domain blocked from sending emails by various email providers.

It aids with mail deliverability.
 
:unsure:
Code:
Laminas\Mail\Exception\RuntimeException: Bounce connection error: cannot login, user or password wrong src/XF/Mail/Storage/Imap.php:35
Code:
#0 src/XF/EmailBounce/Processor.php(262): XF\Mail\Storage\Imap::setupFromHandler(Array)
#1 src/XF/SubContainer/Bounce.php(18): XF\EmailBounce\Processor::getDefaultBounceHandlerStorage(Object(XF\Pub\App))
#2 src/XF/Container.php(33): XF\SubContainer\Bounce->XF\SubContainer\{closure}(Object(XF\Container))
#3 src/XF/SubContainer/Bounce.php(46): XF\Container->offsetGet('storage')
#4 src/XF/Job/EmailBounce.php(20): XF\SubContainer\Bounce->storage()
#5 src/XF/Job/Manager.php(275): XF\Job\EmailBounce->run(8)
#6 src/XF/Job/Manager.php(205): XF\Job\Manager->runJobInternal(Array, 8)
#7 src/XF/Job/Manager.php(89): XF\Job\Manager->runJobEntry(Array, 8)
#8 job.php(46): XF\Job\Manager->runQueue(false, 8)
#9 {main}
Code:
array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(52) "https://permaforo.net/admin.php?cron/emailBounce/run"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

I copy/paste the password so it's good, i guess my previous message could explain this error.
 
Back
Top Bottom