Default options for virtual servers with regards to Spam and Virus Delivery

7 posts / 0 new
Last post
#1 Sat, 07/27/2013 - 14:07
ReArmedHalo

Default options for virtual servers with regards to Spam and Virus Delivery

Hi,

Under individual virtual servers, "Server Configuration" -> "Spam and Virus Delivery" there are the two radio buttons for "Write to standard spam Maildir ~/Maildir/.spam/" and "Write to standard virus Maildir ~/Maildir/.Virus/" However, the defaults for both are the options above them, "Write to standard virus file ~/mail/Virus" and "Write to standard spam file ~/mail/spam".

Can anyone tell me how I can make "Write to standard spam/virus Maildir..." be default for all new virtual servers? Main reason for this is because I will be running Roundcube and from what I've gathered via experimentation, Maildir format works better.

Running Virtualmin 4.01 Pro on CentOS 6.4 x64

Thanks :)

Sat, 07/27/2013 - 21:55
andreychek

Howdy,

You're right, Maildir is the preferred option there, and actually normally is the default.

But I'm not quite sure how to change that :-)

I'm curious if maybe that's a procmail settting... can you paste in the contents of your /etc/procmailrc file?

-Eric

Sat, 07/27/2013 - 22:18 (Reply to #2)
ReArmedHalo

That's what I've read, however in my installs I've noticed it's set to the option above it (can't remember off top of my head what it's called, I'm visually impaired so I tend to remember the location of things more then what they are lol)

Procmail file:

LOGFILE=/var/log/procmail.log
TRAP=/etc/webmin/virtual-server/procmail-logger.pl
:0wi
VIRTUALMIN=|/etc/webmin/virtual-server/lookup-domain.pl --exitcode 73 $LOGNAME
EXITCODE=$?
:0
* ?/usr/bin/test "$EXITCODE" = "73"
/dev/null
EXITCODE=0
:0
* ?/usr/bin/test "$VIRTUALMIN" != ""
{
INCLUDERC=/etc/webmin/virtual-server/procmail/$VIRTUALMIN
}
ORGMAIL=$HOME/Maildir/
DEFAULT=$HOME/Maildir/
DROPPRIVS=yes
:0
$DEFAULT
:0
* ^X-Spam-Status: Yes
$HOME/Maildir/.spam//
Wed, 07/31/2013 - 21:53
ReArmedHalo

I'm guessing these two lines effect my options, However I'm not entirely sure and don't want to change them and possibly break something :P Still fairly new to linux :)

ORGMAIL=$HOME/Maildir/ DEFAULT=$HOME/Maildir/

This sections looks like what I have set but I don't know what the :0 means

:0 * ^X-Spam-Status: Yes $HOME/Maildir/.spam//

Also this is only spam, where could I find the Virus settings as well?

Thanks

Thu, 08/01/2013 - 04:44
Locutus

The default delivery options can be configured system-wide under "System Settings / Virtualmin Configuration / Spam filtering options".

The ":0" bit in the procmail config simply is the marker that indicated the start of a new rule. Yeah, procmail syntax is very odd.

Thu, 08/01/2013 - 14:06 (Reply to #5)
ReArmedHalo

YES!

I think that was what I am looking for. I could've sworn I looked there too lol. Thank you so much!

Thu, 08/01/2013 - 14:13
Locutus

You're welcome! :)

Topic locked