[Case 96881] Quota notification emails bouncing from yahoo

ethical

Well-Known Member
Apr 7, 2009
97
8
58
ok so i noticed that when users reach an email quota or disk quota limit the emails are bouncing from some providers likely because its coming from their OWN email address and thus yahoo sees that the message is not coming from yahoo

[email protected]
SMTP error from remote mail server after end of data:
host mta5.am0.yahoodns.net [66.196.118.34]: 554 5.7.9 Message not accepted for policy reasons. See http://postmaster.yahoo.com/errors/postmaster-28.html

headers:

Return-path: <[email protected]>
Received: from root by myserver.com with local (Exim 4.82)
(envelope-from <[email protected]>)
id 1WXPt4-001amN-6t
for [email protected]; Tue, 08 Apr 2014 02:52:02 -0400
To: [email protected]
From: [email protected]
Subject: Mailbox Size Warning for Mail Accounts
Message-Id: <[email protected]>
Date: Tue, 08 Apr 2014 02:52:02 -0400

how can this be updated so the email comes from a myserver email address such as [email protected]??

lots of my users that do get the message think is a phishing or spam message as well! how can we customize it?

Thanks!

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

Could you open a support ticket using the link in my signature so we can access your server and take a closer look? You can post the ticket number here so we can update this thread with the outcome.

Thank you.
 

sneader

Well-Known Member
Aug 21, 2003
1,195
68
178
La Crosse, WI
cPanel Access Level
Root Administrator
cPanel Michael. I'm seeing this too. I don't want to bombard you with tickets if one has already been opened on this. Can you let me know if I should open one too?

FYI, the problem is that Yahoo recently started blocking all mail that shows a yahoo.com email address as the FROM address, if it didn't actually come from Yahoo.com.

We are ALSO seeing this problem with Mailman mailing lists. When a yahoo.com user sends a message to a Mailman list, under the default config Mailman shows the yahoo.com email address in the FROM field... but any yahoo.com recipient will never get the message because it will be blocked (and the bounces will cause the yahoo.com subscribers to be unsubscribed).

Honestly, I really have always disliked cPanel setting the FROM address for these alerts to be the same as the TO address. Now is the time to fix this. :)

- Scott
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
The original poster has not submitted a ticket from what I can tell. Note that a ticket for Mailman is not required. The issue with Mailman is addressed on this thread:

Yahoo DMARC - Mailman

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
sorry i got busy! i've entered a ticket now.
Could you let us know the ticket number so we can update this thread with the outcome?

Thanks.
 

ethical

Well-Known Member
Apr 7, 2009
97
8
58
Could you let us know the ticket number so we can update this thread with the outcome?

Thanks.
tickets ID# 4838335

basically says its logged as an item to fix but you guys dont think its critical or important so no telling how long it will take. if more people log tickets about the issue they will raise the importance of trying to fix it :)

also to customize the emails, this is actually possible after digging in the requests forum:

You are currently able to modify the templates used for the notification emails. The templates for email quota and disk space can be found at the following locations:

/usr/local/cpanel/src/templates/mainacct_emailquota_notifylist/main.default

/usr/local/cpanel/src/templates/mainacct_disk_warning/main.default

For more information about these templates I'd check out our documentation on this at
Notification Templates
 

sneader

Well-Known Member
Aug 21, 2003
1,195
68
178
La Crosse, WI
cPanel Access Level
Root Administrator
Thanks for the info, ethical. It would seem we should immediately modify our email templates to use a FROM address that is from our "support" email address, so that these emails will be delivered to Yahoo and AOL uses (and any other domain that starts to use strict DMARC settings).

HOWEVER... the cPanel documentation on editing these email notification templates says we should not mess with the TO and FROM tags, which are enclosed in the [% %] tags:

Warning: You should only modify the text in the template. Do not change information in the [% %] tags. The template will not function properly without this information present. For more information on these tags, visit the Template Toolkit documentation.
The template looks like this:

To: [% to %]
[% END -%]
From: [% from %]


Can't we simply do this??

To: [% to %]
[% END -%]
From: [email protected]


