I'm trying to setup an auto responder and not having much luck.
Could someone please have a look at what I'm trying to do below and possibly
point out what I'm doing wrong? The problem is when a message gets sent to
'maintenance' procmail should send a message back but I'm not receiving
anything anytime.
Thanks -
Bruce
Procmailrc file:
PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
MAILDIR=/var/mail
SENDMAIL=/usr/sbin/sendmail
LOGFILE=/var/log/proc
:0 hc
* ^TOmaintenance(_at_)mydomain(_dot_)com
| (formail -rtb -I"Precedence: bulk" \
-I"From: MyDomain Maintenance" \
-I"Subject: Your Maintenance Request"; \
cat /etc/procmail/mreply \
) | $SENDMAIL -oi -t
me
Here is my procmail log file:
From nobody(_at_)mydomain(_dot_)com Wed Aug 7 09:41:24 2002
Subject: Maintenance Request
Folder: /var/mail/maintenance 1255
From nobody(_at_)mydomain(_dot_)com Wed Aug 7 09:41:25 2002
Subject: Maintenance Request
Folder: /var/mail/maintenance 1258
Here are relevant parts of my maillog file:
Aug 7 09:33:56 mail postfix/smtpd[3776]: connect from
webserver.mydomain.com[192.168.100.20]
Aug 7 09:33:56 mail postfix/smtpd[3776]: E3C814B971:
client=webserver.mydomain.com[192.168.100.20]
Aug 7 09:33:56 mail postfix/cleanup[3777]: E3C814B971:
message-id=<20020807132112(_dot_)AB46153501(_at_)webserver(_dot_)mydomain(_dot_)com>
Aug 7 09:33:57 mail postfix/smtpd[3776]: disconnect from
webserver.mydomain.com[192.168.100.20]
Aug 7 09:33:57 mail postfix/qmgr[35366]: E3C814B971:
from=<nobody(_at_)mydomain(_dot_)com>, size=937, nrcpt=1 (queue active)
Aug 7 09:33:57 mail amavis[3851]: starting. amavis perl-11 Fri May 10
08:00:54 CDT 2002
Aug 7 09:33:58 mail postfix/smtpd[3758]: connect from
localhost.mydomain.com[127.0.0.1]
Aug 7 09:33:58 mail postfix/smtpd[3758]: E616D4B978:
client=localhost.mydomain.com[127.0.0.1]
Aug 7 09:33:59 mail postfix/cleanup[3435]: E616D4B978:
message-id=<20020807132112(_dot_)AB46153501(_at_)webserver(_dot_)mydomain(_dot_)com>
Aug 7 09:33:59 mail postfix/smtpd[3758]: disconnect from
localhost.mydomain.com[127.0.0.1]
Aug 7 09:33:59 mail amavis[3851]: do_exit:415 - ending execution with 0
Aug 7 09:33:59 mail postfix/qmgr[35366]: E616D4B978:
from=<nobody(_at_)mydomain(_dot_)com>, size=1162, nrcpt=1 (queue active)
Aug 7 09:33:59 mail postfix/pipe[3752]: E3C814B971:
to=<maintenance(_at_)mydomain(_dot_)com>, relay=vscan, delay=3, status=sent
(mail.mydomain.com)
Aug 7 09:34:15 mail procmail[3858]: Renamed bogus "/var/mail/maintenance" into
"/var/mail/BOGUS.maintenance.hRX"
Aug 7 09:34:16 mail postfix/local[3792]: E616D4B978:
to=<maintenance(_at_)mydomain(_dot_)com>, relay=local, delay=18, status=sent
("|/usr/bin/procmail -t")