donc mailbox_command est manquant mais je ne sais pas si je dois mettre mailbox_command = procmail ou si je dois mettre plus d'option après ou carrément autre chose
ensuite quand je fais un test voici ce qui ce passe quand txtman@txtman.pf écrit à test@txtman.pf :
/var/log/procmail.log
Code:
procmail: Executing "spamassassin"
procmail: [4506] Tue Jul 22 13:47:25 2008
procmail: Match on "^.*(for|X-Apparently-To).*(test)"
procmail: Match on ! "(^(Mailing-List:|Precedence:.*(junk|bulk|list)|To: Multiple recipients of |(((Resent-)?(From|Sender)|X-Envelope-From):|>?From )([^>]*[^(.%@a-z0-9])?(Post(ma?(st(e?r)?|n)|office)|(send)?Mail(er)?|daemon|m(mdf|ajordomo)|n?uucp|LIST(SERV|proc)|NETSERV|o(wner|ps)|r(e(quest|sponse)|oot)|b(ounce|bs\.smtp)|echo|mirror|s(erv(ices?|er)|mtp(error)?|ystem)|A(dmin(istrator)?|MMGR|utoanswer))(([^).!:a-z0-9][-_a-z0-9]*)?[%@> ][^<)]*(\(.*\).*)?)?$([^>]|$)))"
procmail: Match on ! "^X-Loop: test@txtman.pf"
procmail: Executing " (formail -rA"Precedence: junk" \
-A"X-Loop: test@txtman.pf" ; \
cat /root/autoreply.msg \
) | /usr/sbin/sendmail -oi -t "
procmail: Assigning "LASTFOLDER= (formail -rA"Precedence: junk" \
-A"X-Loop: test@txtman.f" ; \
cat /root/autoreply.msg \
) | /usr/sbin/sendmail -oi -t "
Subject: coucou c'est un test
Folder: (formail -rA"Precedence: junk" \ -A"X-Loop: test@txtman.pf 4282
procmail: Match on "^.*(for|X-Apparently-To).*(test)"
procmail: Executing "/usr/sbin/sendmail,-oi,test"
procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi test"
procmail: Notified comsat: "stes@:/usr/sbin/sendmail -oi test"
Subject: coucou c'est un test
Folder: /usr/sbin/sendmail -oi test 4282
procmail: Unlocking "/root/lockfile.lock"
[^] # Re: procmailex
Posté par stes . En réponse au message Procmail : réponse automatique. Évalué à 1.
voici ma config :
/etc/procmailrc
Code:
SHELL=/bin/bash
MAILDIR=$HOME/Maildir/
DEFAULT=$MAILDIR
ORGMAIL=$MAILDIR
LOCKFILE=$HOME/lockfile.lock
JUNKMAIL=$HOME/Maildir/.junkmail/
TRASH=$HOME/Maildir/.Trash
VIRUS=$HOME/Maildir/.virus/
BITBUCKET=/dev/null
VERBOSE=yes
LOGABSTRACT=all
SENDMAIL=/usr/sbin/sendmail
LOGFILE=/var/log/procmail.log
:0fw
| spamassassin
...
:0 Hc
* ^.*(for|X-Apparently-To).*(test)
* !^FROM_DAEMON
* !^X-Loop: test@txtman.pf
| (formail -rA"Precedence: junk" \
-A"X-Loop: test@txtman.pf" ; \
cat /root/autoreply.msg \
) | /usr/sbin/sendmail -oi -t
:0 H
* ^.*(for|X-Apparently-To).*(test)
! test
/etc/postfix/main.cf
Code:
# modif pour procmail / courier-imap
home_mailbox = Maildir/
myhostname = srvmail.srvmail
mydestination = $myhostname, localhost
relayhost = [smtp.mana.pf]
# These are changed by postfix install script
readme_directory = /usr/share/doc/postfix-2.1.0/README_FILES
sample_directory = /usr/share/doc/postfix-2.1.0/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/share/man
daemon_directory = /usr/lib/postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
queue_directory = /var/spool/postfix
mail_owner = postfix
# User configurable parameters
inet_interfaces = localhost
mynetworks_style = host
delay_warning_time = 4h
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandrake Linux)
unknown_local_recipient_reject_code = 450
smtp-filter_destination_concurrency_limit = 2
lmtp-filter_destination_concurrency_limit = 2
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
recipient_delimiter = +
owner_request_special = no
alias_maps = hash:/etc/postfix/aliases
donc mailbox_command est manquant mais je ne sais pas si je dois mettre mailbox_command = procmail ou si je dois mettre plus d'option après ou carrément autre chose
ensuite quand je fais un test voici ce qui ce passe quand txtman@txtman.pf écrit à test@txtman.pf :
/var/log/procmail.log
Code:
procmail: Executing "spamassassin"
procmail: [4506] Tue Jul 22 13:47:25 2008
procmail: Match on "^.*(for|X-Apparently-To).*(test)"
procmail: Match on ! "(^(Mailing-List:|Precedence:.*(junk|bulk|list)|To: Multiple recipients of |(((Resent-)?(From|Sender)|X-Envelope-From):|>?From )([^>]*[^(.%@a-z0-9])?(Post(ma?(st(e?r)?|n)|office)|(send)?Mail(er)?|daemon|m(mdf|ajordomo)|n?uucp|LIST(SERV|proc)|NETSERV|o(wner|ps)|r(e(quest|sponse)|oot)|b(ounce|bs\.smtp)|echo|mirror|s(erv(ices?|er)|mtp(error)?|ystem)|A(dmin(istrator)?|MMGR|utoanswer))(([^).!:a-z0-9][-_a-z0-9]*)?[%@> ][^<)]*(\(.*\).*)?)?$([^>]|$)))"
procmail: Match on ! "^X-Loop: test@txtman.pf"
procmail: Executing " (formail -rA"Precedence: junk" \
-A"X-Loop: test@txtman.pf" ; \
cat /root/autoreply.msg \
) | /usr/sbin/sendmail -oi -t "
procmail: Assigning "LASTFOLDER= (formail -rA"Precedence: junk" \
-A"X-Loop: test@txtman.f" ; \
cat /root/autoreply.msg \
) | /usr/sbin/sendmail -oi -t "
Subject: coucou c'est un test
Folder: (formail -rA"Precedence: junk" \ -A"X-Loop: test@txtman.pf 4282
procmail: Match on "^.*(for|X-Apparently-To).*(test)"
procmail: Executing "/usr/sbin/sendmail,-oi,test"
procmail: Assigning "LASTFOLDER=/usr/sbin/sendmail -oi test"
procmail: Notified comsat: "stes@:/usr/sbin/sendmail -oi test"
Subject: coucou c'est un test
Folder: /usr/sbin/sendmail -oi test 4282
procmail: Unlocking "/root/lockfile.lock"
/var/log/mail/info.log
Code:
Jul 22 13:47:25 srvmail postfix/pickup[4239]: 2EBDB1609F6: uid=0 from=
Jul 22 13:47:25 srvmail postfix/cleanup[4517]: 2EBDB1609F6: message-id=<4886734B.5010609@txtman.pf>
Jul 22 13:47:25 srvmail postfix/qmgr[15176]: 2EBDB1609F6: from=<root@srvmail.srvmail>, size=4456, nrcpt=1 (queue active)
Jul 22 13:47:25 srvmail postfix/pickup[4239]: 30FF71609B1: uid=0 from=
Jul 22 13:47:25 srvmail postfix/cleanup[4517]: 30FF71609B1: message-id=<20080722234725.30FF71609B1@srvmail.srvmail>
Jul 22 13:47:25 srvmail postfix/qmgr[15176]: 30FF71609B1: from=<root@srvmail.srvmail>, size=458, nrcpt=1 (queue active)
Jul 22 13:47:25 srvmail postfix/local[4519]: 2EBDB1609F6: to=<test@srvmail.srvmail>, orig_to=, relay=local, delay=0.05, delays=0.04/0.01/0/0, dsn=2.0.0, status=sent (delivered to maildir)
Jul 22 13:47:25 srvmail postfix/qmgr[15176]: 2EBDB1609F6: removed
Jul 22 13:47:26 srvmail postfix/smtp[4520]: 30FF71609B1: to=<txtman@txtman.pf>, relay=smtp.mana.pf[202.3.225.22]:25, delay=0.87, delays=0.03/0.05/0.12/0.67, dsn=5.0.0, status=bounced (host smtp.mana.pf[202.3.225.22] said: 501 <root@srvmail.srvmail>... Sender domain must exist (in reply to MAIL FROM command))
Jul 22 13:47:26 srvmail postfix/cleanup[4517]: 122A81609F6: message-id=<20080722234726.122A81609F6@srvmail.srvmail>
Jul 22 13:47:26 srvmail postfix/qmgr[15176]: 122A81609F6: from=<>, size=2325, nrcpt=1 (queue active)
Jul 22 13:47:26 srvmail postfix/bounce[4521]: 30FF71609B1: sender non-delivery notification: 122A81609F6
Jul 22 13:47:26 srvmail postfix/qmgr[15176]: 30FF71609B1: removed
Jul 22 13:47:26 srvmail postfix/local[4519]: 122A81609F6: to=<postfix@srvmail.srvmail>, orig_to=<root@srvmail.srvmail>, relay=local, delay=0.03, delays=0.01/0/0/0.02, dsn=5.2.0, status=bounced (maildir delivery failed: create maildir file /var/spool/postfix/Maildir/tmp/1216770446.P4519.srvmail: Permission denied)
Jul 22 13:47:26 srvmail postfix/qmgr[15176]: 122A81609F6: removed