Do this and you will block most of the world from sending you e-mail
unless all of your mail comes thru a server that forwards to you and
the mail server is the only IP you allow.
My e-mail address, jeff.taylor@ieee.org, is an alias at my
professional organization. All e-mail to this address comes from 3 IP
addresses in the ieee.org domain. However, I have other e-mail
addresses and some of it comes direct, so I have no IP restrictions.
Using hosts.deny to block certain domains may make sense for a VERY
few domains that are nothing but spammers.
Jeffrey
Quoting Togan Muftuoglu
* Leah Cunningham
[010608 22:45]: but I could do mail from:leah@valaddomain.com
Joost, do you know if there is a way for the mail server to check if the IP address you are coming from matches the domain given?
AFAIK sendmail that comes with SuSE 7.0 and above are compiled with tcp wrappers library and if you use the hosts.allow and hosts.deny files properly you may stop unauthorized IP's connecting to your mail server
Also I have been using SuSE sendmail rpm (the one comes with 7.1) configured via yast and so far people tried relaying yet they all got the message "Sorry relaying not allowed" and I have not done anything special (ie. making my own senmail.cf manually)
HTH
-- I don't do Windows and I don't come to work before nine. -- Johnny Paycheck