[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [linux] SuSE 7.1/Postfix/tables
En effet, la doc Postfix n'est pas très à jours. (la meilleur solution est
de regarder les samples dans les config)
Pour les headers checks c'est assez simples :
dans le fichier /etc/postfix/header_checks
tu peux placer cela :
/^Subject: ILOVEYOU/ REJECT
/^From: .*hahaha@sexyfun.net/ REJECT
(j'utilise ce genre de truc pour jetter les conneries de virus...)
Tu meme controller le body et jetter les vbs
/etc/postfix/body_checks
/^Content.*\.vbs/ REJECT
Tu dois juster placer cela dans ta config principale (main.cf)
header_checks = regexp:/etc/postfix/header_checks
body_checks = regexp:/etc/postfix/body_checks
Le virtual mapping fonctionne comme le virtual map sendmail.
Doc avec divers liens :
http://www.redhat.com/support/docs/faqs/RH-postfix-FAQ/book1.html
http://www.stahl.bau.tu-bs.de/~hildeb/postfix/
http://www.linux-france.org/article/mail/postfix-jaco/
hope this helps
alx
On Thu, 9 Aug 2001, blenderman wrote:
>
> Idem pour moi...la doc de postfix est très mal foutue, je n'ai jamais
> trouvé de bon exemples...
>
> -pol-
>
>
> On Thu, 9 Aug 2001, Alain Barthélemy wrote:
>
> > Bonjour,
> >
> > J'emménage petit-à-petit mon petit Postfix. Cela marche pas trop mal mais je
> > me heurte à des petits problèmes pratiques.
> >
> > Pour les configurations avancées de Postfix, on mentionne des tables
> > invoquées par des instructions de la forme:
> >
> > relocated_maps=
> >
> > Dans le répertoire /etc/postfix, je trouve le fichier "relocated" dont je
> > donne un extrait:
> >
> > # SYNOPSIS
> > # postmap /etc/postfix/relocated
> > #
> > # DESCRIPTION
> > # The optional relocated table provides the information that
> > # is used in "user has moved to new_location" bounce mes-
> > # sages.
> > #
> > # Normally, the relocated table is specified as a text file
> > # that serves as input to the postmap(1) command. The
> > # result, an indexed file in dbm or db format, is used for
> > # fast searching by the mail system. Execute the command
> > # postmap /etc/postfix/relocated in order to rebuild the
> > # indexed file after changing the relocated table.
> > #
> >
> > Mais nulle part il est mentionné où trouver ou comment créer, gérer et
> > completer ces tables
> >
> > Idem instruction alias_database=hash:/etc/aliases
> > qui renvoit tout naturellement à la table /etc/aliases où les enregistrements
> > apparaissent sous la forme
> > alias: original
> >
> > Si j'ai une adresse mail alain@lx93.ihe.be, je suppose donc que si j'ajoute
> > bartydeux: alain
> >
> > tout mail envoyé à bartydeux@lx93.ihe.be arrivera à alain@lx93.ihe.be
> >
> > Autre exemple: configuration de filtrage des mails
> >
> > Je lis: "the smtpd_client_restrictions parameter restricts what clients this
> > system accepts SMTP connections from"
> >
> > Exemples: smtpd_clients_restrictions=hash:/etc/postfix/access
> >
> > Le fichier etc/postfix/access
> >
> > le fichier /etc/postfix/access existe mais c'est du bla-bla du style:
> >
> > # DESCRIPTION
> > # The optional access table directs the Postfix SMTP server
> > # to selectively reject or accept mail from or to specific
> > # hosts, domains, networks, host addresses or mail
> > # addresses.
> > #
> > # Normally, the access table is specified as a text file
> > # that serves as input to the postmap(1) command. The
> > # result, an indexed file in dbm or db format, is used for
> > # fast searching by the mail system. Execute the command
> > # postmap /etc/postfix/access in order to rebuild the
> > # indexed file after changing the access table.
> >
> > Comment rédiger ce fichier/table?? (/etc/postfix/access.db???)
> >
> > Le pire est quand le lis l'instruction:
> >
> > header_checks=regexp:/etc/postfix/header_checks
> >
> > Comment mettre en forme ces expressions régulières???
> > (regexp=/rejette_cette_adresse/??)
> >
> > Je suis donc planté, je cherche un mode d'emploi clair.
> >
> > Merci pour tout tuyau
> >
> >
> > --
> > Alain Barthélemy
> > Section de Biosécurité et Biotechnologie
> > Institut de Santé Publique
> > R. Juliette Wytsman,14
> > B-1050 Bruxelles
> > tel: 02/642 52 93
> > fax: 02/642 52 92
> >
> > [ Soyez précis dans vos sujets svp afin de déterminer directement ]
> > [ le type de demande... ]
> > [ Pour vous (dés)inscrire, aller sur http://linuxbe.org/ml.php ]
> > [ Archives de la mailing list: http://archives.linuxbe.org/linux/ ]
> > [ http://LinuxBe.org Contact: listmaster@linuxbe.org ]
> >
> >
>
>
> [ Soyez précis dans vos sujets svp afin de déterminer directement ]
> [ le type de demande... ]
> [ Pour vous (dés)inscrire, aller sur http://linuxbe.org/ml.php ]
> [ Archives de la mailing list: http://archives.linuxbe.org/linux/ ]
> [ http://LinuxBe.org Contact: listmaster@linuxbe.org ]
>
--
---
Alexandre Dulaunoy
Work : http://www.conostix.com/ adulau@conostix.com
Private : http://www.thinkingsecure.com/ adulau@thinkingsecure.com
"Liberty is the great parent of science and of virtue; and a nation will
be great in both in proportion as it is free. " T. Jefferson
[ Soyez précis dans vos sujets svp afin de déterminer directement ]
[ le type de demande... ]
[ Pour vous (dés)inscrire, aller sur http://linuxbe.org/ml.php ]
[ Archives de la mailing list: http://archives.linuxbe.org/linux/ ]
[ http://LinuxBe.org Contact: listmaster@linuxbe.org ]