How to Accept or Reject Sendmail incoming Email from Specific Domains, ip address, email ID

How to Accept or Reject Sendmail incoming Email from Specific Domains / ip address /email IDS


To accept or reject mails from specific domains, email address just Edit the access DB and add the IP address you want to block

#vim  /etc/mail/access

from:gmail.com                OK
from:hotmail.com   OK
from:yahoo.com       OK
189.30.24.75            DISCARD
85.187.23.85            DISCARD
213.130.80.230         REJECT
@home.ru                DISCARD
@lasmos.ru              DISCARD
@maynew.ru              DISCARD
@rambler.ru             DISCARD
@earlyvoting.net        DISCARD
@clicrevenu.net         DISCARD
@informeo.net           DISCARD
@iainwest.net           DISCARD
@ribk.net               DISCARD
@inforpar.net           DISCARD
@xdepot.net             DISCARD
@south-road.net         DISCARD
spam@home.ru                DISCARD




Save the settings and restart Sendmail or MailScanner service



FOLLOW US :-    
   


0 comments :

Post a Comment