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.