[SOLVED]Configure "Read User Mail" to read /var/spool/mail/$username ONLY

hi,
i’m using Virtualmin 4.12 with Postfix, Dovecot…

i have the emails in /var/spool/mail/$username

but “Read User Mail” reads from Maildir, which is empty and i don’t need…

How to fix?

thanks

Howdy,

By default, a newly installed system with Virtualmin is configured to use Maildir-based mailboxes. Procmail is configured to deliver email to Maildir in $HOME/Maildir, and Dovecot is configured to read from there. Usermin may be configured to look there as well.

While it’s our recommendation to use Maildir, it is possible to switch that to Mbox.

I haven’t done much with Mbox style mailboxes myself, but I did some Googling, and found a post on the Webmin mailing list where Jamie explained in some detail how to set that up in the Usermin “Read User Mail” module… does this resolve the issue you’re seeing:

http://comments.gmane.org/gmane.comp.web.webmin.general/23412

my /etc/usermin/mailbox/config

server_attach=0
no_crlf=0
perpage=20
mail_system=4
shortindex=0
folder_types=local,ext,pop3,imap
from_map=/etc/postfix/virtual
mail_file=mbox
noindex_hostname=1
mail_dir=/var/spool/mail
spam_report=
show_to=0
spam_always=0
wrap_width=80
from_format=1
pop_locks=1
folder_virts=virt,comp
mail_style=0
sendmail_path=/usr/lib/sendmail
top_buttons=1
nologout=1
no_mailer=0
edit_from=1
mail_dir_qmail=Maildir
no_orig_ip=1
send_mode=localhost
pop3_server=localhost
mail_qmail=

as you can see is already set… but when i enter the “Read User Mail” my users link to Maildirs only…

and in the module config i see this http://i60.tinypic.com/2ilk5jn.jpg

how I have to set?

ok, solved

Detect location of mail files automatically? NO, use settings below... User mail file directory /var/spool/mail Mail file directory style mail/username and the rest to None