Sendmail Access DB Accept Reject Specific Domains IP


How to configure to Accept or Reject Sendmail incoming Email from Specific Domains  ip address email IDS in Access DB File

Sendmail Access DB Example

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

or

#vim  /etc/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