...or something like that? Anybody done this before? What is the actual format? Do I need brackets like <[email protected]>?

- Scott
 

ethical

Well-Known Member
Apr 7, 2009
97
8
58
Thanks for the info, ethical. It would seem we should immediately modify our email templates to use a FROM address that is from our "support" email address, so that these emails will be delivered to Yahoo and AOL uses (and any other domain that starts to use strict DMARC settings).

HOWEVER... the cPanel documentation on editing these email notification templates says we should not mess with the TO and FROM tags, which are enclosed in the [% %] tags:



The template looks like this:

To: [% to %]
[% END -%]
From: [% from %]


Can't we simply do this??

To: [% to %]
[% END -%]
From: [email protected]


...or something like that? Anybody done this before? What is the actual format? Do I need brackets like <[email protected]>?

- Scott
hmm thats a good idea, support would that work?
 

sneader

Well-Known Member
Aug 21, 2003
1,195
68
178
La Crosse, WI
cPanel Access Level
Root Administrator
...tumbleweeds...

I guess I will have to open a ticket about this.

UPDATE: Ticket opened. Ticket #4880735

- Scott
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Internal case number 96881 is open to address the issue where the "FROM" address with quota notifications is incorrectly using the "TO" address. Please monitor our change log for this case number to determine when a resolution has been implemented. In the meantime, you can manually modify the disk space notification template so that the "FROM" entry is hard-coded with an actual email account. The disk space warning email templates are located within the following directory:

/usr/local/cpanel/src/templates/

You will need to copy the directory of the specific template you want to edit to "/var/cpanel/templates/" to avoid changes being overwritten by cPanel updates. EX:

Code:
cp -a /usr/local/cpanel/src/templates/mainacct_disk_warning /var/cpanel/templates/
In this example, you would then edit the "main.default" file within "/var/cpanel/templates/mainacct_disk_warning". Before:

Code:
From: [% from %]
After:

Code:
Thank you.
 

JamesOakley

Well-Known Member
Apr 15, 2011
83
2
58
cPanel Access Level
Root Administrator
I've just started to get this same problem. Before opening a new forum thread, I searched, and found this. I see it's 3 months since this thread was last updated - has there been any progress on this?
 

ethical

Well-Known Member
Apr 7, 2009
97
8
58
I've just started to get this same problem. Before opening a new forum thread, I searched, and found this. I see it's 3 months since this thread was last updated - has there been any progress on this?
if you make the edits in the post the problem should stop. we will likely be waiting some time for cpanel to fix this themselves.
 

sneader

Well-Known Member
Aug 21, 2003
1,195
68
178
La Crosse, WI
cPanel Access Level
Root Administrator
Agreed with ethical... I implemented new templates and the problem is resolved. As a bonus, the templates look a whole lot better than the originals. I spent time thinking about what I want to say to customers when they are over quota, and how they can best handle the situation, and so it was an all-around win-win!

- Scott
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
To update, our developers are still working on this case, but there is still no specific time frame available on when a resolution will be pushed out.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Internal case number 96881 was resolved and a resolution was released several months ago. Could you verify which version of cPanel is installed on your system? Also, note the example you provided shows that you used parenthesis, which does not match the example we provided.

Thank you.
 

nwd

Member
Feb 28, 2014
15
0
51
cPanel Access Level
Root Administrator
Hello, version 11.48.3.0. I use automatic updates so it should always be at the latest. Yes, the example was not the best. Below is what I intended to imply as what I have entered.
Code:
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
To clarify, are you experiencing the issue reported originally in this thread, or is your only issue that you can't manually modify the file?

Thank you.
 

nwd

Member
Feb 28, 2014
15
0
51
cPanel Access Level
Root Administrator
To clarify, are you experiencing the issue reported originally in this thread, or is your only issue that you can't manually modify the file?

Thank you.
I can modify the file just fine and that modified message gets send just fine. But when the notification is received on the client side, the FROM still shows it came from cpanel for accountname (clientdomainname.com) <[email protected]> .

I am expecting this FROM address to display what I have entered
[email protected]
Or am i expecting this work differently then what is being described? I have several Cpanel servers and they both behave the same.
 
Last edited: