Skip to main content

Filter action Discard message not working

Comments

7 comments

  • cPRex Jurassic Moderator
    Hey there! If you want to apply the filter to all the email accounts on the domain, you could use the Global Filters option in cPanel to do that. If you set the Action value to "Discard" it will just be deleted from the system completely. Here is a screenshot showing this, and I'd expect this to do what you're looking for.
    0
  • spilly80
    No. I do not need a global filter. I want a filter to act only on a single email address IF message filter TRUE THEN Forward it to external email address Discard the message Stop Processing END_IF The filter log I posted above shows Save message to: /dev/null 0660 Is "0660" an error code? What does 0660 mean? Is sending the message to /dev/null permitted or not? The documentation says This [forwarding] action does not retain a copy of the message in the mailbox But in fact a copy of the message IS left in the mailbox. Am I missing a point? or is the documentation misleading / wrong?
    0
  • cPRex Jurassic Moderator
    The 660 are the permissions on most files that get sent to /dev/null. Let me do a bit more testing on this and I'll get back with you!
    0
  • cPRex Jurassic Moderator
    I wasn't able to reproduce this issue on my end, as the redirected message was not saved in the original destination's inbox. I've attached a screenshot showing the configuration I used. Does this look like what you are trying to set up?
    0
  • spilly80
    Yes, that's just what I was trying to do If it helps, I can do screenshots of the actual filter and the results I see in Inbox The version in use is definitely cPanel 110.0.10 Surely a filter script would have Owner rights over an email message Inbox? - Years ago I can recall using chmod and redirecting output to the bit bucket in shell scripts on a unix system. Our local parish church has a domain with a few email addresses and a (very simple) website paid for by an ex-member of the congregation hosted on (I think) an Apache server. My status on this system is that of a normal end user of the email service I don't even know how to contact sysadmin without asking others. I'm hoping this forum will either fix my filter problem or confirm I need to contact sysadmin somehow. I greatly appreciate your time & interest in this issue Spilly80
    0
  • cPRex Jurassic Moderator
    If your rules look like mine and the filter isn't working as expected, you'd have to reach out to the server admin so they could do some additional testing, as this is one of those things that "should just work" inside the cPanel interface.
    0
  • spilly80
    Thanks. Will dig about more and report back. Spilly80 (This will have to wait as we're having a late holiday next week)
    0

Please sign in to leave a comment.