Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 10/10/2007, à 12:36

gubule

Procmail ne me livre pas mon courrier.

Bonjour,

Je viens de mettre en place un serveur de messagerie postfix avec Dovecot IMAP et POP.
tout fonctionne correctement.

Ce que je souhaiterais maintenant faire c'est que procmail me transporte les SPAMs dans une boite à Spam pour mes utilisateurs.

Depuis que j'ai configuré procmail la livraison du courrier ne fonctionne plus. Dans la configuration de procmail je ne vois rien d'anormal.


#Configuration de Procmail

VERBOSE=on

#On indique à procmail le chemin des programmes
PATH=/bin:/usr/bin

#On indique à procmail où se trouve votre répertoire de mail
MAILDIR=$HOME/Maildir

#Emplacement par defaut du courrier
DEFAULT=$MAILDIR/.  

#Cette ligne crée une « boîte à spam »
SPAMBOX=spam

# Chemin pour le fichier journal.
LOGFILE=$MAILDIR/procmail.log


# FILTRAGE 

#AntiSpam
:0
* ^Subject:.*[SPAM].*
$SPAMBOX

#tout ce qui n'est pas traité va dans la boite de réception
:0
$DEFAULT

Mon fournisseur d'acces a internet chez qui j'ai mes boites aux lettres externe marque l'objet des SPAM avec [SPAM] (ex : [SPAM] l'objet intiale du message)

le log me donne rien d'anormal

From administrateur@xxx.com  Wed Oct 10 12:14:07 2007
 Subject: test
  Folder: spam								    735
procmail: Match on "^Subject:.*[SPAM].*"
procmail: Assigning "LASTFOLDER=spam"
procmail: Opening "spam"
procmail: Acquiring kernel-lock
procmail: Notified comsat: "administrateur@735:/home/administrateur/Maildir/spam"
From administrateur@xxx.com  Wed Oct 10 12:26:37 2007
 Subject: [SPAM]
  Folder: spam								    787

voici ma config tt simple de postfix (main.cf)

#Postfix
relayhost = [smtp.fr.oleane.com]
mynetworks = 127.0.0.0/8 192.168.0.0/22
mydestination = xxx.com
mydomain = xxx.com

append_dot_mydomain = yes

home_mailbox = Maildir/

mailbox_command = /usr/bin/procmail

a votre avis qu'est ce qui ne va pas.

Par avance merci.

Hors ligne

#2 Le 10/10/2007, à 12:38

toniotonio

Re : Procmail ne me livre pas mon courrier.

fais voir les logs de postfix et procmail


Tutoriaux Postfix sur www.starbridge.org/spip
Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com

Hors ligne

#3 Le 10/10/2007, à 14:18

gubule

Re : Procmail ne me livre pas mon courrier.

procmail

From administrateur@xxx.com  Wed Oct 10 12:14:07 2007
 Subject: test
  Folder: spam                                    735
procmail: Match on "^Subject:.*[SPAM].*"
procmail: Assigning "LASTFOLDER=spam"
procmail: Opening "spam"
procmail: Acquiring kernel-lock
procmail: Notified comsat: "administrateur@735:/home/administrateur/Maildir/spam"
From administrateur@xxx.com  Wed Oct 10 12:26:37 2007
 Subject: [SPAM]
  Folder: spam                                    787

il  me marque des msg de ce type

j'ai ete voir dans les log de postfix. il sont vide,  sauf mail.warn

qui me repete tt le temp:

warning: dict_nis_init: NIS domain name not set - NIS lookup disabled

Hors ligne

#4 Le 10/10/2007, à 14:21

toniotonio

Re : Procmail ne me livre pas mon courrier.

tes logs de postfix sont vides ?
heu c'est pas normal, meme pas dans syslog ?

t'es sur qu'il tourne ?

sinon fais voir ton syslog.conf

Dernière modification par toniotonio (Le 10/10/2007, à 14:21)


Tutoriaux Postfix sur www.starbridge.org/spip
Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com

Hors ligne

#5 Le 10/10/2007, à 14:32

gubule

Re : Procmail ne me livre pas mon courrier.

Je redemarre le serveur des fois qu'il y ai un plantage.

le syslog.conf

mail.info            -/var/log/mail.info
mail.warn          -/var/log/mail.warn
mail.err             /var/log/mail.err

Hors ligne

#6 Le 10/10/2007, à 14:33

toniotonio

