Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Kleeneness is next to Godelness.


computers / comp.mail.sendmail / mailstats usage?

SubjectAuthor
* mailstats usage?EML
`* Re: mailstats usage?Claus Aßmann
 `* Re: mailstats usage?EML
  `- Re: mailstats usage?Claus Aßmann

1
mailstats usage?

<859dee7e-095e-4c4c-ba4a-d29da85e3fa4n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=447&group=comp.mail.sendmail#447

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:a05:622a:147:b0:2f3:3f7f:602e with SMTP id v7-20020a05622a014700b002f33f7f602emr6325598qtw.439.1650551929414;
Thu, 21 Apr 2022 07:38:49 -0700 (PDT)
X-Received: by 2002:a81:32d0:0:b0:2f1:d3d8:71ac with SMTP id
y199-20020a8132d0000000b002f1d3d871acmr12549060ywy.87.1650551929221; Thu, 21
Apr 2022 07:38:49 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Thu, 21 Apr 2022 07:38:48 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=80.229.45.5; posting-account=CR4FEQoAAADokUag5UX-1IcCFT1XfSgH
NNTP-Posting-Host: 80.229.45.5
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <859dee7e-095e-4c4c-ba4a-d29da85e3fa4n@googlegroups.com>
Subject: mailstats usage?
From: qfoo...@gmail.com (EML)
Injection-Date: Thu, 21 Apr 2022 14:38:49 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 12
 by: EML - Thu, 21 Apr 2022 14:38 UTC

I've just enabled mailstats on a new server. To test it, I'm sending a mail from PHP (so it calls sendmail directly).

When I send a test mail, the MTA 'msgsfr' increases immediately and, a few seconds later, the MTA 'msgsto' *also* increases. Why is this?

If I check against /var/logs/mail.log, there are 4 entries corresponding to the outgoing message. The last one says 'message accepted for delivery', so this is presumably the local sendmail accepting message responsibility from the PHP mailer. A few seconds later there's another entry, also with 'message accepted for delivery', when sendmail hands off to the remote MTA. From the timings, I think this is when mailstats increments 'msgsto'. So what does 'msgsto' actually mean?

Re: mailstats usage?

<t3s90a$5gv$1@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=448&group=comp.mail.sendmail#448

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.veps.esmtp.org!not-for-mail
From: INVALID_...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: mailstats usage?
Date: Thu, 21 Apr 2022 14:49:46 -0400 (EDT)
Organization: MGT Consulting
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <t3s90a$5gv$1@news.misty.com>
References: <859dee7e-095e-4c4c-ba4a-d29da85e3fa4n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 21 Apr 2022 18:49:46 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="veps.esmtp.org:155.138.203.148";
logging-data="5663"; mail-complaints-to="abuse@misty.com"
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Thu, 21 Apr 2022 18:49 UTC

EML wrote:

> When I send a test mail, the MTA 'msgsfr' increases immediately and, a few
> seconds later, the MTA 'msgsto' *also* increases. Why is this?

Because mail which comes in usually also goes out.

> timings, I think this is when mailstats increments 'msgsto'. So what does
> 'msgsto' actually mean?

Just what it says:
msgsto Number of messages to the mailer.

It's a fairly simple statistic, but it is essential
to understand what "mailer" means wrt sendmail.

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.

Re: mailstats usage?

<a04723b2-2124-4899-8592-6635c29a10b0n@googlegroups.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=449&group=comp.mail.sendmail#449

 copy link   Newsgroups: comp.mail.sendmail
X-Received: by 2002:a05:620a:45ab:b0:69e:d1f0:b7be with SMTP id bp43-20020a05620a45ab00b0069ed1f0b7bemr1976466qkb.179.1650618229580;
Fri, 22 Apr 2022 02:03:49 -0700 (PDT)
X-Received: by 2002:a81:ae0e:0:b0:2f1:c5b6:69ed with SMTP id
m14-20020a81ae0e000000b002f1c5b669edmr3534756ywh.349.1650618229331; Fri, 22
Apr 2022 02:03:49 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.mail.sendmail
Date: Fri, 22 Apr 2022 02:03:49 -0700 (PDT)
In-Reply-To: <t3s90a$5gv$1@news.misty.com>
Injection-Info: google-groups.googlegroups.com; posting-host=80.229.45.5; posting-account=CR4FEQoAAADokUag5UX-1IcCFT1XfSgH
NNTP-Posting-Host: 80.229.45.5
References: <859dee7e-095e-4c4c-ba4a-d29da85e3fa4n@googlegroups.com> <t3s90a$5gv$1@news.misty.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a04723b2-2124-4899-8592-6635c29a10b0n@googlegroups.com>
Subject: Re: mailstats usage?
From: qfoo...@gmail.com (EML)
Injection-Date: Fri, 22 Apr 2022 09:03:49 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 30
 by: EML - Fri, 22 Apr 2022 09:03 UTC

On Thursday, April 21, 2022 at 7:49:48 PM UTC+1, Claus Aßmann wrote:

> Because mail which comes in usually also goes out.
> > timings, I think this is when mailstats increments 'msgsto'. So what does
> > 'msgsto' actually mean?
> Just what it says:
> msgsto Number of messages to the mailer.

Thanks Claus. This is pretty confusing, though. When I run:

$ sendmail -d8.20 -vt < ./test-sendmail.txt

I expect mailstats to show one incoming message on the MSP, and one outgoing message on the MTA (the book doesn't show separate MSP/MTA stats - maybe this is a Deb/Ubuntu thing?)

What I actually get is one in *and* one out on the MTA, and nothing on the MSP.

Or maybe I've configured 'submit' incorrectly? I have a custom relay listening on port 25, which forwards filtered incoming mails on to port 7902, where sendmail is listening. So, basically sendmail only *sends* mails, unless the local system sends out administration mails by directly running the sendmail executable (like the example above). My submit.mc contains:

define(`RELAY_MAILER_ARGS', `TCP $h 7902')dnl
FEATURE(`msp', `[127.0.0.1]', `25')dnl

