How to disable Email subaddresses

Bobby_I

Registered
Jun 1, 2017
2
1
3
BG
cPanel Access Level
Root Administrator
Hey everyone,

I know that since WHM 58.00 Email subaddresses is supported.

This feature, also known as plus addressing, allows senders to route a message directly to the folder of a mailbox.

Email subaddresses use the [email protected] format, where username represents the username of the mailbox and folder represents the folder's name.

I know that in many cases this could be useful, but at the moment it is causing a lot of issues for me.

Does anyone know how I could go ahead and disable this on my cPanel server?

Thanks
 

Floyd R Turbo

Member
Jul 30, 2015
18
0
1
West Des Moines, IA
cPanel Access Level
Root Administrator
Yeah this is totally screwing up my Xenforo automated email bounce handling system because all the outbound emails use VERP so they have a + sign in them, cPanel thinks these are subaddresses and sticks them inside a 2 or 3 level subfolder structure that I don't see unless I dig for it.

I go here

bounce1.JPG

Looks like there are no bounces. It's looked like this for a while actually.

so...I click here

bounce2.JPG

And look at that. hundreds of bounces that my forum is not taking into account

bounce3.JPG


Big, big screw up. How could you guys implement this feature and make it work like this without the ability to disable it.

This is ridiculous. I've been nagging my web admin for a month about this.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hi @Floyd R Turbo,

One workaround is to set "lda_mailbox_autocreate" to "No" in the Dovecot configuration file. This will still result in the delivery of the message to the plus address, but it won't automatically create the separate mailboxes. We document how to customize Dovecot under the "Add Dovecot Options" section at:

Mailserver Configuration - Version 68 Documentation - cPanel Documentation

Let us know if this helps.

Thank you.
 

Floyd R Turbo

Member
Jul 30, 2015
18
0
1
West Des Moines, IA
cPanel Access Level
Root Administrator
I can't see that link

sorry, I can see it...I couldn't see some similar ones that were trying to link to a developer site, there was a whole mess with HTTPS errors getting thrown on me, I think I made an exception somewhere along the line
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
sorry, I can see it...I couldn't see some similar ones that were trying to link to a developer site, there was a whole mess with HTTPS errors getting thrown on me, I think I made an exception somewhere along the line
The documentation website is currently under maintenance. That issue should be cleared up once the maintenance is complete.

Thank you.
 

Floyd R Turbo

Member
Jul 30, 2015
18
0
1
West Des Moines, IA
cPanel Access Level
Root Administrator
@cPanelMichael

Can't see that GUI interface in my WHM, I have no idea what all those steps are. I have a VPS + root access

Can't I just SSH into the server and go to /var/cpanel/conf/dovecot and use nano to edit the file "main" and add the line:

lmtp_save_to_detail_mailbox: 'no';

^^this should disable subaddressing completely I think, for all domains on that VPS, right?

The other option is to do the same to that "main" file with this line:

lda_mailbox_autocreate: 'no';

which I think will just stop the file folder from being created.

Then once I make this change run /scripts/builddovecotconf and the configuration file will be updated, correct?

Then restart the Dovecot mail server /scripts/restartsrv_dovecot command. correct?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463