Auto reply broken after update - Virtualmin 3.87

18 posts / 0 new
Last post
#1 Sun, 08/14/2011 - 09:58
sg.eric

Auto reply broken after update - Virtualmin 3.87

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/

DROPPRIVS=yes

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.

Sun, 08/14/2011 - 10:05
andreychek

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

Sun, 08/14/2011 - 21:03 (Reply to #2)
sg.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/

Mon, 08/15/2011 - 22:40 (Reply to #3)
JamieCameron

Could you also post the .procmailrc file in the home directory of the mail user for whom autoreply was setup?

''

Thu, 08/18/2011 - 05:44 (Reply to #4)
sg.eric

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

Thu, 08/18/2011 - 15:30 (Reply to #5)
JamieCameron

That actually looks fine ..

Could you try turning on verbose procmail logging by editing /etc/procmailrc and adding the line VERBOSE=yes to the top. Then send a new email, and post the lines that get logged to /var/log/procmail.log

''

Thu, 08/18/2011 - 19:57 (Reply to #7)
sg.eric

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

Thu, 08/18/2011 - 23:34 (Reply to #8)
JamieCameron

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 ?

''

Fri, 08/19/2011 - 01:30 (Reply to #9)
sg.eric

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.

Fri, 08/19/2011 - 01:34 (Reply to #10)
JamieCameron

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.

''

Fri, 08/19/2011 - 01:50 (Reply to #11)
sg.eric

Jamie

Have sent you the info to your email address.

Thanks. Eric

Sat, 08/20/2011 - 19:28 (Reply to #12)
JamieCameron

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..

''

Sun, 08/14/2011 - 22:52
andreychek

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

Mon, 08/15/2011 - 02:27
sg.eric

Eric

The settings was done on both settings - one at a time for testing. Not working but the forwarding is working.

Thanks.

Mon, 08/15/2011 - 21:53
sg.eric

Eric

Can point me to the right directions to resolve the issue or any suggestions to further check on the problem . Thanks.

Tue, 08/16/2011 - 01:09
sg.eric

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.

Tue, 08/16/2011 - 09:15
andreychek

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

Thu, 08/18/2011 - 05:47
sg.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

Topic locked