FAQ

Q: I want to send you a (spam) sample to analyse, etc.

A: Go ahead, but please send it as a gzip or zip attachment.

Q: Does clapf support virtual users?

A: Yes, however, it requires a little configuration.

Let's say you have the following postfix configuration in main.cf and the virtual stuff is stored in MySQL tables:

virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-vdomains.cf
virtual_mailbox_base = /var/vmail
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-aliases.cf
virtual_uid_maps = static:1004
virtual_gid_maps = static:104

Create /etc/postfix/mysql-vdomains.cf like this:

user = clapf
password = verystrongsecret
dbname = clapf

query = SELECT domain FROM t_domain WHERE domain='%s'

Create /etc/postfix/mysql-aliases.cf like this:

This will return the virtual directory in the form of yourdomain.com/user/, eg. aaa.fu/aa/ for aa@aaa.fu.

Q: How do I create a dedicated filtering box and forward all my email to my Exchange server?

A: Create the mysql .cf files like above, then create a transport map file

main.cf:

virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-vdomains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-aliases.cf
transport_maps = proxy:hash:/etc/postfix/transport

/etc/postfix/transport:

*               smtp:[exchange.aaa.fu]

Q: How do I assign an arbitrary virtual path to my users?

A: Extend the 'user' table to hold the virtual path value, eg.

mysql>alter table user add column vdir char(255) default null;

Modify user entries like this:

update user set vdir = '' where username='aaa';

Create /etc/postfix/mysql-aliases.cf like this:

user = clapf password = verystrongsecret dbname = clapf query = SELECT vdir FROM user WHERE email='%s'

Q: Does spamdrop support virtual users?

A: Yes, however, it also requires a little configuration.

We will configure postfix to use maildrop as the local delivery agent

main.cf:

maildrop_destination_recipient_limit = 1
virtual_mailbox_domains = aaaa.fu
virtual_transport = maildrop
virtual_mailbox_maps = hash:/etc/postfix/virtual_mailbox

virtual_mailbox has all the valid email addresses:

jim@aaaa.fu     ok
joe@aaaa.fu	ok
....

master.cf:

maildrop unix - n n - - pipe
   flags=ODRhu user=clapf:clapf argv=/usr/local/bin/maildrop /etc/maildroprc 
   -d ${user}@${nexthop} ${extension} ${recipient} ${user} ${nexthop}

/etc/maildroprc:

xfilter "/usr/local/bin/spamdrop -r $4"

VMAILDIR=/var/vmail/domains
DOMAINDIR=$VMAILDIR/$6
MAILDIR=$DOMAINDIR/$5/

`[ -d $DOMAINDIR ]`
if ( $RETURNCODE == 1 )
{
        A=`/bin/mkdir $DOMAINDIR`

        `[ -d $MAILDIR/cur ]`
        if( $RETURNCODE == 1 )
        {
                B=`/usr/local/bin/maildirmake $MAILDIR`
        }

}

to "$MAILDIR"

Finally set up proper permission on /etc/maildroprc:

chown clapf:clapf /etc/maildroprc
chmod 600 /etc/maildroprc

Important! The user 'clapf' needs a valid shell, otherwise it cannot execute the commands above.

Q: How to setup virtual users with LDAP?

A: Set the following in main.cf:

virtual_mailbox_domains = mail.aaaa.fu
virtual_mailbox_base = /var/vmail
virtual_mailbox_maps = ldap:/etc/postfix/ldap-aliases.cf
virtual_uid_maps = static:1004
virtual_gid_maps = static:104

Create /etc/postfix/ldap-aliases.cf like this:

server_host = localhost
search_base = ou=billing, dc=aaaa, dc=fu
version = 3
query_filter = (|(mail=%s)(mailAlternateAddress=%s))
result_attribute = mailMessageStore
result_format  =  %s/Maildir/

Then add the qmail.schema to your LDAP configuration, and add your users to the LDAP server. An example ldif file is shown below.

dn: dc=aaaa,dc=fu
dc: aaaa
objectClass: top
objectClass: dcObject
objectClass: organization
o: aaaa.fu

dn: ou=billing,dc=aaaa,dc=fu
ou: billing
objectClass: top
objectClass: organizationalUnit

dn: cn=jim,ou=billing,dc=aaaa,dc=fu
cn: jim
sn: whatever
objectClass: top
objectClass: person
objectClass: qmailUser
objectClass: qmailGroup
uid: 1
mail: jim@aaaa.fu
mailAlternateAddress:
mailMessageStore: x
filtersender:
blackList:
policyGroupId: 0
isAdmin: 0
userPassword: thepassword

