autoreply failing

28 posts / 0 new
Last post
#1 Tue, 10/23/2007 - 23:45
gregc@netoverdr...

autoreply failing

Hi,

autoreply is failing with this as the email going back to the sender.

Failed to open autoreply file /home/<domain>/autoreply-<user><domain>.txt : No such file or directory

When I check the directory the file is there WITH the '@' symbol.

ie /home/<domain>/autoreply-<user>@<domain>.txt

So i renamed the file to /home/<domain>/autoreply-<user><domain>.txt

and it still fails saying that it couldn't find the file.

I can see this in the logs

(delivered to command: /etc/webmin/virtual-server/autoreply.pl /home/forceentertainment.com.au/autoreply-chrispforceentertainment.com.au.txt chrisp@forceentertainment.com.au /home/virtualmin-autoreply/11887978886303-autoreply-chrispforceentertainment.com.au.txt)

Wed, 10/24/2007 - 13:45
gregc@netoverdr...

BTW this feature use to work. I can only imagine that a webmin upgrade has broken it?

Thu, 02/07/2008 - 20:05 (Reply to #2)
jeff@inverselog...

Thanks for the quick reply.

When I send a test message to the account with the autoreply set up, the account receives the message but no autoreply is sent out.

I checked the following:

- The autoreply line from the /etc/aliases file : There is no autoreply line in /etc/aliases

- The output of ls -l run on the file under /var/virtualmin-autoreply specified at the end of that line : no such file or directory exists

- The error message from your mail server which appears in /var/log/maillog : no message regarding autoreplay at all. The email comes in and is delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME. That is it. No errors at all that I can see.

Any suggestions?

Regards,

Jeff

Thu, 02/07/2008 - 21:32 (Reply to #3)
Joe
Joe's picture

Hi Jeff,

It sounds like the autoreply isn't set up at all .. at least not at the Virtualmin level.

Was this done in Virtualmin (on the Edit Mailbox page), or in Usermin on port 20000? If it was the latter, the config file that controls the autoreply will be in the .procmailrc file under the mailbox user's home directory.

--

Check out the forum guidelines!

Thu, 02/07/2008 - 21:39 (Reply to #4)
jeff@inverselog...

The autoreply was setup in the Usermin Webmail at port 20000. There was no initial need to set it up during the Email user creation in the Virtualmin section.

I have been trying to find where to setup an autoreply in Virtualmin after a user is created, but could not find it. I could only find the autoreply in the Filter and Forward section of the Usermin interface.

I just noticed in the Filter and Forward section of Usermin that there is a message at the top of the page:

Warning - The system is configured to not process user-defined mail filters. Any filters defined below are unlikely to work.

Could this be why the autoreply is not working? If so, how would I enable user-defined mail filters for specific users?

Thanks.

Fri, 02/08/2008 - 09:35 (Reply to #5)
Joe
Joe's picture

If you see the message &quot;Warning - The system is configured to not process user-defined mail filters&quot;, this means that Virtualmin has configured Procmail to not allow users to setup their own filters. To change this in Virtualmin 3.51, do the following :

1) Login as root, and click on Module Config under System Settings on the left menu.
2) In the 'Spam filtering options' section, change 'Allow mailbox users to configure procmail?' to 'Yes', and click 'Save'.
3) Click the button to have the Virtualmin configuration re-checked.

In the 3.52 and later releases, this option is on the 'Spam and Virus Scanning' page under 'Email Messages' on the left menu.

--

Check out the forum guidelines!

Fri, 02/08/2008 - 09:24 (Reply to #6)
jeff@inverselog...

Hi Jamie,

OK, I deleted the test email user account/mailbox in Virtualmin (port 10000) and re-created it.

This time I used the Email Forwarding settings section to create an autoreply with a start and end date of today.

I then sent a test message to the newly recreated account and lo and behold, I received an autoreply back.

I checked the /etc/aliases file and there is now an autoreply line. I checked the /var directory and there is now a virtualmin-autoreply directory with XXXXXX-autoreply-username.domain.txt file there. There is also a 'autoreply-username.domain.txt' file in the domain home directory.

As I received the autoreply in response to my test message I assume that there are no error messages in /var/log/maillog, but I checked anyway and I found a successful 'delivered to command: /etc/webmin/virtual-server/autoreply.pl' line, so everything seems good there.

My problem now is: How do I disable the autoreply feature after it is no longer needed?

I cannot find any place in Virtualmin that will turn off an autoreply. Nor can I find anything in the Usermin webmail interface to turn off autoreply.

Aside for manually editing the /etc/aliases file and removing the pertinent autoreply line, there does not seem to be any interface for managing the autoreply feature once it has been started.

Also, how do I change the autoreply message for the next time I need to use autoreply?

Any suggestions / help is greatly appreciated.

Thanks,

Jeff

Fri, 02/08/2008 - 09:29 (Reply to #7)
Joe
Joe's picture

The best way to turn off an autoreply (or edit the message) is as follows :

  1. Click on Edit Mail and FTP Users on the left menu.
  2. Click on the user who has the autoreply.
  3. Open the 'Mail forwarding settings' section.
  4. To disable the autoreply, just un-check the 'Yes, respond with message' box. To edit the message, just change it in the text box below this checkbox.
  5. Click Save.

--

Check out the forum guidelines!

Fri, 02/08/2008 - 10:05 (Reply to #8)
jeff@inverselog...

Hi Jamie,

1. I login as the root admin user into Virtualmin on port 10000.
2. I select the pertinent domain from the dropdown list.
3. I click on the lefthand nav 'Edit Mail and FTP Users'.
4. I select the user who has autoreply.
5. There is no 'Mail Forwarding settings' section. There is a 'Modify Selected Users' button but clicking on that does not show anything related to autoreply.

Am I in the right place?

Thanks,

Jeff

Fri, 02/08/2008 - 10:14 (Reply to #9)
Joe
Joe's picture

Almost .. for step 4, you need to click on the username, which is a link to a page for editing him.

--

Check out the forum guidelines!

Fri, 02/08/2008 - 10:29 (Reply to #10)
jeff@inverselog...

Hi Jamie,

Yes, I click to select the checkbox before the username. That just checks the checkbox. I need to click on the 'Modify Selected Users' button to go to the next page about 'User settings to update' but there is nothing about autoreply.

Regards,

Jeff

Fri, 02/08/2008 - 10:38 (Reply to #11)
Joe
Joe's picture

No, you don't want to click on the checkbox .. instead, you need to click on the username itself (in the 'Name' column).

--

Check out the forum guidelines!

Fri, 02/08/2008 - 10:41 (Reply to #12)
jeff@inverselog...

Hi jamie,

I have figured out how to get the 'Automatic Reply' menu choice appear in the Usermain (port 20000) webmail interface.

I had to go back into Virtualmin and edit each Virtual Server &gt; Enable Features section and select 'SPAM filtering enabled'.

By selecting this feature the 'Automatic Reply' menu appeared in the Usermin webmail interface and now allows the users to turn autoreply on and off and to enter a message.

Regards,

Jeff

Fri, 02/08/2008 - 10:44 (Reply to #13)
jeff@inverselog...

Hi jamie,

OK, I got it. I now see the Edit Mailbox page and can access the 'Mail Forwarding settings' section.

Thanks much for the info.

Regards,

Jeff

Thu, 10/25/2007 - 03:06
gregc@netoverdr...

The error is this the text file is not being copied to /home/virtualmin-autoreply

If i copy the text file from /home/&lt;domain&gt; to this directory with the right virtualmin id prefix then it work.

Any idea why this is failing?

Thu, 10/25/2007 - 15:07
Joe
Joe's picture

Are /home/virtualmin-autoreply and /home/domain on different filesystems? Virtualmin doesn't actually copy that file over - instead, it uses a hard link. However, hard links don't work across filesystems..

--

Check out the forum guidelines!

Thu, 10/25/2007 - 16:12
gregc@netoverdr...

Hi,

Thanks for the reply. Both directories are on the same partition.

any other ideas?

Thu, 10/25/2007 - 19:27 (Reply to #17)
Joe
Joe's picture

I looked into this further, and was able to re-produce it - it is actually a bug introduced in Virtualmin 3.48. I'll see if we can get a 3.48-3 minor release out to fix it, as autoreponders are a pretty important feature.

The work-around till then is to make the /home/domain directory world-readable, or to create the hard link manually.

--

Check out the forum guidelines!

Tue, 12/04/2007 - 06:11 (Reply to #18)
AaronCP

I set up my first auto reply today and found this error happening to me, too. I made the /home/domain directory world readable but that did not fix the problem. The auto-response email is bouncing back saying the file doesn't exist, when it actually does.

My virtualmin is 3.48.gpl on CentOS Linux 5 (64bit)

How do I create the hard link manually?

Tue, 12/04/2007 - 08:53 (Reply to #19)
Joe
Joe's picture

Check the file /etc/postfix/aliases for a line like :

replyname: &quot;|/etc/webmin/virtual-server/autoreply.pl /home/domain/autoreply-replyname.txt replyname /var/virtualmin-autoreply/114040121110010-autoreply-replyname.txt&quot;

And then create the link with a command like :

ln /home/domain/autoreply-replyname.txt /var/virtualmin-autoreply/114040121110010-autoreply-replyname.txt

--

Check out the forum guidelines!

Mon, 12/10/2007 - 08:17 (Reply to #20)
AaronCP

Well I did that and it worked once. And then I had to make a change to the alias (changed the address it forwards to), and Virtualmin deleted the autoreply txt file and now no longer makes a new one for this alias.

Call me crazy, but autoreplies should be a no-brainer feature that doesn't require workaround hacks to get it to work. Please fix this bug.

Mon, 12/10/2007 - 08:27 (Reply to #21)
Joe
Joe's picture

You should upgrade to version 3.49, in which this version is fixed. The command :

yum install wbm-virtual-server

should do this for you.

Autoreplies would be a no-brainer if Virtualmin made home directories readable to all other users on the system. But because it makes them only readable by each domain's owner and users, the mail server (Postfix) doesn't have permissions to read autoreply message files in the domain's home directory! So some trickness with a hard link from /var/virtualmin-autoreply is needed to resolve this problem.

--

Check out the forum guidelines!

Mon, 12/10/2007 - 09:36 (Reply to #22)
AaronCP

I am using 3.49:

Operating system CentOS Linux 5
Webmin version 1.380
Virtualmin version 3.49.gpl (GPL)
Time on server Mon Dec 10 14:34:37 2007

Mon, 12/10/2007 - 10:19 (Reply to #23)
Joe
Joe's picture

So even after upgrading to 3.49 and creating a new autoreply, it still doesn't work properly?

If so, could you post :
- The autoreply line from the /etc/aliases file
- The output of ls -l run on the file under /var/virtualmin-autoreply specified at the end of that line.
- The error message from your mail server which appears in /var/log/maillog

--

Check out the forum guidelines!

Tue, 01/22/2008 - 14:57
jerwilkins

I am experiencing the same bug.

How do I upgrade my 3.48 GPL installation to 3.49 on Debian? I did an apt-get upgrade virtualmin, to no avail.

Tue, 01/22/2008 - 15:20 (Reply to #25)
Joe
Joe's picture

The virtualmin package is named webmin-virtual-server. There is no &quot;virtualmin&quot; package. Confusing, I know. ;-)

3.50 should be in our repos already, and 3.51 is coming out today.

--

Check out the forum guidelines!

Thu, 02/07/2008 - 18:15
jeff@inverselog...

Hi All,

Autoreply is not working on my new Virtualmin install.

Operating system CentOS Linux 5
Webmin version 1.380
Virtualmin version 3.51 (Pro)

How to fix?

Thanks,

Jeff

Thu, 02/07/2008 - 19:10 (Reply to #27)
Joe
Joe's picture

Jeff - can you give more details. Does the autoreply message simply not get delivered at all, or do you get back some error message?

Also, if possible I'd like to know what gets logged to the file /var/log/maillog when you send email to the autoreply address.

--

Check out the forum guidelines!

Topic locked