LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sendmail Spam control (https://www.linuxquestions.org/questions/linux-software-2/sendmail-spam-control-69590/)

jchristman 07-02-2003 12:10 PM

Sendmail Spam control
 
I have never used the send mail spam control.
I would like to setup rules to reject or discard emails from certain addresses and domains. like stoping 123@yahoo.com and then say everything from @hotmail.com

I am not for sure on hor to setup the domain style

m_cornelsen 07-02-2003 12:45 PM

Question? Are you trying to stop email from being relayed through your sendmail or are you wanting to create a filter to stop emails from being delivered to your user(s) email addresses?

jchristman 07-02-2003 01:09 PM

I want to create a filter to stop the emails from being delivered.

initpcsys 07-02-2003 01:18 PM

I would like to setup rules to reject or discard emails from certain addresses and domains. like stoping 123@yahoo.com and then say everything from @hotmail.com


You could use the /etc/mail/access file.
In this case you would insert the following lines:
123@yahoo.com REJECT "Not allowed"
hotmail.com RELAY

I hope this helps.
F.

jchristman 07-02-2003 01:51 PM

Will the REJECT work for hotmail.com

m_cornelsen 07-02-2003 02:00 PM

If you are using sendmail to act as your incoming email server, initpcsys's solution is the easiest way. Just remember to have either sendmail to rebuild your access.db or do it manually at the terminal console by entering

makemap hash /etc/mail/access.db < /etc/mail/access

and yes REJECT will work as well for hotmail.com

jchristman 07-02-2003 02:37 PM

Is there a good email filtering program out there that will scan into emails and reject or just drop them completely if it is junk email based upon your setup criteria

m_cornelsen 07-02-2003 03:14 PM

No perfect solution - but spamassassin for linux helps on the pop3 side.

http://spamassassin.org

jchristman 07-02-2003 03:20 PM

thanks I think this will work. everything else seems to only be for users not servers.


All times are GMT -5. The time now is 01:23 PM.