AIX Open Source

 View Only
Expand all | Collapse all

Duplicate emails sent by sendmail

  • 1.  Duplicate emails sent by sendmail

    Posted Fri June 02, 2023 09:35 AM
    Edited by Ayappan P Fri June 02, 2023 01:07 PM

    Hello,

    I am using sendmail-8.17.1-2.aix6.1.ppc.rpm installed on AIX7.2 TL5 SP4.

    This sendmail is configured to relay to "SendGrid", a cloud-based email sending service, and is started with the command line option "-bD -q15m".

    In this setting, two duplicate copies of the same emails are being sent every 15 minutes.

    It seems that not all emails are duplicates, but only when emails are received at the same time as the queue is reprocessed by the "-q15m" startup option.

    May 22 09:33:07 hostname sendmail[23331222]: 34M0NwFM23331222: from=<user@example.com>, size=973, class=100, nrcpts=1, msgid=<1075242962.5500.1684715587580@example.com>, proto=ESMTP, daemon=MTA, relay=hostname [xxx.xxx.xxx.xxx]
    May 22 09:33:08 hostname sendmail[20644166]: 34M0NwFM23331222: to=<user@example2.com>, delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=9223372036854775807, relay=smtp.sendgrid.net [yyy.yyy.yyy.yyy], dsn=2.0.0, stat=Sent (Ok: queued as tXf005-8SA6BbcJChysVxw)
    May 22 09:33:08 hostname sendmail[23790048]: 34M0NwFM23331222: to=<user@example2.com>, delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=9223372036854775807, relay=smtp.sendgrid.net [yyy.yyy.yyy.yyy], dsn=2.0.0, stat=Sent (Ok: queued as QzaB2xmSQySM-y0CkJp3Qg)
     
    May 22 09:48:07 hostname sendmail[16384508]: 34M0Vkjc16384508: from=<user@example.com>, size=933, class=0, nrcpts=1, msgid=<88371538.13986.1684716487809@example.com>, proto=ESMTP, daemon=MTA, relay=hostname [xxx.xxx.xxx.xxx]
    May 22 09:48:08 hostname sendmail[18481460]: 34M0Vkjc16384508: to=<user@example3.com>, delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=120933, relay=smtp.sendgrid.net [yyy.yyy.yyy.yyy], dsn=2.0.0, stat=Sent (Ok: queued as lESQ3tRMQ-Gd7xsPhmr_ZQ)
    May 22 09:48:08 hostname sendmail[20644326]: 34M0Vkjc16384508: to=<user@example3.com>, delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30933, relay=smtp.sendgrid.net [yyy.yyy.yyy.yyy], dsn=2.0.0, stat=Sent (Ok: queued as FigabUfkTZGNFQvyaYCuLg)
     
    May 22 10:03:07 hostname sendmail[23790020]: 34M11KgZ23790020: from=<user@example.com>, size=1001, class=100, nrcpts=1, msgid=<-1692606930.9684.1684717387308@example.com>, proto=ESMTP, daemon=MTA, relay=hostname [xxx.xxx.xxx.xxx]
    May 22 10:03:08 hostname sendmail[25035012]: 34M11KgZ23790020: to=<user@example4.com>, delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=9223372036854775807, relay=smtp.sendgrid.net [yyy.yyy.yyy.yyy], dsn=2.0.0, stat=Sent (Ok: queued as u4VpixeZQm-fdalhh7Ljyw)
    May 22 10:03:08 hostname sendmail[25690534]: 34M11KgZ23790020: to=<user@example4.com>, delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=9223372036854775807, relay=smtp.sendgrid.net [yyy.yyy.yyy.yyy], dsn=2.0.0, stat=Sent (Ok: queued as 4u0kUp7sRwSYnfqf41UZlA)

    Do you know what is causing this issue? Also, is there a solution?

    By the way, I tried the following, but the issue did not resolve.

    • Changed startup option to "-bd -q15m" -> Situation unchanged (Issue occurred)
    • Changed startup option to "-bD -q1m" -> issue occurs every minute
    • MinQueueAge option set from 0 to 15 minutes -> Situation unchanged (Issue occurred)



    ------------------------------
    Ryota Kinashi
    ------------------------------



  • 2.  RE: Duplicate emails sent by sendmail

    Posted Mon June 05, 2023 03:37 AM

    First, "-bd" vs "-bD" should not have any impact on possible duplication.

    Second, logs entries seem to indicate that these three messages are diffferent ones, as they have different msgids.

    Could you please describe the problem in more detailed way, ie showing the log entry documenting the arrival of the mail that gets duplicated and later log entries related with sending this message twice?



    ------------------------------
    Lech Szychowski
    ------------------------------