LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-01-2011, 09:49 PM   #1
countrydj
Member
 
Registered: Jun 2009
Location: Preston, England
Distribution: Centos 6
Posts: 127

Rep: Reputation: 1
mail program sending multiple emails


I have a mass mail program that sends an email to a mail list.
The program, which I bought, is written in php and the mail list is stored in mysql.
My list consists of around 2000 addresses.
When I send an email out it sends multiple copies to the same address.

I have tested this by creating 2100 email addresses and sending a test email to the list.
I have had varying results ranging from 2400 to 5840 emails being received when there is only 2100 addresses in the list.

I have asked the programmer about this and he says that there is nothing in the program that can do this and nobody else has ever complained about it.

Has anybody any idea what might be happening ???
 
Old 09-02-2011, 01:08 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 18,116

Rep: Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668Reputation: 2668
Step by step it...

0. turn on max logging debugging
1. clean out DB and check its really clean ie from SQL cmd line; don't use a custom gui.
2. send an email; should get nothing out; check any/all logfiles
3. create 5 email entries; again, use SQL to check that's all that have been created in DB.
send an email; do you get <5 , =5 or >5 emails. if not =5, check any all logs; which addrs are repeated, why? any 'wildcard' or funny/invisible ctrl chars, extra spaces not being trimmed off?
4.personally, I'd want to see the emailer code; the programmer could be wrong....
 
Old 09-02-2011, 12:24 PM   #3
countrydj
Member
 
Registered: Jun 2009
Location: Preston, England
Distribution: Centos 6
Posts: 127

Original Poster
Rep: Reputation: 1
Hi chrism01...

Many thanks for taking the time and trouble to try and help me.
I am utterly confused with this.
All my test give varying results.

However, I need help with trying to follow your suggestions:

Quote:
0. turn on max logging debugging
I don't know how to do this.
Quote:
1. clean out DB and check its really clean ie from SQL cmd line; don't use a custom gui.
I don't know how to do this. I use phpmyadmin to service the DBs.

I did delete all the email addresses from the database and then sent an email to the list.
Nothing was sent.
I then created 5 email addresses, as you suggested, and just 5 were sent and received.

As a matter of fact I did this test with different numbers of email addresses.
I found that with 100 addresses, 5 tests, they all went through OK.
When I tested with 150 emails I got:
1. 150 sent 150 received
2. 150 sent 180 received
3. 150 sent 150 received
4. 150 sent 216 received
5. 150 sent 150 received
6. 150 sent 210 received

I cannot see any pattern in this at all.

This is a sample of my maillog:
Quote:
Sep 2 15:50:21 blackvelvet sendmail[13539]: p82EoKaN013539: from=<test-bounce@in-uk.co.uk>, size=811, class=0, nrcpts=1, msgid=<1314975019.4e60ed2b182ff@swift.generated>, proto=ESMTP, daemon=MTA, relay=blackvelvet.gvl99.co.uk [88.97.199.145]

Sep 2 15:50:22 blackvelvet sendmail[13540]: p82EoKaN013539: to=<67@in-uk.co.uk>, ctladdr=<test-bounce@in-uk.co.uk> (548/502), delay=00:00:01, xdelay=00:00:01, mailer=local, pri=31014, dsn=2.0.0, stat=Sent




Sep 2 15:50:24 blackvelvet sendmail[13542]: p82EoNoM013542: from=<test-bounce@in-uk.co.uk>, size=811, class=0, nrcpts=1, msgid=<1314975021.4e60ed2ddf22d@swift.generated>, proto=ESMTP, daemon=MTA, relay=blackvelvet.gvl99.co.uk [88.97.199.145]

Sep 2 15:50:24 blackvelvet sendmail[13543]: p82EoNoM013542: to=<68@in-uk.co.uk>, ctladdr=<test-bounce@in-uk.co.uk> (548/502), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=31014, dsn=2.0.0, stat=Sent
I don't understand why it is showing from=<test-bounce@in-uk.co.uk> in the log files. When it gets to me it shows from jc@ukzone.net

I was going to attach the program for you to look at but it is 650Kb and as such is too large to attach.
If you send me your email address I will sent it to you.

Thanks again for your help. I'm lost...

John C
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple mail sending server jindalarpan Linux - Server 8 06-26-2010 02:46 PM
sendmail is sending unnecessary multiple copies of emails from php form swg1cor14 Linux - Server 1 01-07-2010 09:25 AM
problems with From: header when sending emails from my domain using mail() function mavgh1 Linux - General 5 03-26-2006 03:48 PM
problems with From : header when sending emails with function mail() from my domain mavgh1 Linux - Software 0 03-24-2006 08:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration