too many bounced emails

Hi,
I have a dedicated server and have unix/cpanel on it.
I have over 40,000 members of my site and when I email them I get a lot of bounced back emails.
I have told cpanel to filter and emails with certain subject lines.
But it doesn't seem to work.
I am not sure if it is not working because the emails come back to the account@servername
and not back to the webmaster@domainname

But the filter will not work.
I am sure there has to be a way to filter these out but I am at a loss right now.
Any help would be great.

Thanks!
cortecdsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sam PanwarSr. Server AdministratorCommented:
Can you provide me the bounce back message which you are getting or header of the mails.

I am working in hosting company and also use the cpanel and whm so I interested to solve your problem.

You can also check the email address through the following site which is tell everthing
www.dnsstuff.com
cortecdsAuthor Commented:
Mainly any email with a subject line of: Mail delivery failed: returning message to sender
I would like deleted.
I have my pop3 email program (on my pc) filtering all of these to the trash but it fills up my local trash bin.
I do not want to submit a full header here in a public forum for privacy issues.
Thanks!
Sam PanwarSr. Server AdministratorCommented:
ok

Ok as you like ....

but mail delivery failure depends on many reason.
1. on your mailbox quota if full then
2. USer authentication
3. connection
4. your file attachement type which is not allowed on server
5. Receipient address wrong I think address in not correct
6.the mx record and A record of recepient is incorrect
7.and receipient filter
8. you can also try woith another email id and check that address.
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

cortecdsAuthor Commented:
I understand all of that, and none of that really matters to me why they are getting bounced.
I get thousands of emails that say:
Mail delivery failed: returning message to sender

So I need to figure out why they are not being filtered in cpanel or figure out a better way to filter them.
Currently it is done on my local pc in Thunderbird.
But if my pc is off - then when I connect it has to download thousands of emails.
What I am trying to do is filter them before I have to download them.

Thanks.
Sam PanwarSr. Server AdministratorCommented:
Hi,

contect to your Hosting company may be problem from these side
jglyonsCommented:

You don't say what the mailer program is but it sounds like it's not setting the correct from/return email address.

If the mailing list is being created using php then you need to use the -f parameter in the mail function.

example 3 on the php site explains it's use.
http://uk.php.net/manual/en/function.mail.php

cortecdsAuthor Commented:
It is a perl script.
Sam PanwarSr. Server AdministratorCommented:
Hi,

The possible reason of this is If you are trying to send a bulk of mail or group of mail at a time then the mail server not accept this due to the configuration like We are allowed to send  25 receipient at a time .so its depend on the mail server so tell to your hosting company if there any restriction about i t
Sam PanwarSr. Server AdministratorCommented:
Hi,

The possible reason of this is If you are trying to send a bulk of mail or group of mail at a time then the mail server not accept this due to the configuration like We are allowed to send  25 receipient at a time .so its depend on the mail server so tell to your hosting company if there any restriction about i t
cortecdsAuthor Commented:
Hi,
You missed the point, there are no restrictions.
The problem is when you email a bunch of registered members you get some with their email account full or it is an old email account.  So it bounces it back to me.  I don't want all of them downloading I want to delete the bounce message at the server.
Make sence?
Thanks for your help.
jglyonsCommented:

OK, to start with the reply address is not set correctly so you can't begin to filter the mail.

Get the perl script to use the -f feature of sendmail so that it passes a proper From address to sendmail rather than the server default.

May also be worth looking at using X-Bounce headers as well. (Not sure how many mail servers use them though)

You need to direct the new address to a valid user on your box, (use aliases or virtusertable)
You can then add a .procmailrc file to that pop user and set it to filter out messages that have Rejected, etc in the subject so that you'll still have the ability to see mails that users have replied to.  (Of course if the don't want to see any mail to the reply/bounce address just set to target to /dev/null within aliases/virtusertable)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cortecdsAuthor Commented:
Just a follow up...
This correct answer put me on the right path.
I had to set the -f with something like:
sendmailpath -fmyemail@address.com

By doing that I changed not the reply email address but the Return-path

Thanks for your help everyone!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.