Hi
Assistance needed, the autoreply not working after recent upgrade of the webmin.
Procmailrc content :
LOGFILE=/var/log/procmail.log TRAP=/etc/webmin/virtual-server/procmail-logger.pl :0wi VIRTUALMIN=|/etc/webmin/virtual-server/lookup-domain.pl $LOGNAME :0 * ?/usr/bin/test "$VIRTUALMIN" != "" { INCLUDERC=/etc/webmin/virtual-server/procmail/$VIRTUALMIN } DEFAULT=$HOME/Maildir/ ORGMAIL=$HOME/Maildir/
Remove the :0 and $DEFAULT lines after the research on the forum but no luck.
Procmail.log got Mode:None entries.
All the entries for autoreply.pl seems to be correct but that auto reply is not replying to new email. This issue has caused me to pause the upgrade for the other server.
Have recheck the virtual configuration and even enable promail filter on the usermin section but the no luck.
Can anyone point out whether the above procmailrc entries is correct and where to further check on the issue. Have done research for the past 4 days on this forum and google for "auto reply" and effort failes. Assistance on anyone will be appreciated here.
Howdy,
Hmm, are you finding that to be the case for more than one user?
When you send a message to a user that contains an auto-reply, do you see any errors show up in the procmail log, in /var/log/procmail.log?
Lastly, is the initial email delivered correctly even though there's no auto-reply send back?
-Eric
Eric
The issue affects more than one users in the server. For the procmail.log, there following are the standard entries captured :
Time:1313372635 From sg.ericlim@okok.com To:okok@okok.com User:okok.okok.com Size:870 Dest:/home/okok.com/homes/okok/Maildir/new/1313372635.22446_0.host2.fine.com Mode:None
For the /var/log/maillog, it is :
Aug 15 09:43:55 host2 postfix/local[20727]: 331234A89F4: to=okok.fengshuilim.com@host2.fine.com, orig_to=okok@okok.com, relay=local, delay=1.3, delays=0.11/0/0/1.2, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
The other server is working fine but I just cannot find the source for the auto reply not working. I cannot find the option to enable procmail mail filter for the sites too - the forum suggest under the modules configuration or the spam and filtering under the email but just cannot locate it.
Appreciate your further inputs.
It seems that the auto reply is broken after the upgrade. I search the forum and others and just couldn't find the solutions. Not sure whether the main.cf is the source but the mailbox_command is also checked and in order with the followings :
mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME home_mailbox = Maildir/
Could you also post the
.procmailrc
file in the home directory of the mail user for whom autoreply was setup?''
Jamie
Thanks for the assistance first , the .procmailrc file in the home directory of the user as follows :
:0c | /etc/usermin/forward/autoreply.pl /home/okok.com/homes/okok/autoreply.0.txt okok.okok.com
Any code error above ?
Eric
That actually looks fine ..
Could you try turning on verbose procmail logging by editing
/etc/procmailrc
and adding the lineVERBOSE=yes
to the top. Then send a new email, and post the lines that get logged to/var/log/procmail.log
''
Jamie
The followings are the log entries :
procmail: Executing "/etc/webmin/virtual-server/lookup-domain.pl,okok.okok.com" procmail: Assigning "DEFAULT=/home/okok.com/homes/okok/Maildir/" procmail: Assigning "ORGMAIL=/home/okok.com/homes/okok/Maildir/" Folder: /home/okok.com/homes/okok/Maildir/new/1313714075.3339_0.h 801 Time:1313714075 From:webhosting@host.net To:okok@okok.com User:okok.okok.com Size:862 Dest:/home/okok.com/homes/okok/Maildir/new/1313714075.3339_0.host2.host.net Mode:None
Is the lookup-domain.pl having problem ?
Thanks Eric
No, it looks like the per-user
.procmailrc
file just isn't being run.Are you sure you don't have the lines :
:0
$DEFAULT
at the end of /etc/procmailrc ?
''
Jamie
The followings are the cut and paste of the procmailrc file at /etc/procmailrc
VERBOSE=yes LOGFILE=/var/log/procmail.log TRAP=/etc/webmin/virtual-server/procmail-logger.pl :0wi VIRTUALMIN=|/etc/webmin/virtual-server/lookup-domain.pl $LOGNAME :0 * ?/usr/bin/test "$VIRTUALMIN" != "" { INCLUDERC=/etc/webmin/virtual-server/procmail/$VIRTUALMIN } DEFAULT=$HOME/Maildir/ ORGMAIL=$HOME/Maildir/ DROPPRIVS=yes
Quite puzzle too because I don't have the
:0 $DEFAULT
Do I need to do anything in spam filtering because the option for disabling and enabling procmailrc is not there.
I think to debug this further I'd need to login to your system myself .. email me at jcameron@virtualmin.com if that is possible.
''
Jamie
Have sent you the info to your email address.
Thanks. Eric
Ok, I think I see the issue .. in Virtualmin 3.87, autoresponders by default won't reply to the same sender more than once per hour to prevent mail loops. So it can appear like the autoreply is failing. You can forcibly delete the tracking file for each autoreponder , which is named like
/home/fengshuilim.com/homes/okok/.usermin/filter/replies
Once I did this, autoreplies from the address you were trying worked fine. Oddly the call to the autoresponder script is never logged in procmail, so it was hard to know if it was working or not..
''
Okay, one last question before we go grab Jamie to help out -- how was that autoreply enabled, was it through Virtualmin, or from within Usermin?
Thanks!
-Eric
Eric
The settings was done on both settings - one at a time for testing. Not working but the forwarding is working.
Thanks.
Eric
Can point me to the right directions to resolve the issue or any suggestions to further check on the problem . Thanks.
Update : one user previous auto reply is working but after it cannot be re-setup after the removal. Auto reply not working anymore .
Any guru can advise what is happening here on the above - auto reply not working after update.
Is holding the update on another server until the above is cleared.
Hmm, did you see JamieCameron's post above?
He had a question for you regarding the user's procmailrc file.
He replied to your comment near the top of the thread.
-Eric
Hi
The procmailrc file is :
:0c | /etc/usermin/forward/autoreply.pl /home/okok.com/homes/okok/autoreply.0.txt okok.okok.com
Any code error above ?
Thanks. Eric