Re : Procmail ne me livre pas mon courrier.

smile on est pas sous windows non plus...
un redemarrage de postfix aurait suffit pour etre sur.

regarde le contenu de ces 3 fichiers


Tutoriaux Postfix sur www.starbridge.org/spip
Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com

Hors ligne

#7 Le 10/10/2007, à 14:38

gubule

Re : Procmail ne me livre pas mon courrier.

j'avai deja redemarré plusieur fois postfix.:)


les fichiers ne sont plus vide.

mail.log

Oct 10 14:26:13 nh-web-srv postfix/master[5098]: daemon started -- version 2.3.8, configuration /etc/postfix
Oct 10 14:26:14 nh-web-srv dovecot: Dovecot v1.0.rc17 starting up
Oct 10 14:32:30 nh-web-srv dovecot: imap-login: Login: user=<administrateur>, method=PLAIN, rip=192.168.0.212, lip=192.168.0.111
Oct 10 14:32:30 nh-web-srv dovecot: imap-login: Login: user=<renauddelhoume>, method=PLAIN, rip=192.168.0.212, lip=192.168.0.111
Oct 10 14:32:30 nh-web-srv dovecot: imap-login: Login: user=<badgubule>, method=PLAIN, rip=192.168.0.212, lip=192.168.0.111
Oct 10 14:35:35 nh-web-srv dovecot: imap-login: Login: user=<administrateur>, method=PLAIN, rip=192.168.0.212, lip=192.168.0.111
Oct 10 14:35:36 nh-web-srv dovecot: imap-login: Login: user=<renauddelhoume>, method=PLAIN, rip=192.168.0.212, lip=192.168.0.111
Oct 10 14:35:37 nh-web-srv dovecot: imap-login: Login: user=<badgubule>, method=PLAIN, rip=192.168.0.212, lip=192.168.0.111
Oct 10 14:35:47 nh-web-srv postfix/smtpd[5813]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Oct 10 14:35:47 nh-web-srv postfix/smtpd[5813]: connect from inf2.xxx.local[192.168.0.212]
Oct 10 14:35:47 nh-web-srv postfix/smtpd[5813]: AA6211F781F4: client=inf2.xxx.local[192.168.0.212]
Oct 10 14:35:47 nh-web-srv postfix/cleanup[5816]: AA6211F781F4: message-id=<470CC720.1040708@xxx.com>
Oct 10 14:35:47 nh-web-srv postfix/qmgr[5120]: AA6211F781F4: from=<badgubule@xxx.com>, size=566, nrcpt=1 (queue active)
Oct 10 14:35:47 nh-web-srv postfix/smtpd[5813]: disconnect from inf2.xxx.local[192.168.0.212]
Oct 10 14:35:47 nh-web-srv postfix/local[5818]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Oct 10 14:35:47 nh-web-srv postfix/local[5818]: AA6211F781F4: to=<administrateur@xxx.com>, orig_to=<nh@xxx.com>, relay=local, delay=0.16, delays=0.07/0.01/0/0.08, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail)
Oct 10 14:35:47 nh-web-srv postfix/local[5818]: AA6211F781F4: to=<renauddelhoume@xxx.com>, orig_to=<nh@xxx.com>, relay=local, delay=0.19, delays=0.07/0.01/0/0.11, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail)
Oct 10 14:35:47 nh-web-srv postfix/local[5818]: AA6211F781F4: to=<badgubule@xxx.com>, orig_to=<nh@xxx.com>, relay=local, delay=0.22, delays=0.07/0.01/0/0.14, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail)
Oct 10 14:35:47 nh-web-srv postfix/qmgr[5120]: AA6211F781F4: removed

mail.info

