• [^] # Re: procmailex

    Posté par . En réponse au message Procmail : réponse automatique. Évalué à 1.

    Pour info avant de copier mes logs, je remplace le vrai domaine par txtman.pf


    j'ai enlevé mailbox_command = procmail à cause de la boucle infinie que ça a créé entre procmail et postfix



    j'ai ajouter dans /etc/postfix/aliases :
    Code:
    test: root
    txtman: root



    Ce qui donne quand le serveur reçois un email que txtman@txtman.pf envoie à test@txtman.pf :

    /var/log/mail/info.log
    Code:
    Jul 23 14:11:56 srvmail postfix/pickup[7824]: 787E4160A01: uid=0 from=
    Jul 23 14:11:56 srvmail postfix/cleanup[7968]: 787E4160A01: message-id=<20080724001156.787E4160A01@txtman.pf>
    Jul 23 14:11:56 srvmail postfix/qmgr[7826]: 787E4160A01: from=<root@txtman.pf>, size=418, nrcpt=1 (queue active)
    Jul 23 14:11:56 srvmail postfix/pickup[7824]: 7D35A1609FF: uid=0 from=
    Jul 23 14:11:56 srvmail postfix/cleanup[7968]: 7D35A1609FF: message-id=<4887CA8D.4060700@txtman.pf>
    Jul 23 14:11:56 srvmail postfix/qmgr[7826]: 7D35A1609FF: from=<root@txtman.pf>, size=4438, nrcpt=1 (queue active)
    Jul 23 14:11:56 srvmail postfix/local[7970]: 787E4160A01: to=<postfix@txtman.pf>, orig_to=<txtman@txtman.pf>, relay=local, delay=0.06, delays=0.04/0.01/0/0.01, dsn=5.2.0, status=bounced (maildir delivery failed: create maildir file /var/spool/postfix/Maildir/tmp/1216858316.P7970.srvmail: Permission denied)
    Jul 23 14:11:56 srvmail postfix/cleanup[7968]: 82510160A02: message-id=<20080724001156.82510160A02@txtman.pf>
    Jul 23 14:11:56 srvmail postfix/bounce[7971]: 787E4160A01: sender non-delivery notification: 82510160A02
    Jul 23 14:11:56 srvmail postfix/qmgr[7826]: 82510160A02: from=<>, size=2307, nrcpt=1 (queue active)
    Jul 23 14:11:56 srvmail postfix/qmgr[7826]: 787E4160A01: removed
    Jul 23 14:11:56 srvmail postfix/local[7970]: 7D35A1609FF: to=<postfix@txtman.pf>, orig_to=, relay=local, delay=0.09, delays=0.06/0.02/0/0.02, dsn=5.2.0, status=bounced (maildir delivery failed: create maildir file /var/spool/postfix/Maildir/tmp/1216858316.P7970.srvmail: Permission denied)
    Jul 23 14:11:56 srvmail postfix/cleanup[7968]: 86AD1160A01: message-id=<20080724001156.86AD1160A01@txtman.pf>
    Jul 23 14:11:56 srvmail postfix/qmgr[7826]: 86AD1160A01: from=<>, size=6291, nrcpt=1 (queue active)
    Jul 23 14:11:56 srvmail postfix/local[7972]: 82510160A02: to=<postfix@txtman.pf>, orig_to=<root@txtman.pf>, relay=local, delay=0.03, delays=0.01/0/0/0.01, dsn=5.2.0, status=bounced (maildir delivery failed: create maildir file /var/spool/postfix/Maildir/tmp/1216858316.P7972.srvmail: Permission denied)
    Jul 23 14:11:56 srvmail postfix/bounce[7973]: 7D35A1609FF: sender non-delivery notification: 86AD1160A01
    Jul 23 14:11:56 srvmail postfix/qmgr[7826]: 7D35A1609FF: removed
    Jul 23 14:11:56 srvmail postfix/qmgr[7826]: 82510160A02: removed
    Jul 23 14:11:56 srvmail postfix/local[7970]: 86AD1160A01: to=<postfix@txtman.pf>, orig_to=<root@txtman.pf>, relay=local, delay=0.02, delays=0.01/0/0/0.01, dsn=5.2.0, status=bounced (maildir delivery failed: create maildir file /var/spool/postfix/Maildir/tmp/1216858316.P7970.srvmail: Permission denied)
    Jul 23 14:11:56 srvmail postfix/qmgr[7826]: 86AD1160A01: removed



    /var/log/procmail.log
    Code:
    procmail: [7957] Wed Jul 23 14:11:56 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.pf" ; \
    cat /root/autoreply.msg \
    ) | /usr/sbin/sendmail -oi -t "
    Subject: test
    Folder: (formail -rA"Precedence: junk" \ -A"X-Loop: test@txtman.p 4272
    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: test
    Folder: /usr/sbin/sendmail -oi test 4272
    procmail: Unlocking "/root/lockfile.lock"



    Ensuite je regarde le mailq et il est vide. Mais txtman@txtman.pf n'a jamais reçu la réponse automatique de test@txtman.pf