logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 29-07-2017 15:17:48

tramberlimpe
Membre
Distrib. : Debian GNU/Linux bookworm/sid
Noyau : Linux 5.19.0-2-amd64
(G)UI : Sway
Inscription : 24-09-2012

Procmail - suspicious rcfile

Bonjour,

j'utilise mutt sur ma debian stretch.

Je suis passé à POP3 récemment.
Alors j'utilise getmail et procmail.

Getmail fonctionne bien tout  seul, mais dès que je le paramètre pour sortir par procmail, le retour est le suivant : 


Delivery error (command procmail 11049 error (73, procmail: Suspicious rcfile "/home/tramber/.procmailrc"
procmail: Couldn't read "/home/tramber/.procmailrc"))
  msg 3694/3695 (2558 bytes), delivery error (command procmail 11049 error (73, procmail: Suspicious rcfile "/home/tramber/.procmailrc"
procmail: Couldn't read "/home/tramber/.procmailrc"))
Delivery error (command procmail 11050 error (73, procmail: Suspicious rcfile "/home/tramber/.procmailrc"
procmail: Couldn't read "/home/tramber/.procmailrc"))
  msg 3695/3695 (2355 bytes), delivery error (command procmail 11050 error (73, procmail: Suspicious rcfile "/home/tramber/.procmailrc"
procmail: Couldn't read "/home/tramber/.procmailrc"))
  2 messages (4913 bytes) retrieved, 3693 skipped
 




J'ai parcouru les internets et mis les droits nécessaires au fichier .procmailrc  :

-rw-r--r-- 1 tramber tramber 928 juil. 29 16:01 .procmailrc
 


(au fait, moi c'est tramber, salut :-) )

Voici mon getmailrc  :

[options]
# print out some information
verbose = 1
# just read new mails
read_all = false
# don't delete the mails on the server
delete = false
message_log = /home/tramber/.getmail/log

[retriever]
type = SimplePOP3Retriever
server = mon.domain.fr
username = mon.mail@mondomain.fr
password = monpassword

[destination]
type = MDA_external
path = /usr/bin/procmail
# procmail requires either that the message starts with an mboxrd-style
# "From " line (which getmail can generate by setting "unixfrom" to True), or
# that the -f option is provided as below.
arguments = ("-f", "%(sender)", "-m", "/home/tramber/.procmailrc")
 




et mon .procmailrc

PATH=/bin:/usr/bin
MAILDIR=$HOME/.mutt/mail/finley/
DEFAULT=$HOME/.mutt/mail/finley/inbox
LOGFILE=/dev/null
SHELL=/bin/sh
#SPAMBOX=spam

VERBOSE=no


# By using the f and w flags and no condition, spamassassin is going add the X-Spam headers to every single mail, and then process other recipes.
# # No lockfile is used.
:0fw
| /usr/bin/vendor_perl/spamc

 # Messages with a 5 stars or higher spam level are going to be deleted right away
 # And since we never touch any inbox, no lockfile is needed.
:0
* ^X-Spam-Level: \*\*\*\*\*
/dev/null

 # If a mail with spam-status:yes was not deleted by previous line, it could be a false positive. So its going to be sent to an spam mailbox instead.
 # Since we do not want the possibility of one procmail instance messing with another procmail instance, we use a lockfile
:0:
* ^X-Spam-Status: Yes
$HOME/.mutt/mail/finley/spam

# all other mails will be moved to the inbox
:0
inbox/
 



Getmail tout seul fonctionne bien. Il rappatrie les messages comme il faut si en sortie on met plutôt le chemin du dossier.

Si vous avez des idées, ce serait cool de me les indiquer.

Bonne journée

Dernière modification par tramberlimpe (29-07-2017 15:19:57)


Ni dieu, ni maître, ni slogan !

Je pense donc Jessie.
Dura Stretch, sed Stretch.

Hors ligne

#2 30-07-2017 09:28:43

Croutons
Membre
Distrib. : Debian12
Noyau : Linux 6.1.0-13-amd64
(G)UI : Fluxbox(NakeDeb)
Inscription : 16-12-2016

Re : Procmail - suspicious rcfile

Bonjour
Tu es sur que tu as les bons droit sur le répertoire caché .mutt? car je vois sur les répertoire caché bien qu'ils soient dans /home l'utilisateur a bien souvent aucun droit dessus
Edit: /dev/null fichier log?

crw-rw-rw-  1 root root        1,   3 juil. 30 09:10 null


wikiDF a écrit :

c     fichier de périphérique a accès en mode caractère

scratchhead.gif

Dernière modification par Croutons (30-07-2017 09:56:00)


-->les cahiers du debutant<--      WikiDF-->Découvrir les principales commandes Linux<-- 
L' expérience, c'est le nom que chacun donne à ses erreurs. Oscar Wilde

Hors ligne

#3 31-07-2017 16:25:18

tramberlimpe
Membre
Distrib. : Debian GNU/Linux bookworm/sid
Noyau : Linux 5.19.0-2-amd64
(G)UI : Sway
Inscription : 24-09-2012

Re : Procmail - suspicious rcfile

Bonjour,

je n'ai pas bien compris le message précédent...

Mais j'ai vérifié les droits divers et ça semble Ok.
Un truc étonnant : j'ai la même install de Debian sur mon ordinateur du boulot et je n'ai pas les mêmes problèmes...  Je ne peux pas dire (c'est impossible) que j'ai installé exactement les mêmes logiciels et dans le même ordre, mais c'est quasiment ça. Les deux ordis sont différents cependant, même si tous deux de la marque LDLC.

Merci

Ni dieu, ni maître, ni slogan !

Je pense donc Jessie.
Dura Stretch, sed Stretch.

Hors ligne

#4 08-08-2017 10:31:12

tramberlimpe
Membre
Distrib. : Debian GNU/Linux bookworm/sid
Noyau : Linux 5.19.0-2-amd64
(G)UI : Sway
Inscription : 24-09-2012

Re : Procmail - suspicious rcfile

un ptit  up ?

Ni dieu, ni maître, ni slogan !

Je pense donc Jessie.
Dura Stretch, sed Stretch.

Hors ligne

#5 09-09-2017 19:09:48

tramberlimpe
Membre
Distrib. : Debian GNU/Linux bookworm/sid
Noyau : Linux 5.19.0-2-amd64
(G)UI : Sway
Inscription : 24-09-2012

Re : Procmail - suspicious rcfile

Salut,

bon, ben, je n'ai pas solutionné le problème.

Alors j'utilise maildrop, qui fonctionne bien...

À bientôt

Ni dieu, ni maître, ni slogan !

Je pense donc Jessie.
Dura Stretch, sed Stretch.

Hors ligne

#6 09-09-2017 19:36:49

smolski
quasi...modo
Lieu : AIN
Distrib. : backports (buster) 10
Noyau : Linux 4.19.0-8-amd64
(G)UI : gnome
Inscription : 21-10-2008

Re : Procmail - suspicious rcfile

tramberlimpe a écrit :

j'ai vérifié les droits divers et ça semble Ok.


Donne ici les commandes et leurs retours, sinon, comment qu'on fait pour t'aider ?
... 53-1--1f7c.gif


saque eud dun (patois chtimi : fonce dedans)

Hors ligne

Pied de page des forums