Rejecting mail senders

Rejecting mail senders

Post by Armando Duart » Tue, 24 Jul 2001 19:33:51



Hello,
I configure the mail (in the linuxconf - it puts a line in the
/etc/mail/deby file for each entry) to reject some senders (by entire
address, by domain), and it doesn't wortk. What could be wrong?
Tks

--
-------------------------------------------
Armando Duarte
Centro Hospitalar de Coimbra (http://www.chc.min-saude.pt)
Departamento de Informa??o para a Gest?o
Telef. 351 39 800080; 351 39 800192

 
 
 

Rejecting mail senders

Post by Dave » Thu, 26 Jul 2001 00:39:07




> Hello,
> I configure the mail (in the linuxconf - it puts a line in the
> /etc/mail/deby file for each entry) to reject some senders (by entire
> address, by domain), and it doesn't wortk. What could be wrong? Tks

Does linuxconf run makemap by default?

if not try:

cd /etc/mail
makemap hash deny < deny
/etc/rc.d/init.d/sendmail restart

That wil create /etc/mail/deny.db which is used by sendmail (etc?) to
determine what to reject. The restart is to make sure that sendmail
re-reads all config files. I'm not sure whether a SIGHUP is sufficient,
so I always do a restart.

regards,
Dave

 
 
 

Rejecting mail senders

Post by Chuck Geigne » Thu, 26 Jul 2001 01:06:14



> Hello,
> I configure the mail (in the linuxconf - it puts a line in the
> /etc/mail/deby file for each entry) to reject some senders (by entire
> address, by domain), and it doesn't wortk. What could be wrong?

If your configured sendmail using linuxconf then (I hate to say it) you
will probably need to blow away the configuration and rebuild it using
m4. Reason behind this is that linuxconf has always done a better job of
botching up sendmail than anything else. Avoid that route like the
plague.

--
Chuck Geigner ---------------------------------------
AIX Sysop
Milner Library, Illinois State Univ.
"Been borrowing Occam's shaving instrument since 1992
Haven't cut myself yet."_____________#rgvac==mongoose

 
 
 

Rejecting mail senders

Post by Sebastian Jaenic » Thu, 26 Jul 2001 01:20:37


Hi,


>  cd /etc/mail
>  makemap hash deny < deny

                ^^^^^

makemap hash deny.db < deny

[..]

Quote:>  re-reads all config files. I'm not sure whether a SIGHUP is sufficient,
>  so I always do a restart.

SIGHUP is enough, you don't need to restart.

Regards,

Sebastian

--
Sebastian Jaenicke

 
 
 

Rejecting mail senders

Post by Dave » Thu, 26 Jul 2001 02:12:52




> Hi,


>>  cd /etc/mail
>>  makemap hash deny < deny
>                 ^^^^^

> makemap hash deny.db < deny

It actually works as I originally typed it on my system , creating
deny.db. I have just tried it, renamed the existing deny.db, ran the
command as typed and there was a new deny.db.




Makefile   deny         domaintable.db  name_allow     virtusertable.db
access     deny.db.OLD  mailertable     sendmail.cw
access.db  domaintable  mailertable.db  virtusertable


Makefile   deny         domaintable     mailertable.db  virtusertable
access     deny.db      domaintable.db  name_allow      virtusertable.db
access.db  deny.db.OLD  mailertable     sendmail.cw

regards,
Dave

 
 
 

Rejecting mail senders

Post by Luke Voge » Thu, 26 Jul 2001 19:52:31



> If your configured sendmail using linuxconf then (I hate to say it) you
> will probably need to blow away the configuration and rebuild it using
> m4. Reason behind this is that linuxconf has always done a better job of
> botching up sendmail than anything else. Avoid that route like the
> plague.

<nod>
I whole heartedly agree.  Linuxconf is a broken program that will cause
you no end of problems.

My sendmail configuration used the "access" file for denying spammers
and mailbombers.

--
Regards
Luke
------
Q:  What does FAQ stand for?
A:  We are Frequently Asked this Question, and we have no idea.
------
C.O.L.S FAQ - http://www.linuxsecurity.com/docs/colsfaq.html
------
PLEASE NOTE: Spamgard (tm) installed.

------