procmailrc altered from maildir to mailbox

Hell Folks!

Centos 7 and Centos 6.6 minimal install -postfix + sendmail + virtualmin prereq + virtualmin. After installation removing postifix and change to sendmail.

Systems is populated with hundreds of local users which reads mail from IMAPS and POP3S, MailDir format is used from stock Centos 7 installation.

/etc/procmailrc:
DEFAULT=$HOME/Maildir/
ORGMAIL=$HOME/Maildir/
DROPPRIVS=yes
:0
$DEFAULT

Installing virtualmin and following the wizard, changing read user mail from postfix to sendmail. Adding one virtualmin domain gives this result:

/etc/procmailrc:
:0wi
VIRTUALMIN=|/etc/webmin/virtual-server/lookup-domain.pl $LOGNAME
EXITCODE=$?
:0
* ?/bin/test "$EXITCODE" = "73"
/dev/null
EXITCODE=0
:0
* ?/bin/test "$VIRTUALMIN" != ""
{
INCLUDERC=/etc/webmin/virtual-server/procmail/$VIRTUALMIN
}
DEFAULT=/var/spool/mail/$LOGNAME
ORGMAIL=/var/spool/mail/$LOGNAME
DROPPRIVS=yes
:0
$DEFAULT

Result, all local unix users "lost their mail" because mail is delivered to mbox format now.

Checking one user ll /var/spool/mail . .

-rw------- 1 fretom fretom 1650 Nov 30 17:05 fretom . .

Not delivered to Maildir as far I can see, same for all other local unix users.

How do I now get this working ? What format is actually used for virtualmin users ?

Status: 
Active

Comments

Howdy -- I believe you're seeing an issue with the Sendmail configuration. Sendmail needs to be configured to use for the email directory, rather than /var/spool/mail. Specifically, it needs to use $HOME/Maildir.

Virtualmin configures procmail to deliver email to where ever the mail server is setup to deliver to.

Off the top of my head, I'm not sure which Sendmail parameter that is -- though I do know that the Postfix equivalent is "home_mailbox = Maildir/".

We'd definitely recommend using Postfix if at all possible -- it comes preconfigured to work properly, it's highly tested, and we're all very familiar with how it works.

However, it is possible to use Sendmail, so if that's your preference, it will work, it just takes some additional tweaking to get it up and running.