On Sat, 20 Aug 2005, Eric A. Hall wrote:


On 8/20/2005 4:22 PM, Dan Mahoney, System Admin wrote:

basically I will have a different sql userpref for [EMAIL PROTECTED] or
[EMAIL PROTECTED], or different global defaults for hosta.com.  This seems
elementary to do, but I can't figure out how to make spamd tell which one
to use -- maybe based on the connecting ip, maybe based on a command
line/config file variable passed.

A simple plug-in would probably do the trick. You'd need to call the
Sys::Hostname::Long module yourself, since SA itself does not need or
provide the local hostname itself.

SA provides the hostname of the checking machine in the headers, so it at least uses them in some way.

I could probably hack this functionality into spamd -- spamc is the whore as my knowledge of C is minimal at best, so it looks like I'd probably have to go based on connecting ip, and from what I can see, sys::hostname::long only checks the hostname of the machine it's running on (equivalent to the hostname command).

-Dan

--

[23:49:00] LarpGM: Did my little TP comment scare you off?
[23:49:22] ilzarion: no, the shrieking retarded child eating people did

-Feb 06, 2001, times apparent.


--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------

Reply via email to