I wasn't very thorough in the syntax of the access_db file. Does the entry:
From:mydomain.com ERROR:5.7.1:550 Please use outmail.mydomain.com work in the access_db? If not, sorry to waste your time. Ken All syntax I could find for the access_db: [EMAIL PROTECTED] REJECT spamdude@ REJECT spammer.com REJECT 192.168 REJECT From:spammer.com REJECT To:[EMAIL PROTECTED] REJECT Connect:favpornsite.com OK #<grin> On Tue, Apr 01, 2003 at 02:48:42PM -0800, Sorensen, Ken wrote: > Greetings, > I believe the 'access_db' feature in Sendmail is the solution > you seek. For example, in your external server's access file for > (/etc/mail/access), the entries: > > 192.168 REJECT > 192.168.0.1 RELAY > 192.168.0.2 ERROR:5.7.1:550 Sorry, SPAM not allowed > 192.168.0.3 OK > > should reject all connections from the 192.168.#.# domain and > allow only 192.168.0.1 to connect and relay messages. Connections > from 192.168.0.2 will give an error message. Finally, 192.168.0.3 > will be able to connect and send mail only to that server. I use a > similar configuration on my systems. Another idea is to block the > unwanted servers/domains from within tcp wrappers (/etc/hosts.allow - > /etc/hosts.deny). > Hope this helps, Not quite what I want. My first approach to using access_db was like this: mydomain.com REJECT But this not only prevented messages coming from mydomain.com, but also messages directed to mydomain.com. What I want to do is allow messages to users at mydomain.com, unless they claim to come from mydomain.com. I have already thought of doing it a a spam filter which is run at this host, but that script can only look at headers and body, but not at the envelope. Cheers, -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list