Q: How to prevent spam to reach users' inboxes?

A: Set the spaminess_oblivion_limit somewhere between the value of spam_overall_limit and 1, eg. 0.99. Then clapf will silently drop any spam message with a spam probability value greater than 99%. Please note that these spam messages will still get to the users' queue directory, so they can access their spam through the web UI, but their inbox will be free of spam.

Note that you also need to compile clapf with the --with-store=fs configure options.

Q: I have put some new files to my quarantine directory. How to make the webui to display those messages as well?

A: Remove the quarantine.sdb file, and the webui will recreate it as well as show you the new files you have put in.

Q: How to disable spam check for outgoing emails?

A: Set use_antispam=0 in clapf.conf. Then create a new policy group and set use_antispam=1. Finally update your users to be in the new policy group. This way clapf does spam checking for incoming emails only.

Q: What happens if I mistakenly train a message as ham, then as spam?

A: The accuracy of any statistical anti-spam application mostly depends on the quality of the token database. Although it's not a fatal problem if you happen to do this, but be aware, it may result a less accurate operation in some cases.

Q: How could I figure out what this application does?

A: If you are curious, set verbosity=5 in clapf.conf, then send a HUP signal to the clapf daemon, and it will syslog a lot of stuff.

If you want to know why a single message is considered as spam (or ham) then use the spamdrop utility against a single RFC-822 format message as follows:

# test with your current unix uid as the clapf uid
spamdrop -D < messagefile

#test for jim@aaaa.fu
spamdrop -D -r jim@aaaa.fu < messagefile

This will print out the message as clapf sees it, the tokens participated in the statistical decision, and other stuff.

Q: How can I set up the queue directory on a different partition or different computer?

A: specify the --with-store=nfs configure option. In case of a remote computer mount the exported partition under your queue directory (/var/lib/clapf/queue).

Q: I have Outlook Express mailbox. How can I create a token database?

A: Try MailNavigator that can read OE mailboxes and export them as an mbox.

“When you start it up, do File→Load External Mailbox… Point the browser window at the OE inbox.dbx file, normally in Documents and Settings \currentuser\Local Settings\Application Data\Identities\{bunchaglorp} \Microsoft\Outlook Express. You should see your inbox (or whatever folder you loaded) contents in MailNavigator. Then do Message→Select All, then Message→Save As… pick a file name and location, and select file type RFC822-text file… et voila, you have an mbox!”

Source: http://mail.python.org/pipermail/spambayes/2003-March/004128.html