Oct 10 14:26:13 nh-web-srv postfix/master[5098]: daemon started -- version 2.3.8, configuration /etc/postfix
Oct 10 14:26:14 nh-web-srv dovecot: Dovecot v1.0.rc17 starting up
Oct 10 14:32:30 nh-web-srv dovecot: imap-login: Login: user=<administrateur>, method=PLAIN, rip=192.168.0.212, lip=192.168.0.111
Oct 10 14:32:30 nh-web-srv dovecot: imap-login: Login: user=<renauddelhoume>, method=PLAIN, rip=192.168.0.212, lip=192.168.0.111
Oct 10 14:32:30 nh-web-srv dovecot: imap-login: Login: user=<badgubule>, method=PLAIN, rip=192.168.0.212, lip=192.168.0.111
Oct 10 14:35:35 nh-web-srv dovecot: imap-login: Login: user=<administrateur>, method=PLAIN, rip=192.168.0.212, lip=192.168.0.111
Oct 10 14:35:36 nh-web-srv dovecot: imap-login: Login: user=<renauddelhoume>, method=PLAIN, rip=192.168.0.212, lip=192.168.0.111
Oct 10 14:35:37 nh-web-srv dovecot: imap-login: Login: user=<badgubule>, method=PLAIN, rip=192.168.0.212, lip=192.168.0.111
Oct 10 14:35:47 nh-web-srv postfix/smtpd[5813]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Oct 10 14:35:47 nh-web-srv postfix/smtpd[5813]: connect from inf2.xxx.local[192.168.0.212]
Oct 10 14:35:47 nh-web-srv postfix/smtpd[5813]: AA6211F781F4: client=inf2.xxx.local[192.168.0.212]
Oct 10 14:35:47 nh-web-srv postfix/cleanup[5816]: AA6211F781F4: message-id=<470CC720.1040708@xxx.com>
Oct 10 14:35:47 nh-web-srv postfix/qmgr[5120]: AA6211F781F4: from=<badgubule@xxx.com>, size=566, nrcpt=1 (queue active)
Oct 10 14:35:47 nh-web-srv postfix/smtpd[5813]: disconnect from inf2.xxx.local[192.168.0.212]
Oct 10 14:35:47 nh-web-srv postfix/local[5818]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Oct 10 14:35:47 nh-web-srv postfix/local[5818]: AA6211F781F4: to=<administrateur@xxx.com>, orig_to=<nh@xxx.com>, relay=local, delay=0.16, delays=0.07/0.01/0/0.08, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail)
Oct 10 14:35:47 nh-web-srv postfix/local[5818]: AA6211F781F4: to=<renauddelhoume@xxx.com>, orig_to=<nh@xxx.com>, relay=local, delay=0.19, delays=0.07/0.01/0/0.11, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail)
Oct 10 14:35:47 nh-web-srv postfix/local[5818]: AA6211F781F4: to=<badgubule@xxx.com>, orig_to=<nh@xxx.com>, relay=local, delay=0.22, delays=0.07/0.01/0/0.14, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail)
Oct 10 14:35:47 nh-web-srv postfix/qmgr[5120]: AA6211F781F4: removed

Hors ligne

#8 Le 10/10/2007, à 14:48

toniotonio

Re : Procmail ne me livre pas mon courrier.

modifie ton mailbox_command dans le main.cf

mailbox_command = /usr/bin/procmail -a "$EXTENSION"

puis poste un postconf -n

teste et postes et les logs de reception d'un mail


Tutoriaux Postfix sur www.starbridge.org/spip
Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com

Hors ligne

#9 Le 10/10/2007, à 15:02

gubule

Re : Procmail ne me livre pas mon courrier.

postconf -n

append_dot_mydomain = yes
config_directory = /etc/postfix
home_mailbox = Maildir/
mailbox_command = /usr/bin/procmail -a "$EXTENSION"
mydestination = xxx.com
mydomain = xxx.com
mynetworks = 127.0.0.0/8 192.168.0.0/22
relayhost = [smtp.fr.oleane.com]

procmail.log

From badgubule@xxx.com  Wed Oct 10 14:55:20 2007
 Subject: message de test
  Folder: spam								    765

mail.info

