Duplicate emails question

Status
Not open for further replies.

aitp/nadmin

Member
May 11, 2019
38
2
8
Hi Community,

I'm seeing multiple fax2email emails being sent for single fax items with only one CDR. Sometimes up to ~10 duplicates arrive at the destination mailboxes. I see the duplicate emails in the MUA which shows the copies sent from the MTA. Is there any place that someone would recommend I go to hunt this issue down? Thanks in advance for your help and guidance!

respectfully,

aitp/nadmin
 
Feb 5, 2021
52
4
8
54
Hi, this also happens to me. I just sent a fax test to FAXTOY and it was sent 16 times. I also received 16 confirmations. I am running 4.5.19

Thanks
 

Attachments

  • Confirmation emails received.png
    Confirmation emails received.png
    37.4 KB · Views: 5
  • Faxes to Faxtoy.png
    Faxes to Faxtoy.png
    136.9 KB · Views: 3
Feb 5, 2021
52
4
8
54
Hello @markjcrane, I have an idea of what the multiple confirmation emails is related to.

After making tests in 3 servers with versions:

Version 4.4.3 (where only one FaxServer is running). This one is fine, it shows only 1 confirmation email.
Version 4.5.19 (where I have several FaxServers running). The one that shows multiple confirmation emails
Version 4.5.23 (where only one FaxServer is running). This one is also fine, it shows only 1 confirmation email.

So when I had 9 cron jobs for server 4.5.19 as shown here:

* * * * * root wget --no-check-certificate --delete-after https://xxx.atmydomain.net/app/fax/fax_emails.php
* * * * * root wget --no-check-certificate --delete-after https://xxx.atmydomain.net/app/fax/fax_emails.php
* * * * * root wget --no-check-certificate --delete-after https://xxx.atmydomain.net/app/fax/fax_emails.php
* * * * * root wget --no-check-certificate --delete-after https://xxx.atmydomain.net/app/fax/fax_emails.php
* * * * * root wget --no-check-certificate --delete-after https://xxx.atmydomain.net/app/fax/fax_emails.php
* * * * * root wget --no-check-certificate --delete-after https://xxx.atmydomain.net/app/fax/fax_emails.php
* * * * * root wget --no-check-certificate --delete-after https://xxx.atmydomain.net/app/fax/fax_emails.php
* * * * * root wget --no-check-certificate --delete-after https://xxx.atmydomain.net/app/fax/fax_emails.php

And I sent a fax, the fax arrived 16 times as I showed in my post above, and I also got 16 confirmations (also shown in the post above).

So today, I deleted one of the cron jobs, so I left 8 cron jobs. I sent the same fax as of yesterday, and I got 12 confirmation emails.
I then deleted one more cron job, so I left 7 cron jobs. I sent the same fax, and I got 11 confirmation emails.
I then deleted one more cron job, so I left 6 cron jobs. I sent the same fax, and I got 10 confirmation emails.
I then added the 2 cron jobs I delete, so I left again 8 cron jobs. I sent the same fax, and I got 12 confirmation emails.

So its directly related to the number of cron jobs. So should I create different script perhaps inside cron.daily directory or any other suggestion?

Thanks in advance!
 

Attachments

  • Fax sent part II.png
    Fax sent part II.png
    84.5 KB · Views: 6
  • Fax sent part I.png
    Fax sent part I.png
    91.1 KB · Views: 4
Feb 5, 2021
52
4
8
54
Hello @aitp/nadmin , I finally was able to solve this.

Basically it was a mix of several mistakes.

1) I had the cron jobs running under cron.d and cron.daily folder.
2) I realize that there were programmed not only with root but also with other user, and
3) I was thinking that I had to create one crone sentence for each domain I have, which makes no sense.

With this command you can see the cron jobs created by other users:

To List other user crontab entries:

$ crontab -u username -l

I hope this helps you.
 
Feb 5, 2021
52
4
8
54
I guess it depends on what account was logged in when the cron job was created. You can see a list of users with this command: awk -F':' '{ print $1}' /etc/passwd
 
Feb 5, 2021
52
4
8
54
You can also execute /var/log cat syslog and it will show you the cron jobs and it shows which users is running it
 
Status
Not open for further replies.