SulfurousQmail
From Ollie's Web Site
Contents |
[edit]
Qmail Server sulfurous
[edit]
Mail Logic
- Inbound mail is received by the smtp-listener.
- Mail is rejected if domain not found in control/locals, control/rcpthosts.
- 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.
- If qmailscanner, then the mail is processed through:
- clamav - not implemented yet;
- spamassassin - evaluates mail, adds various X-Headers with results;
- passes resultant email to qmail-queue for remainder of qmail processing.
- Delivery is controlled by:
- control/locals - if domain only in here, then tries to deliver locally.
- control/smtproutes - if domain here, not in locals, then delivers per this file.
- logging is done to multiple places:
- /var/log/qmail
- /var/log/mail.err, mail.info, mail.log, mail.warn
- /var/log/syslog - qmail-scanner / spamassassin results
[edit]
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.
[edit]
Helper programs
- qmailctl - see above
- qmail-analog - analyse qmail log files. See Qmail-SpamAssassin#qmail-analog.
- sa-update - updates spamassassin rules. See sa wiki on rules updates. See also how to update SARE rules.
- added cron job to run sa-update at 0317 daily for both main channel and SARE.