Oct 10 14:50:19 nh-web-srv postfix/postfix-script: warning: group or other writable: /etc/postfix/./main.cf~
Oct 10 14:52:02 nh-web-srv postfix/master[5098]: terminating on signal 15
Oct 10 14:52:02 nh-web-srv postfix/master[6293]: daemon started -- version 2.3.8, configuration /etc/postfix
Oct 10 14:52:31 nh-web-srv postfix/smtpd[6307]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Oct 10 14:52:31 nh-web-srv postfix/smtpd[6307]: connect from inf2.xxx.local[192.168.0.212]
Oct 10 14:52:31 nh-web-srv postfix/smtpd[6307]: 8FAE51F781F4: client=inf2.xxx.local[192.168.0.212]
Oct 10 14:52:31 nh-web-srv postfix/cleanup[6310]: 8FAE51F781F4: message-id=<470CCB0C.1030508@xxx.com>
Oct 10 14:52:31 nh-web-srv postfix/qmgr[6296]: 8FAE51F781F4: from=<badgubule@xxx.com>, size=594, nrcpt=1 (queue active)
Oct 10 14:52:31 nh-web-srv postfix/smtpd[6307]: disconnect from inf2.xxx.local[192.168.0.212]
Oct 10 14:52:31 nh-web-srv postfix/local[6311]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Oct 10 14:52:31 nh-web-srv postfix/local[6311]: 8FAE51F781F4: to=<administrateur@xxx.com>, relay=local, delay=0.08, delays=0.07/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -a "$EXTENSION")
Oct 10 14:52:31 nh-web-srv postfix/qmgr[6296]: 8FAE51F781F4: removed
Oct 10 14:52:47 nh-web-srv dovecot: imap-login: Login: user=<administrateur>, method=PLAIN, rip=192.168.0.212, lip=192.168.0.111
Oct 10 14:52:50 nh-web-srv last message repeated 2 times
Oct 10 14:53:49 nh-web-srv postfix/smtpd[6307]: connect from inf2.xxx.local[192.168.0.212]
Oct 10 14:53:49 nh-web-srv postfix/smtpd[6307]: 40EA41F781F4: client=inf2.xxx.local[192.168.0.212]
Oct 10 14:53:49 nh-web-srv postfix/cleanup[6310]: 40EA41F781F4: message-id=<470CCB59.3010603@xxx.com>
Oct 10 14:53:49 nh-web-srv postfix/qmgr[6296]: 40EA41F781F4: from=<administrateur@xxx.com>, size=598, nrcpt=1 (queue active)
Oct 10 14:53:49 nh-web-srv postfix/smtpd[6307]: disconnect from inf2.xxx.local[192.168.0.212]
Oct 10 14:53:49 nh-web-srv postfix/local[6311]: 40EA41F781F4: to=<administrateur@xxx.com>, relay=local, delay=0.03, delays=0.01/0/0/0.02, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -a "$EXTENSION")
Oct 10 14:53:49 nh-web-srv postfix/qmgr[6296]: 40EA41F781F4: removed
Oct 10 14:55:20 nh-web-srv postfix/smtpd[6307]: connect from inf2.xxx.local[192.168.0.212]
Oct 10 14:55:20 nh-web-srv postfix/smtpd[6307]: 8097F1F781F4: client=inf2.xxx.local[192.168.0.212]
Oct 10 14:55:20 nh-web-srv postfix/cleanup[6310]: 8097F1F781F4: message-id=<470CCBB5.3070302@xxx.com>
Oct 10 14:55:20 nh-web-srv postfix/qmgr[6296]: 8097F1F781F4: from=<badgubule@xxx.com>, size=591, nrcpt=1 (queue active)
Oct 10 14:55:20 nh-web-srv postfix/smtpd[6307]: disconnect from inf2.xxx.local[192.168.0.212]
Oct 10 14:55:20 nh-web-srv postfix/local[6311]: 8097F1F781F4: to=<badgubule@xxx.com>, relay=local, delay=0.07, delays=0.06/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -a "$EXTENSION")
Oct 10 14:55:20 nh-web-srv postfix/qmgr[6296]: 8097F1F781F4: removed
Oct 10 14:55:27 nh-web-srv dovecot: imap-login: Login: user=<badgubule>, method=PLAIN, rip=192.168.0.212, lip=192.168.0.111
Oct 10 14:55:46 nh-web-srv last message repeated 2 times
Oct 10 14:59:06 nh-web-srv postfix/postfix-script: warning: group or other writable: /etc/postfix/./main.cf~
Oct 10 14:59:12 nh-web-srv postfix/postfix-script: warning: group or other writable: /etc/postfix/./main.cf~

mail.log

