Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Feb 2003 09:34:17 +0100
From:      Andreas =?iso-8859-1?Q?Wider=F8e?= Andersen <awand@pragma.no>
To:        freebsd-questions@FreeBSD.ORG
Subject:   proto.m4 file (Sendmail on FreeBSD)
Message-ID:  <5.2.0.9.0.20030226082140.00b4bdb0@mail.pragma.no>

next in thread | raw e-mail | index | archive | help
I got Sendmail 8.12.6/8.12.7 on my FreeBSD 4.7 STABLE system and I've=20
recently been working with it to stop spam coming through to my email=20
users. I've added several "FEATURES" in the freebsd.mc file and compiled a=
=20
new sendmail.cf file which works pretty good. However, I'm seeing more and=
=20
more of lines in my maillog like the line below:

Feb 26 09:13:00 myserver sendmail[52405]: h1Q8CxZw052405:=20
<g3mek@mydomain.com>... User unknown
Feb 26 09:13:00 myserver sendmail[52405]: h1Q8CxZw052405: from=3D<>,=20
size=3D3411, class=3D0, nrcpts=3D0, proto=3DESMTP, daemon=3DMTA,=
 relay=3Dmxo1.vol.cz=20
[195.250.128.76]

The spammer is always using an empty from field and the spammer is=20
obviously trying lots of different combinations just to see if it will=20
match. I read on the sendmail.org site that there is a workaround to=20
prevent spammers do this in 8.12.6.

My question is, where should I put this in in my proto.m4 file? The file is=
=20
rather large and I really don't know where.

Index: proto.m4
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/cf/m4/proto.m4,v
retrieving revision 8.649.2.12
retrieving revision 8.649.2.13
diff -u -r8.649.2.12 -r8.649.2.13
--- proto.m4    3 Dec 2002 16:48:37 -0000       8.649.2.12
+++ proto.m4    4 Dec 2002 00:12:18 -0000       8.649.2.13
@@ -1761,6 +1761,9 @@
  dnl workspace: {client_name} $| {client_addr}
  R$+ $| $+              $: $>D < $1 > <?> <+ Connect> < $2 >
  dnl workspace: <result-of-lookup> <{client_addr}>
+dnl OR $| $+ if client_name is empty
+R   $| $+              $: $>A < $1 > <?> <+ Connect> <>        empty=20
client_name
+dnl workspace: <result-of-lookup> <{client_addr}>
  R<?> <$+>              $: $>A < $1 > <?> <+ Connect> <>        no:=20
another lookup
  dnl workspace: <result-of-lookup> (<>|<{client_addr}>)
  R<?> <$*>              $: OK                           found nothing

Also, there are 2 proto.m4 files:

/usr/share/sendmail/cf/m4/proto.m4
/usr/src/contrib/sendmail/cf/m4/proto.m4

Which one should I edit & use?

When I'm compiling up a new sendmail.cf file I do this:

cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.orig
cd /usr/src/etc/sendmail
cp freebsd.mc freebsd.mc.orig
[edit freebsd.mc]
make freebsd.cf
make freebsd.cf install
cd /usr/obj/usr/src/etc/sendmail/
cp freebsd.cf /etc/mail/sendmail.cf
killall -1 sendmail

Thanks!
/Andreas

---
Andreas Wider=F8e Andersen <awand@pragma.no>
Pragma AS

http://www.pragma.no=20


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.2.0.9.0.20030226082140.00b4bdb0>