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


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 :slight_smile:


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 :slight_smile:

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


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/ :0wi VIRTUALMIN=|/etc/webmin/virtual-server/ --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//

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 :stuck_out_tongue: Still fairly new to linux :slight_smile:


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


  • ^X-Spam-Status: Yes

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


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.


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

You’re welcome! :slight_smile: