strange glitch results in lost mail

Chris Yuzik chris at FRACTALWEB.COM
Mon Jul 14 22:58:49 IST 2003

I've setup the whitelist rules to include * and my other
domains that are hosted on the server, and specified the complete path to
the whitelist file in MailScanner.conf. I then stopped sendmail and started
the Mailscanner service.

I then sent a test email from cyuzik at to chris at;
the message never did arrive.

Here are (what I believe to be) the relevant portions of the maillog file.

Jul 14 14:29:00 ns1 sendmail[23636]: h6ELSxo23636:
to=<chris at>, delay=00:00:00, mailer=virthostmail, pri=141805,
Jul 14 14:29:02 ns1 MailScanner[23606]: New Batch: Scanning 1 messages, 4376
Jul 14 14:29:03 ns1 MailScanner[23606]: Spam Checks: Starting
Jul 14 14:29:03 ns1 MailScanner[23606]: Virus and Content Scanning: Starting
Jul 14 14:29:03 ns1 MailScanner[23606]: Uninfected: Delivered 1 messages
Jul 14 14:29:03 ns1 virthostmail[23646]: Chrooting to
Jul 14 14:29:03 ns1 sendmail[23644]: h6ELSxo23636:
to=<chris at>, delay=00:00:03, xdelay=00:00:00,
mailer=virthostmail, pri=231805,, dsn=2.0.0, stat=Sent
(h6ELT3m23648 Message accepted for delivery)
Jul 14 14:29:03 ns1 sendmail[23649]: h6ELT3m23648:
to=<chris at>, delay=00:00:00, xdelay=00:00:00, mailer=local,
pri=139143, dsn=2.0.0, stat=Sent

There is nothing in /var/spool/mail.

HOWEVER...(and now we're getting somewhere)...there are a ton of files
sitting in /home/virtual/ According to the dates and times of
these oddly named files, this looks like it could be the lost mail. It looks
like the mail is being delivered to the wrong directory. AHA!!!

In fact, each of my virtual directories has a bunch of these suspicious
looking mail files.

So, it looks like sendmail or procmail or whatever program is transferring
the messages to the right mailbox isn't getting it quite right. Instead of
putting my mail into /home/virtual/, it should be putting it
into "/home/virtual/", right? Or am I
wrong here?

My thoughts are now this: all I need to do is figure out what file is doing
the job of xferring the messages, find its configuration file, and tweak

I don't know where to start though, so I need help.

Help! :-)

ps - this is more fun than most games...kinda reminds me of the old Zork

More information about the MailScanner mailing list