Maybe that '25' is wrong? Thanks. Nice book, BTW :)

Re: mailstats usage?

<t3tvin$8su$1@news.misty.com>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=450&group=comp.mail.sendmail#450

 copy link   Newsgroups: comp.mail.sendmail
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!.POSTED.veps.esmtp.org!not-for-mail
From: INVALID_...@esmtp.org (Claus Aßmann)
Newsgroups: comp.mail.sendmail
Subject: Re: mailstats usage?
Date: Fri, 22 Apr 2022 06:21:11 -0400 (EDT)
Organization: MGT Consulting
Sender: <ml+sendmail(-no-copies-please)@esmtp.org>
Message-ID: <t3tvin$8su$1@news.misty.com>
References: <859dee7e-095e-4c4c-ba4a-d29da85e3fa4n@googlegroups.com> <t3s90a$5gv$1@news.misty.com> <a04723b2-2124-4899-8592-6635c29a10b0n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 22 Apr 2022 10:21:11 -0000 (UTC)
Injection-Info: news.misty.com; posting-host="veps.esmtp.org:155.138.203.148";
logging-data="9118"; mail-complaints-to="abuse@misty.com"
Mail-Copies-To: never
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: ca@x2.esmtp.org (Claus Assmann)
 by: Claus Aßmann - Fri, 22 Apr 2022 10:21 UTC

EML wrote:

> $ sendmail -d8.20 -vt < ./test-sendmail.txt

> I expect mailstats to show one incoming message on the MSP, and one outgoing

Do you have separate statistics for the MSP?
Do you invoke mailstats with the proper cf file when you want
the info for the MSP?

> What I actually get is one in *and* one out on the MTA, and nothing on the MSP.

As I wrote (for the MTA):
! Because mail which comes in usually also goes out.

> where sendmail is listening. So, basically sendmail only *sends* mails,

Again:
sendmail does NOT "only *sends* mails" it has to receive them first.

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.

--
Note: please read the netiquette before posting. I will almost never
reply to top-postings which include a full copy of the previous
article(s) at the end because it's annoying, shows that the poster
is too lazy to trim his article, and it's wasting the time of all readers.

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor