↑↑↓↓←→←→ⒷⒶ Войти !bnw Сегодня Клубы
Привет, TbI — HRWKA! 1239.2 пользователей не могут ошибаться!
?6946
прекрасное6443
говно5907
говнорашка5512
хуита4716
anime3066
linux2654
music2635
bnw2602
рашка2565
log2356
ололо2178
дунч1832
pic1815
сталирасты1491
украина1439
быдло1437
bnw_ppl1421
дыбр1238
гімно1158

http://undeadly.org/cgi?action=article&sid=20130130081741

OpenSMTPD has had filters for over a year now, but disabled as the API is not stable and there were more important stuff to deal with.
Filters in OpenSMTPD are standalone programs that are linked against a lib we provide to demonize and provide an event-based callback mechanism.
The filters can be very very easy and an example of a working filter could be as simple as:

void
mail_cb(uint64_t id, struct filter_mail *p, void *arg)
{
    /* block idiots */
    if (! strcmp(p->domain, "0pointer.net")) {
        filter_api_reject(id, 530, "You're not welcome, go away !");
        return;
    }

    filter_api_accept(id);
}
#TMPARH (0+2) / @like-all / 3725 дней назад
ipv6 ready BnW для ведрофона BnW на Реформале Викивач Котятки

Цоперайт © 2010-2016 @stiletto.