I started an auto response recipe for certain user hours ago.
I got the auto reply sent and the original mail delivered into Inbox. I tested it several times.
I made some minor changes in formail and now auto reply is sent but the original mail is not delivered to Inbox.
I went back to the first recipe but the problem remains.
I also tried changing the sender address, checked spam marked mails and maillog and cannot realize what happened.
The first recipe:
:0
* ^From.*[email protected]
* !^FROM_DAEMON
* !^FROM_MAILER
* !^X-Loop: [email protected]
| (formail -rk \
-A "X-Loop: [email protected]" \
-A "Precedence: junk"; \
echo "Testing";\
echo "This is an automated response";\
echo "Not sure to see your message";\
echo "So please try again tomorrow" ) | $SENDMAIL -t -oi
Changes I had done were in formail -rt
(instead of -rk) and remove of -A "Precedence: junk"
UPDATE
I think I've found the problem: procmail.log: "Virus scanner failed to response within 30 seconds"
This is a problem I have some time ago. Incoming mails are delayed to deliver 30secs or a minute (this server has very low mail traffic). It seems that procmail recipes don't like that.
Is is there a configuration to tell it to wait until Clam finishes its work?
UPDATE 2
I turned off clamscan (virus scan) and the problem persists, the original mail is not delivered to inbox.
Now I don't get procmail.log: "Virus scanner failed to response within 30 seconds"
This log only outputs the recipe
UPDATE 3
I use Webmin/Virtualmin as Control Panel. By default ClamAV uses clamscan
ps aux | grep clam
username 31127 0.0 0.0 26132 2144 ? S 20:30 0:00 /usr/bin/perl /etc/webmin/virtual-server/clam-wrapper.pl bin/clamscan
username 31128 0.0 0.0 9564 1156 ? S 20:30 0:00 sh -c /bin/clamscan -
/tmp/clamwrapper.31127
username 31129 101 15.7 1385464 1258520 ? R 20:30 0:30 /bin/clamscan -
That's before I turned off AV.
UPDATE 4
The original mail is sent from Postfix to Procmail:
... relay=local, delay=30, delays=0.29/0.01/0/30, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Procmail log:
From [email protected] Mon May 23 13:15:34 2022
Subject: Testing auto-reply
Folder: (formail -rt \ -A "X-Loop: [email protected]"; \ ec 2343
Time:1653322564 From:[email protected] To:[email protected] User:user_me Size:2343 Dest: (formail -rt \
-A "X-Loop: [email protected]"; \
echo "Testing";\
echo "This is an automated response";\
echo "Not sure to see your message";\
echo "So please try again tomorrow" ) | $SENDMAIL -t -oi Mode:None