HOW-TO: Deny Incoming Email from Specific Domains

HOW-TO: Deny Incoming Email from Specific Domains

Post by Don Staffor » Fri, 28 Apr 2000 04:00:00



HOW-TO QUESTION:

We are running RH 6.1
I need to know how to deny incoming email from specific domains.
I have /etc/mail/access as follows:

domain.com DISCARD
spamdomain.com 550 No SPAM

The 550 line works, in that it disallows the incoming email(s), but
also sends a message back to the sender.
The DISCARD line used to work in version 5, but does not work in
version 6.

I have also copied by /etc/mail/deny file from version 5 to version 6.
It is as follows:

domain.com REJECT

That does not work - and I have build the hashes (.db) for all files.

Any help will be GREATLY appreciated!!

------------------------------------------------------------------------
Don Stafford, Director of Information Technologies
UAV Entertainment Corporation
2200 Carolina Place
Fort Mill, SC  29708
803-548-1056  x159               704-940-1056 x159
803-548-2493 - Fax               704-940-3335 (Fax)

ICQ: 8371791

 
 
 

HOW-TO: Deny Incoming Email from Specific Domains

Post by floyd_mil.. » Fri, 28 Apr 2000 04:00:00


Try using REJECT keyword.  This will still cause an error to be
reported back to them.  Or check to see if you have a "discard"
mailer defined with a Mdiscard specificatrion in sendmail.rc.
If not add one  - if you have the sendmail config files from
your prvios red hat installation (/usr/lib/sendmail-cf) you may
find form those how to add it to your new setup.



Quote:> HOW-TO QUESTION:

> We are running RH 6.1
> I need to know how to deny incoming email from specific domains.
> I have /etc/mail/access as follows:

> domain.com DISCARD
> spamdomain.com 550 No SPAM

> The 550 line works, in that it disallows the incoming email(s), but
> also sends a message back to the sender.
> The DISCARD line used to work in version 5, but does not work in
> version 6.

> I have also copied by /etc/mail/deny file from version 5 to version 6.
> It is as follows:

> domain.com REJECT

> That does not work - and I have build the hashes (.db) for all files.

> Any help will be GREATLY appreciated!!

------------------------------------------------------------------------

> Don Stafford, Director of Information Technologies
> UAV Entertainment Corporation
> 2200 Carolina Place
> Fort Mill, SC  29708
> 803-548-1056  x159               704-940-1056 x159
> 803-548-2493 - Fax               704-940-3335 (Fax)

> ICQ: 8371791

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

1. HOW-TO: Deny Incoming Email from Specific Domains

HOW-TO QUESTION:

We are running RH 6.1
I need to know how to deny incoming email from specific domains.
I have /etc/mail/access as follows:

domain.com DISCARD
spamdomain.com 550 No SPAM

The 550 line works, in that it disallows the incoming email(s), but
also sends a message back to the sender.
The DISCARD line used to work in version 5, but does not work in
version 6.

I have also copied by /etc/mail/deny file from version 5 to version 6.
It is as follows:

domain.com REJECT

That does not work - and I have build the hashes (.db) for all files.

Any help will be GREATLY appreciated!!

------------------------------------------------------------------------
Don Stafford, Director of Information Technologies
UAV Entertainment Corporation
2200 Carolina Place
Fort Mill, SC  29708
803-548-1056  x159               704-940-1056 x159
803-548-2493 - Fax               704-940-3335 (Fax)

ICQ: 8371791

2. Proxy Arp question

3. SCO Targets NT, and How to Succeed

4. Example of ipchains denying access to a specific domain?

5. Help XF86Config Mach64 and NEC 4FGe

6. Denying specific domains access with Netscape Commerce Server

7. uucp over tcp

8. Forward *@domain.com to a specific email?

9. Mail for MY e-mail is acting strange today (no incoming e-mail)

10. host.deny or domain.deny on Solaris?

11. HELP: Virtual domain e-mail handler using '.domains'

12. How could/should one filter out specific incoming mails??