if you are interested to contribute your LAB PROGRAM Please send mail to jkumaron@gmail.com

SMTP Restrictions How to create black list For email-id

By through creating blacklist if we sent mail to specific mail id if it is present blacklist then it will not sent to that end customer. By through creating SMTP restriction we will avoid Spam and unwanted mails. How to avoid Spam mail in red hat Linux RHEL5 we edit file in sendmail.mc file.

Step 1: Rhel5
edit sendmail.mc file
#vim /etc/mail/sendmail.mc Create black list in sendmail.mc file config
Line no:102
Step 2:
add entries in access file
#vim /etc/mail/access
Line no:last
From:root@sys4.rpm.com REJECT
To:root@sys4.rpm.com OK
Connect:sys44 OK
Step 3:
restart the sendmail service
#service sendmail restart
Step 4:
add dns entry
#vim /etc/resolv.conf
search rpm.com
Step 5:
test the restrictions from sys4
#echo “test email “ |mail ­s “sample” ­v root@rpm.com
the email will not send .

Related post