Lack of interest Allow use of IMAP folders for bounce and unsubscribe emails

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

rebelde

Active member
I suggest adding an IMAP "folder" config option for "bounces" and "unsubscribe" emails to reduce the number of email addresses that we need.

Google is going to start charging many of us $12/month per "user" or email address. I want to get rid of these two:
bounces@mysite.com
unsubscribe@mysite.com

IMAP can download and view individual folders. By default, it accesses the INBOX "folder", but it can also be made to access other folders that the user has set up in the email account.

The laminas library XF uses is set up for folders. Let's use it.
/xenforo/src/vendor/laminas/laminas-mail/src/Protocol/Imap.php
/xenforo/src/vendor/laminas/laminas-mail/src/Storage/Imap.php

To use this,
  • I would change the emails to aliases of another email address (like contact-us@mysite.com)
  • Route the messages to two separate folders /bounces and /unsubscribe

I would like to think that this wouldn't be too difficult to code. An add-on doesn't seem to be possible.

Cheers!
 
Upvote 4
This suggestion has been closed. Votes are no longer accepted.
OK, I'm not sure where to post this, but here are my notes for a workaround. Basically, Google Workspace allows for routing emails to another mail provider.

Code:
steps for bounce handler:
create a Gmail/google account, or other free email address with IMAP
    in Gmail, create filter to not send emails to spam folder
        search for your domain name, choose the "options" icon, "create filter", "Never send to spam", "Create Filter"
    set up 2-factor authentication
        Letter icon in top right corner, Manage your Google Account, 2-step verification
    Security, App passwords, create app password, save it for later
go to https://admin.google.com/ac/apps/gmail/routing
    Add Another Rule
    Give it a name: "route bounced messages to gmail"
    "add"
    address: bounced@your-domain.com
    map to address: bounced-your-domain@gmail.com
    options: I check "Add X-Gm-Original-To header", though probably not necessary
    Save
go to https://admin.google.com/ac/users
    rename bounced@your-domain.com to bounced1@your-domain.com

AdminCP, Options, Email Options
    Bounced email address: leave it the same, bounced@your-domain.com
    automated bounced email handler: IMAP, imap.gmail.com:993, bounced-your-domain@gmail.com, SSL, the app password from before

Test email to bounced@your-domain.com. Make sure it is forwarded to the gmail account
In a few days and every once in a while, make sure that it is working.
For bounces, check the "Email bounce log" in the AdminCP.
In Gmail, click on "All Mail" to see emails that Xenforo archived for you after processing.
When sure, go back and delete bounced1@your-domain.com so Google doesn't charge you.

I just saved you a bunch of money, so like this post or something.
 
Top Bottom