Help hurricane victims by donating to the American Red Cross.

SulfurousQmail

From Ollie's Web Site

Contents

Qmail Server sulfurous

Mail Logic

  1. Inbound mail is received by the smtp-listener.
  2. Mail is rejected if domain not found in control/locals, control/rcpthosts.
  3. TCP server uses logic described in /etc/tcp.smtp (actually tcp.cdb, but you can't read that) to determine (1) whether to allow relay; and (2) what to process mail through qmail-scanner-queue or not.
  4. If qmailscanner, then the mail is processed through:
    1. clamav - not implemented yet;
    2. spamassassin - evaluates mail, adds various X-Headers with results;
    3. passes resultant email to qmail-queue for remainder of qmail processing.
  5. Delivery is controlled by:
    1. control/locals - if domain only in here, then tries to deliver locally.
    2. control/smtproutes - if domain here, not in locals, then delivers per this file.
  6. logging is done to multiple places:
    1. /var/log/qmail
    2. /var/log/mail.err, mail.info, mail.log, mail.warn
    3. /var/log/syslog - qmail-scanner / spamassassin results

Controls

  • qmail is run as a service - run files located in /service. Automatically starts at boot and automatically restarted if fails.
  • qmailctl - starts, stops, restarts qmail, provides status, recompiles /etc/tcp.cdb from /etc/tcp.smpt.
  • directory /var/qmail/control contains many control files. Restart qmail if any are changed.
  • /etc/init.d/spamassassin starts, stops, restarts spamd daemon.
  • spamassassin - control files:
    • /etc/default/spamassassin - enables spamassassin; sets max_children. Now 5. May want to increase to 10 if having throughput problems.
    • /etc/spamassassin/ - which plugins are enabled.
    • /var/lib/spamassassin/ - updated rule set.

Helper programs