when creating a autoreply with usermin "Mail Forwarding and Replies" the sender get this error:
----- Transcript of session follows ----- 550 5.7.1 /users/xxxx/homes/autoreply/.forward: line 1: "|/etc/usermin/forward/autoreply.pl /users/xxxx/homes/autoreply/autoreply.txt autoreply.xxxx"... User autoreply.xxxx@host.domain.tld doesn't have a valid shell for mailing to programs
when i use webmin to do the same thing i get on creation time:
Mislukt om mailbox op te slaan : Failed to link /users/xxxx/autoreply-autoreply.xxxx.txt to /users/virtualmin-autoreply/110996234832006-autoreply-autoreply.xxxx.txt :
and the sender gets this error:
Failed to open autoreply file /users/xxxx/autoreply-autoreply.xxxx.txt : Permission denied
this is on RHELAS5 latest update and usermin 1.410 & webmin 1.480 & virtualmin 3.703.gpl
Looks like there are two separate errors here - first is that the user's shell isn't in the /etc/shells file, so Sendmail doesn't allow commands to be run from the .forward file. The best fix for this is actually to configure Sendmail to deliver mail using Procmail.
Second, are /users/xxxx and /users/virtualmin-autoreply on the same filesystem?
sendmail and procmail i will try later today.
yes both are on the same filesystem.
just checked sendmail config. sendmail is already configured to use procmail. when creating rules they work without any problem.
Actually, you should try setting up the autoreplies using the "Filter and Forward Mail" module - it uses procmail, which seems more likely to work than .forward files.
where can i find the settings for this for webmin/usermin and virtualmin?
Which settings are you referring to exactly?
the settings to setup "Filter and
Forward Mail" to use procmail and not /etc/usermin/forward/autoreply.pl
so virtualmin/webmin and usermin use procmail to handle filter,autoreply,forward e-mail.
The "Filter and Forward Mail" module always uses procmail - it is the "Mail Forwarding and Replies" module that uses procmail.
there's no option to select procmail to do this in webmin/usermin/virtualmin.
Are you running a standard install of virtualmin there, using our install script from http://www.webmin.com/vinstall.html ? It should setup Postfix and Procmail, and allow the Filter and Forward Mail module to work.
i used rpm to install webmin/usermin and used webmin to install virtualmin. for mail i'm using sendmail.
Ok, and do you have Sendmail configured to deliver mail using procmail? This has to be setup manually at the moment..
If so, the Filter and Forward Mail module will just work in Usermin.
yes sendmail is configured to deliver mail using procmail. and when editing procmail files manually everything works fine. when using usermin/webmin/virtualmin i get early noted errors.