Oct 10 14:50:19 nh-web-srv postfix/postfix-script: warning: group or other writable: /etc/postfix/./main.cf~
Oct 10 14:52:02 nh-web-srv postfix/master[5098]: terminating on signal 15
Oct 10 14:52:02 nh-web-srv postfix/master[6293]: daemon started -- version 2.3.8, configuration /etc/postfix
Oct 10 14:52:31 nh-web-srv postfix/smtpd[6307]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Oct 10 14:52:31 nh-web-srv postfix/smtpd[6307]: connect from inf2.xxx.local[192.168.0.212]
Oct 10 14:52:31 nh-web-srv postfix/smtpd[6307]: 8FAE51F781F4: client=inf2.xxx.local[192.168.0.212]
Oct 10 14:52:31 nh-web-srv postfix/cleanup[6310]: 8FAE51F781F4: message-id=<470CCB0C.1030508@xxx.com>
Oct 10 14:52:31 nh-web-srv postfix/qmgr[6296]: 8FAE51F781F4: from=<badgubule@xxx.com>, size=594, nrcpt=1 (queue active)
Oct 10 14:52:31 nh-web-srv postfix/smtpd[6307]: disconnect from inf2.xxx.local[192.168.0.212]
Oct 10 14:52:31 nh-web-srv postfix/local[6311]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Oct 10 14:52:31 nh-web-srv postfix/local[6311]: 8FAE51F781F4: to=<administrateur@xxx.com>, relay=local, delay=0.08, delays=0.07/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -a "$EXTENSION")
Oct 10 14:52:31 nh-web-srv postfix/qmgr[6296]: 8FAE51F781F4: removed
Oct 10 14:52:47 nh-web-srv dovecot: imap-login: Login: user=<administrateur>, method=PLAIN, rip=192.168.0.212, lip=192.168.0.111
Oct 10 14:52:50 nh-web-srv last message repeated 2 times
Oct 10 14:53:49 nh-web-srv postfix/smtpd[6307]: connect from inf2.xxx.local[192.168.0.212]
Oct 10 14:53:49 nh-web-srv postfix/smtpd[6307]: 40EA41F781F4: client=inf2.xxx.local[192.168.0.212]
Oct 10 14:53:49 nh-web-srv postfix/cleanup[6310]: 40EA41F781F4: message-id=<470CCB59.3010603@xxx.com>
Oct 10 14:53:49 nh-web-srv postfix/qmgr[6296]: 40EA41F781F4: from=<administrateur@xxx.com>, size=598, nrcpt=1 (queue active)
Oct 10 14:53:49 nh-web-srv postfix/smtpd[6307]: disconnect from inf2.xxx.local[192.168.0.212]
Oct 10 14:53:49 nh-web-srv postfix/local[6311]: 40EA41F781F4: to=<administrateur@xxx.com>, relay=local, delay=0.03, delays=0.01/0/0/0.02, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -a "$EXTENSION")
Oct 10 14:53:49 nh-web-srv postfix/qmgr[6296]: 40EA41F781F4: removed
Oct 10 14:55:20 nh-web-srv postfix/smtpd[6307]: connect from inf2.xxx.local[192.168.0.212]
Oct 10 14:55:20 nh-web-srv postfix/smtpd[6307]: 8097F1F781F4: client=inf2.xxx.local[192.168.0.212]
Oct 10 14:55:20 nh-web-srv postfix/cleanup[6310]: 8097F1F781F4: message-id=<470CCBB5.3070302@xxx.com>
Oct 10 14:55:20 nh-web-srv postfix/qmgr[6296]: 8097F1F781F4: from=<badgubule@xxx.com>, size=591, nrcpt=1 (queue active)
Oct 10 14:55:20 nh-web-srv postfix/smtpd[6307]: disconnect from inf2.xxx.local[192.168.0.212]
Oct 10 14:55:20 nh-web-srv postfix/local[6311]: 8097F1F781F4: to=<badgubule@xxx.com>, relay=local, delay=0.07, delays=0.06/0/0/0.01, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -a "$EXTENSION")
Oct 10 14:55:20 nh-web-srv postfix/qmgr[6296]: 8097F1F781F4: removed
Oct 10 14:55:27 nh-web-srv dovecot: imap-login: Login: user=<badgubule>, method=PLAIN, rip=192.168.0.212, lip=192.168.0.111
Oct 10 14:55:46 nh-web-srv last message repeated 2 times
Oct 10 14:59:06 nh-web-srv postfix/postfix-script: warning: group or other writable: /etc/postfix/./main.cf~
Oct 10 14:59:12 nh-web-srv postfix/postfix-script: warning: group or other writable: /etc/postfix/./main.cf~

Hors ligne

#10 Le 10/10/2007, à 15:08

toniotonio

Re : Procmail ne me livre pas mon courrier.

modifie ton procmailrc

DEFAULT=$HOME/Maildir/
MAILDIR=$HOME/Maildir
LOGFILE=$MAILDIR/procmail.log


DROPPRIVS=YES
VERBOSE=yes
LOGABSTRACT=all
SPAMBOX=spam

