backschues.NET  
  ::: backschues.NET :::  


Startseite

Services

Know-how
  qmail
    qmail aio patch
    qmail aio usage
    DomainKeys
    Greylisting
  Viren

Link-Sammlung

Impressum

Kontakt

::: Layout :::


Druckversion
 

::: Navigation :::


Suche

Sitemap
 

  ::: Greylisting with qmail :::  


Greylisting with qmail
This document describes how to implement Greylisting with qmail.

What do we need?
  • First of all we need qmail or netqmail.

  • The QMAILQUEUE patch makes it possible to insert another program into the qmail-queue structure. This patch is part of netqmail.

  • The qmail-qfilter program allows the body and/or envelope of a message to be filtered through a series of filters before being passed to the real qmail-queue program, and injected into the qmail-queue.
Installation of Greylisting scripts
  • Create a QMAILQUEUE script like this

    exec /var/qmail/bin/qmail-qfilter \
    /var/qmail/control/qmail-qfilter/greylisting.qfilter -- \
    /var/qmail/control/qmail-qfilter/yourfilter1 -- \
    /var/qmail/control/qmail-qfilter/yourfilter2

  • Copy the Greylisting qmail-qfilter script to /var/qmail/control/qmail-qfilter/greylisting.qfilter and set the permissions

    chown root:qmail /var/qmail/control/qmail-qfilter/greylisting.qfilter
    chmod 0755 /var/qmail/control/qmail-qfilter/greylisting.qfilter

  • This Greylisting script knows about SMTP AUTH users, TLS, SMTP Callback and BATV.
  • Copy the Greylisting cron script to your crontab directory and set the permissions

    chown root:root greylisting.cron
    chmod 0755 greylisting.cron

  • This crontab script manages the Greylisting DB e.g. the expiration of Greylisting records.
  • Create the Greylisting DB directory and set the permissions:

    mkdir -p /var/greylisting
    chown qmaild:nofiles /var/greylisting
    chmod 0700/var/greylisting

    Share this directory to all your Mail Exchangers (MX).

Greylisting integration within qmail
  • Activate your QMAILQUEUE script by using the environment varibale QMAILQUEUE in tcprules.

  • Control the whitelisting and delay of Greylisting by using the environment varibale GREYLISTINGDELAY, NOGREYLISTING and NOGREYWHITELISTING.
Many thanks to:
  ::: Hotlinks :::  


WebCam
Sie wollen sehen, wie es draußen bei uns aussieht?

Link-Sammlung
Ihr Wegweiser im Internet
 

© Copyright2008 by backschues.NET
letzte Änderung am29.07.2008 13:23:19

Radio sunshine live - Clubsound Germany