hirlevel@rothermetal.hu robi@rothermetal.hu ajandekkaracsonyra@medtron.hu dms@medtron.hu lipot.andrea@string.hu string@string.hu bearlock@bearlock.hu info@bestlogistics.hu bestoffice@citromail.hu oncz.illes@actel.hu kosakft@kosakft.hu loginadmin@wtcd.eu wtcd@wtcd.eu info@zebrasoftev.hu szalon@chevroletgyulai.hu ckdelta@iol.sk siklosi.zoltan@autogrid.hu info@mosolypontok.hu info@hykomm.hu info@eGlobalSurveys.com eurolock@t-online.hu info-hu@computerlinks.hu tavam@tavam.hu hotelinfo@haromsarkany.hu info@implantatum.hu nevess@nevetosok.hu info@usznp.hu tag@usznp.hu helyielnok@usznp.hu taginfo@usznp.hu adomany@usznp.hu korrupcio@usznp.hu partner@usznp.hu pszota@peugeotfabian.hu flotta@peugeotfabian.hu info@fabianbudaors.hu info@peugeotfabian.hu ertekesites@peugeotfabian.hu vevoszolgalat@peugeotfabian.hu alkatresz@peugeotfabian.hu hasznaltauto@peugeotfabian.hu varga@peugeotfabian.hu biroandras@peugeotfabian.hu biztositas@peugeotfabian.hu alkatresz@peugeotfabian.hu pappz@peugeotfabian.hu ertekesites@peugeotfabian.hu galambos@peugeotfabian.hu info@tintakiado.hu info@szakemberlista.hu dora.durjanc@dft-hungaria.hu szabo.judit@vasar.info info@csicsergo.hu info@vamdesign.hu info@civilmozgalom.hu uveges.szilvia@operagardenhotel.hu g.faska@operagardenhotel.hu sales@operagardenhotel.hu operagarden@operagardenhotel.hu sprinter@sprinterkiado.hu info@csicsergo.hu iwiw@civilmozgalom.hu ruzsicsm@csicsergo.hu hejja@csicsergo.hu seres@seresmaria.hu cmiroda@gmail.com civilmozgalom@gmail.com civilek@civilmozgalom.hu hibajelzesek@gmail.com kovari.erika@sprintmotorsport.com info@sprintmotorsport.com horvath.lazar@sprintmotorsport.com stiefel@stiefel.hu nagyker@stiefel.hu iskola@stiefel.hu ceges@stiefel.hu grafika@stiefel.hu grafika@stiefel.hu mintabolt@stiefel.hu info@natureshade.hu akcio@ssi-schaefer.hu info@ssi-schaefer.hu info@siodigit.hu sales@moziakertben.hu info@tunderkertkiado.hu diana.balogh@tunderkertkiado.hu ugyfelszolgalat@tunderkertkiado.hu info@netadmin.hu marketing@netadmin.hu helpdesk@netadmin.hu 7even@7even.hu regdony.jozsef@7even.hu 7even@affero.hu papp.csaba@7even.hu info@gumipark.hu marketing@ajandekozz.hu ugyfelszolgalat@maxxoutlet.hu info@ugyfelszolgalat@maxxoutlet.hu trainex@trainex.hu info@trainex.hu kcswolf@freemail.hu info@boldogjovo.eu nyomda@sprinternyomda.hu iroda@sprinternyomda.hu kepviselet@civilmozgalom.hu info@bidstorm.eu havancsak@havancsak.hu laszlo.havancsak@havancsak.hu aniko@havancsak.hu hirlevel@havancsak.hu hambek@havancsak.hu diadvd@diadvd.hu ugyvezeto@gyalog-h.hu info@fiszmedia.hu info@sabanorm.hu szfvar@sabanorm.hu bp@sabanorm.hu fodor.geza@yokozuna.hu info@yokozuna.hu ugyfelszolgalat@edmax.hu info@kazanwebaruhaz.hu info@klimawebaruhaz.hu info@dolphio.hu hr@dolphio.hu gasztonyi.peter@dolphio.hu support@news.dolphio.hu info@khf.hu info@cid.hu kozponti@ceg-info.hu info@1gomboc.hu info@magicice.hu marketing@magicice.hu eszekid@epitoforum.hu mek@epitoforum.hu szalaip@epitoforum.hu ferovicsz@epitoforum.hu dancsod@epitoforum.hu epkontroll@gmail.com info@brandshop24.hu pipoly@kizmantravel.com office@tanacsos.hu koveteles@tanacsos.hu edmbudapest@yahoo.com igazgyongy@dravanet.hu bathori@bathori.hu kincskereso@geniuszegyuttes.hu mesterember2010@gmail.com lykosmelas@gmail.com pongraczgabor@t-online.hu hello@marketingcommando.hu info@spp.hu info@lapszemle.hu register@re-search.hu info@re-search.hu info@uzletitervek.hu info@plutoreklam.hu plutoreklam@plutoreklam.hu leskovicspiro@t-online.hu tuzijatek-varazs@tuzijatek-varazs.hu ertekesites@crevo.hu info@crevocorp.hu gero.daniel@crevo.hu bonyar.miklos@crevo.hu support@crevo.hu tanacs.gabriella@crevo.hu gyartas@crevo.hu ksv@ksv.hu ugyfelszolgalat@ksv.hu voros.szilvia@ksv.hu balazs.eszter@ksv.hu info@forpsi.hu emailleiratkozas@freemail.hu domain@forpsi.hu admin@forpsi.hu szamlazas@forpsi.hu claim@forpsi.hu info@diamondtopconsult.hu berecz@diamondtopconsult.hu morocz@diamondtopconsult.hu den@opinionleaders.hu info@hirmedia.hu info@infosierra.hu tollasroland@gmail.com klimaklub@klimaklub.hu servian@t-online.hu fazekas.laszlo@borturak.hu info@borturak.hu simon.ariann@borturak.hu info@kftmarketing.hu marketing@hunguest-fenyo.ro fenyo@hr.astral.ro reserve@hunguest-fenyo.ro info@kolyokangol.hu hnemeth.viktoria@gmail.com katalin.welker@samling.hu balazs.sutka@samling.hu nora.sandor@samling.hu stella.erenyi@samling.hu peter.szabo@samling.hu katalin.kormos@samling.hu eva.sandor@samling.hu vera.tuba@samling.hu info@samling.hu info@neosoft.hu karasz.balazs@neosoft.hu bernadett@neosoft.hu viktor@neosoft.hu hirlevel@samling.hu info@kockazatertekeles.info munkavedelem@kockazatertekeles.info hepplaszlo@mediatime.hu hiba@szexpartnerem.net adooptimalizalas2010@gmail.com tollrol@vipmail.hu profitkommando@freemail.hu info@yourlife2000.hu info@mall.hu replyhu@nrholding.com info@konyvnet.hu konyvnetrendeles@gmail.com konyvnet.hu@gmail.com mail@fitmail.hu wellonline.hu@gmail.com info@lightmedia.hu kortvelyesi@t-online.hu info@i-business.hu director@caramell.hu titkarsag@caramell.hu salesdirector@caramell.hu marketing@caramell.hu info@caramell.hu info@elonyelvek.hu info@toeflibt.hu elonyelv@t-online.hu dmleiratkozas@freemail.hu uzemeltetes@evisual.eu elonyelvek@yahoo.com info@honlapteszt.hu hello@verdesjanos.hu info@zug.hu szerkesztoseg@zug.hu rolesz.tollaroand@citromail.hu info@jampub.hu informacio@cegnezo.hu ugyvezeto@cegnezo.hu marketing@cegnezo.hu jog@cegnezo.hu ertekesites@cegnezo.hu rendszerfejlesztes@cegnezo.hu tech@cegnezo.hu webmester@cegnezo.hu info@cegnezo.hu info@zarrud.hu henczi@enternet.hu henczi@mnyomozo.hu office@sport-gala.hu rendezvenyszervezes@sport-gala.hu hegyi@sport-gala.hu ferenczi.gabor@diotimail.com hirdetes@pont24.hu info@pont24.hu informacio@pont24.hu ugyfelszolgalat@alkupiac.hu ugyfelszolgalat@ingatlan24.com mail@holisztikusszalloda.hu bukfurdorally2010@gmail.com reklammegoldasok2011@gmail.com admin@marketingexpressz.hu ugyfelszolgalat@marketingexpressz.hu info@performia.hu informacio@netkozvetito.hu webszerk@pafi.hu szerklist@pafi.hu informacio@hitelzona.hu ugyfelszolgalat@hitelzona.com ugyfelszolgalat@szabadeuropa.com info@szabadeuropa.com info@nmsnet.hu valasz@nmsnet.hu info@horizonttitletrust.com megrendel@civilhirlap.hu civilhir.szerkesztoseg@gmail.com ugyfelszolgalat@netkozvetito.hu info@webrandi.hu czehmeiszter.j@gmail.com info@csillagvarazslo.hu leiratkoz.relaxa@t-online.hu relaxa.titkarsag@t-online.hu info@ingyenhivo.hu pfarago@skawa.hu info@skawa.hu info@tozsdeeloadasok.hu info@innoiq.hu support@innoiq.hu info@elemzeskozpont.hu info@civilhirlap.hu kerdes@gyorspenzonline.com ceginfonet@ceginfonet.hu info@ceginfobudapest.hu info@siofoknights.hu siofoknights@gmail.com tivadar.aron@arindex.hu info@arindex.hu feketem@arindex.hu zsoszeg@gmail.com info@hirlevelmegoldas.hu noreply@hitel.co.hu info@hitel.co.hu szombathely@hitel.co.hu horvath.beatrix@hitel.co.hu info@ingatlan1.hu hirdetes@ingatlan1.hu info@pannontoner.hu orsolya.rak@migaltranslations.com iroda@migal.hu ugyfelszolgalat@hitelek24.hu info@autocentrumszabo.hu info@fiatszabo.hu info@renaultszabo.hu info@fordszabo.hu info@catconsulting.hu info@zseron.com magabiztosanangolul@gmail.com csaba.schreiber@gmail.com schreibercsaba.angoltanar@gmail.com gyuratzkft@gmail.hu gyuratz@chello.hu gyuratz@upcmail.hu hirlevel@otthonteremto.hu info@otthonteremto.hu hu@migaltranslations.com info@neuronline.net iroda@kifogyott.hu error@blackservice.hu ajanlat@nyomda-nyomda.hu arajanlat@nyomda-nyomda.hu info@geonet.hu info@work24.hu bergerkonyvelo@gmail.com ingyen-konyveles@ingyen-konyveles.hu info@webmediainfo.hu hello@veddolcson.hu apongi77@gmail.com info@e-designer.hu gpek@visionext.hu gpek@gpek.hu szerkesztoseg@liferecycle.hu info@fxbulls.hu info@komarnoinyomda.hu sara.balazs@stability.hu info@mitegyek.eu info@zvk.hu office@fulldomain.hu gifton@gifton.hu pendrive_betakaritas@gifton.hu info@galoppfutar.com info@olinera.hu info@traveloutlet.hu mail@traveloutlet.hu info@mobil-homes.hu info@weblapkeszites.org.hu info@driveinstore.hu litomedia@gmail.com k.litomedia@upcmail.hu info@lineelectronic.hu ugyfelszolg@lineelectronic.hu polus@lineelectronic.hu mammut@lineelectronic.hu helpdesk@lineelectronic.hu ajanlatkeres@lineelectronic.hu csalami.janos@lineelectronic.hu hungexpo@hungexpo.hu info@hungexpo.hu pakozdi.jozsef1@hungexpo.hu sprinternyomda.kartyanaptar@happycard.hu tomibohoc@upcmail.hu varionett@upcmail.hu andrejszki.tamas@upcmail.hu info@orvoshop.hu e-dm@orvoshop.hu ranc-stop@ranc-stop.hu info@ekszershop.eu ekszershop@velvet.hu info.hu@calivary.com info@myskins.hu info@vilagszam.hu autoprofi@autoprofikft.hu karg@kargauto.hu office@mobiltelefonelado.hu will.krisztian@mobiltelefonelado.hu info@mobiltelefonelado.hu info@sztarportre.hu info@cegwebtar.hu info@havasweb.hu megrendel@zoldujsag.hu info@zoldujsag.hu zoldujsag@zoldujsag.hu andrea.farkas@servian.hu info@servian.hu hirlevel@servian.hu sprinternyomda.kartyanaptar@happycard.hu info@armada.hu parallel@parallel.hu hirlevel@bormesterek.hu cashback@mosaic.co.hu info@mosaic.co.hu konyv.ba@gmail.com info@businessmails.info bosszicica@gmail.com kapcsolat@sajatnaptar2012.com kapcsolat@mypet.hu info@e-designer.hu noreply@sajatnaptar2012.com richpoinews@gmail.com hirlevel@canonshop.hu info@canonshop.hu llumar@thomyfolia.hu info@jazzypub.hu hirlevel@jazzy.hu csaba.mezei@lightmedia.hu info@lightmedia.hu jurinovics@gmail.com mail@sikereskarterites.com info@jovotervezes.hu info@minibolt.hu info@ingyenhonlapkeszites.info webaruhazkeszites2@profiknak.info webaruhazkeszites@profiknak.info info@profiknak.info info@kupongroup.hu info@szepseg-egeszsegkozpont.hu support@earnsocialeasy.com info@earnsocialeasy.com rp@navipro.hu info@gpsreklam.hu ugyfelszolg@gpsreklam.hu marketing@gpsreklam.hu ertekesites@gpsreklam.hu penzugy@gpsreklam.hu info@egikamera.hu nyomda@kimsen.hu modositas@szerszambirodalom.hu info@szerszambirodalom.hu szerviz@szerszambirodalom.hu szerszam@szerszambirodalom.hu mtz@szerszambirodalom.hu kerteszet@szerszambirodalom.hu viztisztitok@szerszambirodalom.hu info@szerszambirodalom.hu info@energiaszolgaltatok.hu ugyfelszolg@globalfaktor.hu ertekesites@klimaklub.hu info@vizmegoldas.hu dmcentrum@yahoo.com info@gronlandklima.hu bounce@gronlandklima.hu kapcsolat@onlinelevel.hu info2@heted7nyelven.hu info@heted7nyelven.hu iroda.presentgroup@gmail.com contact@akcioswellness.com andrea.farkas@granatalma.eu andrea.farkas@granatalma.hu webkozmetikus@t-online.hu gyongyip@t-online.hu info@quantumresearch.hu viktor.posa@quantumresearch.hu r.mitko62@gmail.com sales@7eveninstant.com info@kenlas.hu mosterdemese@ixor.hu mosterdemes@ixor.hu info@mosterdemes.hu kapcsolat@mosterdemes.hu partner@mosterdemes.hu job@7even.hu klausz.beata@7even.hu contact@akciosakcio.com info@cwds.hu info@vendeglatoshop.hu ugyfelszolgalat@clubkaros.hu foglalas@clubkaros.hu info@clubkaros.hu sales@karos-spa.hu marketing@karos-spa.hu iroda@nginnova.hu hirdetes@nginnova.hu hiba@nginnova.hu nginnova@gmail.com info@greenfuel.hu info@solvitzrt.com andras.szilagyi@co3app.com tunde.magyar@co3app.com tamas.gal@co3app.com peter.flamich@co3app.com support@co3app.com feri@kokinyomda.hu grafika@kokinyomda.hu nyomda@kokinyomda.hu sokshop1@gmail.com info@bonitermalpanzio.hu ugyfelszolgalat@onlinemarketing247.hu info@onlinemarketing247.hu

© 2008-2012 SPAMtelenül. All rights reserved.  |  Feedback: sj@acts.hu  (public key) Atlassian JIRA