# FILTRAGE 

#AntiSpam
:0
* ^Subject:.*[SPAM].*
$SPAMBOX

Tutoriaux Postfix sur www.starbridge.org/spip
Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com

Hors ligne

#11 Le 10/10/2007, à 15:29

gubule

Re : Procmail ne me livre pas mon courrier.

La livraison du courrier s'effectue mais il semble qu'il n'arrive pas mettre le courrier dans le repertoire spam.

procmail.log

From badgubule@xxx.com  Wed Oct 10 15:22:30 2007
 Subject: [SPAM] test de spam
  Folder: /home/badgubule/Maildir/new/1192022550.7195_0.nh-web-srv	    717
procmail: [7240] Wed Oct 10 15:24:49 2007
procmail: Assigning "LOGABSTRACT=all"
procmail: Assigning "SPAMBOX=spam"
procmail: Match on "^Subject:.*[SPAM].*"
procmail: Assigning "LASTFOLDER=spam"
procmail: Opening "spam"
procmail: Error while writing to "spam"
procmail: Assigning "PATH=/home/badgubule/bin:/usr/local/bin:/usr/bin:/bin"
procmail: Assigning "LASTFOLDER=/home/badgubule/Maildir/new/1192022689.7240_0.nh-web-srv"
procmail: Notified comsat: "badgubule@0:/home/badgubule/Maildir/new/1192022689.7240_0.nh-web-srv"

Hors ligne

#12 Le 10/10/2007, à 15:31

toniotonio

Re : Procmail ne me livre pas mon courrier.

ok c'est normal

modifie la fin du fichier:

# FILTRAGE 

#AntiSpam
:0:
* ^Subject:.*[SPAM].*
$HOME/Maildir/.spam/

Tutoriaux Postfix sur www.starbridge.org/spip
Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com

Hors ligne

#13 Le 10/10/2007, à 15:41

gubule

Re : Procmail ne me livre pas mon courrier.

Apparament il n'arrive aps a ecrire dans le dossier de spam

procmail.log

From administrateur@xxx.com  Wed Oct 10 15:35:08 2007
 Subject: [SPAM]
  Folder: /home/badgubule/Maildir/new/1192023308.7547_0.nh-web-srv	    704
procmail: [7680] Wed Oct 10 15:36:33 2007
procmail: Assigning "LOGABSTRACT=all"
procmail: Assigning "SPAMBOX=spam"
procmail: Match on "^Subject:.*[SPAM].*"
procmail: Assigning "LASTFOLDER=/home/badgubule/maildir/.spam"
procmail: Opening "/home/badgubule/maildir/.spam"
procmail: Error while writing to "/home/badgubule/maildir/.spam"
procmail: Assigning "PATH=/home/badgubule/bin:/usr/local/bin:/usr/bin:/bin"
procmail: Assigning "LASTFOLDER=/home/badgubule/Maildir/new/1192023393.7680_0.nh-web-srv"
procmail: Notified comsat: "badgubule@0:/home/badgubule/Maildir/new/1192023393.7680_0.nh-web-srv"

esc-ce qu'il faut je recrer mon dossier spam avec un

maildirmake.dovecot /Maildir/.spam

ou quelque chose du genre ?

Hors ligne

#14 Le 10/10/2007, à 15:45

toniotonio

Re : Procmail ne me livre pas mon courrier.

il existe ce dossier ?

ls -la /home/badgubule/Maildir/


sinon je ne connais pas dovecot mais a priori la creation d'un repertoire c'est:

maildirmake -f spam /home/badgubule/Maildir/

Dernière modification par toniotonio (Le 10/10/2007, à 15:46)


Tutoriaux Postfix sur www.starbridge.org/spip
Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com

Hors ligne

#15 Le 10/10/2007, à 15:49

gubule

Re : Procmail ne me livre pas mon courrier.

ls -la /home/badgubule/Maildir/

