user_prefs file

Jones, Chris chris.jones at ATMOSENERGY.COM
Wed Sep 29 13:35:31 IST 2004


I am in the process of putting together a module to look up a
White/Black list entry in an MySql db. I have "borrowed" tons from the
example ByDomainSpamWhitelist (provided by Julian Field). This function
does not work it is still in the pre-alpha stage. I would appreciate any
comments/suggestions from anyone. Basically it is a mirror of
ByDomainSpamWhitelist and instead of getting information from a file it
gets it from the dB.

-----Original Message-----
From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
Behalf Of Julian Field
Sent: Wednesday, September 29, 2004 3:49 AM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: user_prefs file


At 05:22 29/09/2004, you wrote:
>Hi Julian :)
>
>With reference to one of your previous mail:
>
> > And if you want to read these from an SQL,
> > LDAP or other storage system, you can do all of that with simple
> > Custom Functions.
>
>I'm a little bit confused because previously, you did mention that
>there was no way for MailScanner to find out the real username and you 
>would not want to interfere with the delivery process. However, now it 
>looks like there may be Custom Functions that can be used to load the 
>preference from a LDAP or SQL server.

You can look up the destination's email address as seen by MailScanner,
but that doesn't necessarily map to a single known user on your system.
Aliases make a good example of when this is not the case.

>Do you know of any samples / examples of these customs functions to
>read from an SQL / LDAP servers? I was trying to look for any 
>information on this, but could not find any. Any useful URLs could help

>would be greatly appreciated. Thanks!

There are some examples of various things in CustomConfig.pm, start
there.
--
Julian Field
www.MailScanner.info
MailScanner thanks transtec Computers for their support
Buy the MailScanner book at www.MailScanner.info/store

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

------------------------ MailScanner list ------------------------ To
unsubscribe, email jiscmail at jiscmail.ac.uk with the words: 'leave
mailscanner' in the body of the email. Before posting, read the MAQ
(http://www.mailscanner.biz/maq/) and the archives
(http://www.jiscmail.ac.uk/lists/mailscanner.html).

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

    [ Part 2, "MySqlBL.pm"  Application/OCTET-STREAM (Name: "MySqlBL.pm")  ]
    [ 10KB. ]
    [ Unable to print this part. ]




More information about the MailScanner mailing list