Discussion:
[Mimedefang] Message-ID
Joseph Brennan
2017-09-11 20:26:38 UTC
Permalink
When a message comes in with no Message-ID header, and MD passes it to
SpamAssassin, what is in the Message-ID that SA sees? It doesn't seem
to be NOQUEUE, since SA does not score INVALID_MSGID.

I'm considering scoring with SA for no Message-ID plus other factors.
--
Joseph Brennan
Columbia U

_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list ***@lists.roaringpenguin.com
http://lists.roaringpenguin.com/
Dianne Skoll
2017-09-11 20:30:42 UTC
Permalink
On Mon, 11 Sep 2017 16:26:38 -0400
Post by Joseph Brennan
When a message comes in with no Message-ID header, and MD passes it to
SpamAssassin, what is in the Message-ID that SA sees?
Nothing at all. There's no Message-ID header in the message that gets passed
to SpamAssassin.

Regards,

Dianne.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list ***@lists.roaringpenguin.com
http:/
Richard Laager
2017-09-12 04:38:32 UTC
Permalink
Post by Dianne Skoll
On Mon, 11 Sep 2017 16:26:38 -0400
Post by Joseph Brennan
When a message comes in with no Message-ID header, and MD passes it to
SpamAssassin, what is in the Message-ID that SA sees?
Nothing at all. There's no Message-ID header in the message that gets passed
to SpamAssassin.
Are you sure?

spam_assassin_mail() calls gen_msgid_header().
--
Richard
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list ***@lists.roaringpenguin.com
http:
Dianne Skoll
2017-09-12 14:17:19 UTC
Permalink
On Mon, 11 Sep 2017 23:38:32 -0500
Post by Richard Laager
Post by Dianne Skoll
Nothing at all. There's no Message-ID header in the message that
gets passed to SpamAssassin.
Are you sure?
spam_assassin_mail() calls gen_msgid_header().
Ah... apparently I was wrong.

I think that's a bug. I'm going to delete that line.

Regards,

Dianne.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list ***@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mai
Joseph Brennan
2017-09-15 00:44:02 UTC
Permalink
So, back to where we started. What will be in that generated Message-ID?
Would my mail host's name, the one that received the message, be in it?

Joe Brennan




--On September 12, 2017 at 10:17:19 AM -0400 Dianne Skoll
Post by Dianne Skoll
On Mon, 11 Sep 2017 23:38:32 -0500
Post by Richard Laager
Post by Dianne Skoll
Nothing at all. There's no Message-ID header in the message that
gets passed to SpamAssassin.
Are you sure?
spam_assassin_mail() calls gen_msgid_header().
Ah... apparently I was wrong.
I think that's a bug. I'm going to delete that line.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list ***@lists.roaringpenguin.com
http:/
Richard Laager
2017-09-15 02:04:41 UTC
Permalink
Post by Joseph Brennan
So, back to where we started. What will be in that generated Message-ID?
See mimedefang.pl:

sub gen_msgid_header {
my ($ss, $mm, $hh, $mday, $mon, $year, $wday, $yday, $isdst) =
localtime(time);

# Generate a "random" message ID that looks
# similiar to sendmail's for SpamAssassin comparing
# Received / MessageID QueueID
return sprintf("Message-ID: <%04d%02d%02d%02d%02d.%s\@%s>\n",
$year + 1900,
$mon + 1,
$mday,
$hh,
$mm,
($QueueID eq 'NOQUEUE' ? rand() : $QueueID),
get_host_name()
);
}
Post by Joseph Brennan
Would my mail host's name, the one that received the message, be in it?
Yes:

sub get_host_name {
# Use cached value if we have it
return $PrivateMyHostName if defined($PrivateMyHostName);

# Otherwise execute "hostname"
$PrivateMyHostName = hostname;

$PrivateMyHostName = "localhost" unless defined($PrivateMyHostName);

# Now make it FQDN
my($fqdn) = gethostbyname($PrivateMyHostName);
$PrivateMyHostName = $fqdn if (defined $fqdn) and length($fqdn) >
length($PrivateMyHostName);

return $PrivateMyHostName;
}
--
Richard
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list ***@lists.roaringpenguin.com
http://lists.roaringpenguin.com
Loading...