root@nh-web-srv:~# ls -la /home/badgubule/Maildir/
total 92
drwxrwxrwx 8 badgubule badgubule  4096 2007-10-10 15:44 .
drwxr-xr-x 3 badgubule badgubule  4096 2007-10-10 11:35 ..
drwxrwxrwx 2 badgubule badgubule  4096 2007-10-10 15:44 cur
-rwx--x--x 1 badgubule badgubule   252 2007-10-10 15:44 dovecot.index
-rwx--x--x 1 badgubule badgubule 22528 2007-10-10 15:44 dovecot.index.cache
-rwx--x--x 1 badgubule badgubule  2880 2007-10-10 15:44 dovecot.index.log
-rw------- 1 badgubule badgubule   344 2007-10-10 15:44 dovecot-uidlist
-rwx--x--x 1 badgubule badgubule   751 2007-10-10 15:17 msg.-JoH
-rwx--x--x 1 badgubule badgubule   756 2007-10-10 15:16 msg.zJoH
drwxrwxrwx 2 badgubule badgubule  4096 2007-10-10 15:44 new
-rwx--x--x 1 root      mail       7660 2007-10-10 15:44 procmail.log
drwxrwxrwx 5 badgubule badgubule  4096 2007-10-10 15:34 .Sent
-rwx--x--x 1 root      mail       2226 2007-10-10 14:55 spam
drwxrwxrwx 5 badgubule badgubule  4096 2007-10-10 15:34 .spam
-rwx--x--x 1 badgubule badgubule    16 2007-10-10 14:55 subscriptions
drwxrwxrwx 2 badgubule badgubule  4096 2007-10-10 15:44 tmp
drwxrwxrwx 5 badgubule badgubule  4096 2007-10-10 15:32 .Trash

Hors ligne

#16 Le 10/10/2007, à 15:55

toniotonio

Re : Procmail ne me livre pas mon courrier.

fais voir ton procmailrc


Tutoriaux Postfix sur www.starbridge.org/spip
Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com

Hors ligne

#17 Le 10/10/2007, à 15:57

gubule

Re : Procmail ne me livre pas mon courrier.

DEFAULT=$HOME/Maildir/
MAILDIR=$HOME/Maildir
LOGFILE=$MAILDIR/procmail.log


DROPPRIVS=YES
VERBOSE=yes
LOGABSTRACT=all
SPAMBOX=spam

# FILTRAGE 

#AntiSpam
:0
* ^Subject:.*[SPAM].*
$HOME/maildir/.spam

Hors ligne

#18 Le 10/10/2007, à 15:59

toniotonio

Re : Procmail ne me livre pas mon courrier.

tu as mal recopié mon post de tout a l'heure:

# FILTRAGE 

#AntiSpam
:0:
* ^Subject:.*[SPAM].*
$HOME/Maildir/.spam/

(majuscule sur Maildir et :0: au debut)


Tutoriaux Postfix sur www.starbridge.org/spip
Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com

Hors ligne

#19 Le 10/10/2007, à 16:15

gubule

Re : Procmail ne me livre pas mon courrier.

il ne vx toujours pas ecrire dans le repertoire spam

procmail.loc

From administrateur@nievrehabitat.com  Wed Oct 10 16:09:25 2007
 Subject: [SPAM]
  Folder: /home/badgubule/Maildir/new/1192025421.8610_0.nh-web-srv	    702
