We help IT Professionals succeed at work.

too many bounced emails

cortecds
cortecds asked
on
Medium Priority
187 Views
Last Modified: 2010-04-20
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!
Comment
Watch Question

Sam PanwarSr. Server Administrator

Commented:
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

Author

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 Administrator

Commented:
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.

Author

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 Administrator

Commented:
Hi,

contect to your Hosting company may be problem from these side

Commented:

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

Author

Commented:
It is a perl script.
Sam PanwarSr. Server Administrator

Commented:
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 Administrator

Commented:
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

Author

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.
Commented:

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)

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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!
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.