ZMailer + MailScanner

Mariano Absatz mailscanner at LISTS.COM.AR
Fri Jul 18 22:43:04 IST 2003

Hi there,

a guy who works with me wrote the initial code that allowed MailScanner to 
work along with ZMailer.

I maintain it and wrote the simple instructions in:

As I said there, I didn't have a proper init.d script... in fact, I never had 
installed either ZMailer or MailScanner from RPM... I'm usually more 
comfortable compiling my most critical pieces of software, and my mail 
server, certainly is critical.

However I could argue that if you're running ZMailer, then "you should know" 
and if you just want to plain run a MailScanner, you'll be more comfortable 
using either Sendmail or Postfix, I just got a hand on a spare old pentium 
with redhat in it and I installed ZMailer from rpm using the closest to an 
official ZMailer rpm, which is the one developed by Xosé Vázquez, found at

Then I installed the latest MailScanner 4.22-5 RPM following the 

Finally, I modified the necesary files in both so they work together.

I'm attaching 3 files: 
  is a script to create the /var/spool/postoffice-incoming hierarchy, with
  the proper subdirectories and permissions.

  is a small patch that modifies the main ZMailer configuration file, 
  /etc/zmailer/zmailer.conf so that smtpserver works in that new hierarchy.

  is a patch that modifies the following files:
  so that MailScanner works with ZMailer.

You have to be root to make this:

0) Install ZMailer and MailScanner from the rpm's.

1) stop ZMailer if it's running, and disable its startup script (as you do 
with Sendmail previous to run MailScanner):
  service zmailer stop
  chkconfig zmailer off

2) run the included shell script:
This will check that you're root, will ask for confirmation, and then, it'll 
create a bunch of directories... it's a simple script, I used "-v" in most 
commands so you can see what's beeing done.

3) Patch ZMailer:
  cd /
  patch -p0 < /path/to/ZMailer-2.99.55-5.rpm-MailScanner.patch

4) Patch MailScanner:
  cd /
  patch -p0 < /path/to/MailScanner-4.22-5.rpm-ZMailer.patch

5) Enable and start MailScanner. This will also start ZMailer:
  chkconfig --add MailScanner
  chkconfig MailScanner on
  service MailScanner start


Mariano Absatz
El Baby
I write all my critical routines in assembler, and my comedy routines in
                  -- Anonymous

-------------- next part --------------
A non-text attachment was scrubbed...
Type: application/octet-stream
Size: 1067 bytes
Desc: not available
Url :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ZMailer-2.99.55-5.rpm-MailScanner.patch
Type: application/octet-stream
Size: 624 bytes
Desc: not available
Url :
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MailScanner-4.22-5.rpm-ZMailer.patch
Type: application/octet-stream
Size: 9247 bytes
Desc: not available
Url :

More information about the MailScanner mailing list