These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for I'd like to use anti-spam and anti-virus in Virtualmin BUT... on the new forum.
hi, Centos 6.6 | Virtualmin 4.11.gpl working good but NOT installed by install.sh
i don't use postfix, how to do it with sendmail? i have procmail already installed and in sendmail m4:
define(\`PROCMAIL_MAILER_PATH', \`/usr/bin/procmail')dnl ... FEATURE(local_procmail, \`', \`procmail -t -Y -a $h -d $u')dnl ... MAILER(procmail)dnl
it looks correct.
Then, /etc/procmailrc
ORGMAIL=/var/spool/mail/$LOGNAME DEFAULT=/var/spool/mail/$LOGNAME DROPPRIVS=yes
as you can see emails for my users are in /var/spool/mail/username
so, how to with these settings ? thanks
Howdy,
Well, that's a tough combination you have there... installs of Virtualmin without using the install.sh can be very difficult to get working properly.
And not many people here have much experience with Sendmail, I haven't used it in years myself. So if something doesn't work right, it can be hard to get support for it.
That said, both should be possible.
You may want to review the documentation here regarding how to perform a manual Virtualmin install... in particular, you may want to look at the section for how to setup procmail:
https://www.virtualmin.com/documentation/installation/manual
everything is working except antispam...'cause is not set properly
i don't have procmail-logger.pl and lookup-domain.pl inside /etc/webmin/virtual-server/ and neither the procmail dir... is it normal? are they created after... ?
ok, they are in /usr/libexec/webmin/virtual-server/
i have to change the paths accordingly or copy the files into the other dir?
then,
?
As long as you know what you are doing, it should be fine to use your existing DEFAULT and ORGMAIL lines (that's not the default for a typical Virtualmin setup).
The missing files and dirs that you have is fairly strange, and I suspect it's related to performing a manual install, though I'm not sure at the moment. It may also be related to using Sendmail :-)
It sounds like you have domains already setup in Virtualmin -- how were those setup? Did you import them from another system? Or were they added to this particular server using "Create Virtual Server"?
-Eric
the domains are working fine...and sendmail the same, even procmail now...
the only issue is that i don't have the correct lookup-domain.pl located at /etc/webmin/virtual-server/ and i need that... i get an error inside the procmail log:
"Undefined subroutine &main::get_user_domain called at /etc/webmin/virtual-server/lookup-domain.pl line 135."
That function comes from virtual-server-lib.pl which is in the Webmin executable installation directory (/usr/libexec/webmin/virtual-server on CentOS/RHEL/Fedora, or /usr/share/webmin/virtual-server on Debian/Ubuntu; usually in /usr/local on *BSD).
The lookup-domain.pl in /etc/webmin/virtual-server should be a wrapper script, and not the file found in /usr/libexec/webmin/virtual-server. It looks like this on my systems:
#!/usr/bin/perl
delete($ENV{'IFS'});
delete($ENV{'CDPATH'});
delete($ENV{'ENV'});
delete($ENV{'BASH_ENV'});
$ENV{'PATH'} = '/bin:/usr/bin';
$< = $>;
$( = $);
open(CONF, "/etc/webmin/miniserv.conf") || die "Failed to open /etc/webmin/miniserv.conf : $!";
while(<CONF>) {
$root = $1 if (/^root=(.*)/);
}
close(CONF);
$root || die "No root= line found in /etc/webmin/miniserv.conf";
$ENV{'PERLLIB'} = "$root";
$ENV{'WEBMIN_CONFIG'} = "/etc/webmin";
$ENV{'WEBMIN_VAR'} = "/var/webmin";
chdir("$root/virtual-server");
exec("$root/virtual-server/lookup-domain.pl", @ARGV) || die "Failed to run $root/virtual-server/lookup-domain.pl : $!";
Some of those would be different on other systems, and I believe it is auto-generated by Virtualmin during initial configuration.
--
Check out the forum guidelines!