MS + Sendmail question

Kearney, Rob RKearney at AZERTY.COM
Mon Sep 15 20:56:33 IST 2003


for the Logging issue, check archives, there are several posts about real
time logging to mysql instead of to files which are flushed when mailscanner
restarts, I'd be happy to share our solution for this if you are interested.


For the garbage, this might be the result of HUP'ing sendmail as you stated
already.

-rob

-----Original Message-----
From: Tony Johansson [mailto:tony.johansson at SVENSKAKYRKAN.SE]
Sent: Monday, September 15, 2003 2:45 PM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: MS + Sendmail question


I have some specific needs with a MS+Sendmail installation and have quite a
few doubts that what I've built is the optimum solution, any tips or
pointers are greatly appreciated.

I want the possibility to add a domain at any time and have MS and
Sendmail "pick up" the changes in, at the most, 15 minutes.

The system is running on RedHat9 with Sendmail 8.12.8

Here is how I do it:
The domain is added to all relevant rule-files
A directory with the domain name is created in /var/spool/mqueue/
(sendmail.cf contains "O QueueDirectory=/var/spool/mqueue/*" )
I makemap hash for both mailertable (ip's to forward to) and relay-domain
(domains to accept)
I HUP sendmail and reload MailScanner every 15 minutes.


While it seems to work, it does bring a few problems:
On busy servers lots of garbage get put in mqueue.in. This seems to be
partial messages getting stuck when sendmail is restarting.
The constant "up and down" of MailScanner and Sendmail takes alot of time.

With this setup, are there any shortcuts I could take and still get the
result I desire?

I figure HUP'ing sendmail and reloading MailScanner only when a change has
been made is better but I also want the log data flushed to SQL as often as
possible.


Regards, Tony



More information about the MailScanner mailing list