procmail: [8681] Wed Oct 10 16:11:14 2007
procmail: Assigning "LOGABSTRACT=all"
procmail: Assigning "SPAMBOX=spam"
procmail: Match on "^Subject:.*[SPAM].*"
procmail: Locking "/home/badgubule/maildir/.spam/.lock"
procmail: Error while writing to "/home/badgubule/maildir/.spam/_pHC.C2NDHB.nh-web-srv"
procmail: [8681] Wed Oct 10 16:11:22 2007
procmail: Locking "/home/badgubule/maildir/.spam/.lock"
procmail: Error while writing to "/home/badgubule/maildir/.spam/_pHC,C2NDHB.nh-web-srv"
procmail: [8681] Wed Oct 10 16:11:30 2007
procmail: Locking "/home/badgubule/maildir/.spam/.lock"
procmail: Error while writing to "/home/badgubule/maildir/.spam/_pHC+C2NDHB.nh-web-srv"
procmail: [8681] Wed Oct 10 16:11:38 2007
procmail: Locking "/home/badgubule/maildir/.spam/.lock"
procmail: Error while writing to "/home/badgubule/maildir/.spam/_pHC%C2NDHB.nh-web-srv"
procmail: [8681] Wed Oct 10 16:11:46 2007
procmail: Locking "/home/badgubule/maildir/.spam/.lock"
procmail: Error while writing to "/home/badgubule/maildir/.spam/_pHC.i2NDHB.nh-web-srv"
procmail: [8681] Wed Oct 10 16:11:54 2007
procmail: Locking "/home/badgubule/maildir/.spam/.lock"
procmail: Error while writing to "/home/badgubule/maildir/.spam/_pHC,i2NDHB.nh-web-srv"
procmail: [8681] Wed Oct 10 16:12:02 2007
procmail: Locking "/home/badgubule/maildir/.spam/.lock"
procmail: Error while writing to "/home/badgubule/maildir/.spam/_pHC+i2NDHB.nh-web-srv"
procmail: [8681] Wed Oct 10 16:12:10 2007
procmail: Locking "/home/badgubule/maildir/.spam/.lock"
procmail: Error while writing to "/home/badgubule/maildir/.spam/_pHC%i2NDHB.nh-web-srv"
procmail: Lock failure on "/home/badgubule/maildir/.spam/.lock"
procmail: Unable to treat as directory "/home/badgubule/maildir/.spam"
procmail: Assigning "LASTFOLDER=/home/badgubule/maildir/.spam"
procmail: Opening "/home/badgubule/maildir/.spam"
procmail: Error while writing to "/home/badgubule/maildir/.spam"
procmail: Assigning "PATH=/home/badgubule/bin:/usr/local/bin:/usr/bin:/bin"
procmail: Assigning "LASTFOLDER=/home/badgubule/Maildir/new/1192025530.8681_0.nh-web-srv"
procmail: Notified comsat: "badgubule@0:/home/badgubule/Maildir/new/1192025530.8681_0.nh-web-srv"
From badgubule@nievrehabitat.com  Wed Oct 10 16:11:14 2007
 Subject: [SPAM] Est ce que tu va aller ds le repertoire oui
  Folder: /home/badgubule/Maildir/new/1192025530.8681_0.nh-web-srv	    741

je ne vois pas pourquoi il ne veux pas ecrire dans ce satané dossier.

Hors ligne

#20 Le 10/10/2007, à 16:19

gubule

Re : Procmail ne me livre pas mon courrier.

Je vais créer un nouvel utilsateur et teste maintenant que la configuration semble propre.

Hors ligne

#21 Le 10/10/2007, à 16:33

gubule

Re : Procmail ne me livre pas mon courrier.

J'ai créé mon  nouvel utilisateur et testé,

il avait la meme erreure.

un malheureux espace dans procmailrc empechait procmail de trouver l'acces au repertoire SPAM et mettait donc le message la ou il le pouvait.

procmailrc

DEFAULT=$HOME/Maildir/
MAILDIR=$HOME/Maildir
LOGFILE=$MAILDIR/procmail.log


DROPPRIVS=YES
VERBOSE=yes
LOGABSTRACT=all
SPAMBOX=spam

# FILTRAGE 

#AntiSpam
:0:
* ^Subject:.*[SPAM].*
$HOME/Maildir/.spam/

maintenant je m'attaque à coller une interface web sur tout ca et je met en production.

Merci beaucoup pour ton aide.
big_smile

Hors ligne

#22 Le 11/10/2007, à 10:02

gubule

Re : Procmail ne me livre pas mon courrier.

en fait non ca marche pas:( tout mes mail vont dans spam

Hors ligne

#23 Le 11/10/2007, à 10:03

toniotonio

Re : Procmail ne me livre pas mon courrier.

refais voir ton procmailrc a jour


Tutoriaux Postfix sur www.starbridge.org/spip
Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com

Hors ligne

#24 Le 11/10/2007, à 10:27

gubule

Re : Procmail ne me livre pas mon courrier.

LOGFILE=$HOME/Maildir/procmail.log
DROPPRIVS=YES
VERBOSE=yes
LOGABSTRACT=all

# FILTRAGE 

#AntiSpam
:0:
* ^Subject:[SPAM]
$HOME/Maildir/.spam/

#DEFAULT
:0:
$HOME/Maildir/

Hors ligne

#25 Le 11/10/2007, à 10:29

toniotonio

Re : Procmail ne me livre pas mon courrier.

tu as tout changé sad

ca ne marche pas ca ?:

DEFAULT=$HOME/Maildir/
MAILDIR=$HOME/Maildir
LOGFILE=$MAILDIR/procmail.log


DROPPRIVS=YES
VERBOSE=yes
LOGABSTRACT=all


# FILTRAGE 

#AntiSpam
:0:
* ^Subject:.*[SPAM].*
$HOME/Maildir/.spam/

Tutoriaux Postfix sur www.starbridge.org/spip
Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com

Hors ligne