Tuneups and Tweaks for the Better Spam-Trap - page 3
Postfix Soft Bounces
Every piece of this puzzle has its own logfile. These are the logfiles to pay the most attention to:
Refer to /etc/syslog.conf to find the locations for your various syslogs. Amavisd-new should be configured to have its own logfile, instead of dumping everything into /var/log/syslog. See Section III in amavisd.conf:
# true (e.g. 1) => syslog; false (e.g. 0) => logging to file $DO_SYSLOG = 0; # (defaults to false) # Log file (if not using syslog) $LOGFILE = "/var/log/amavis.log"; $log_level =0;
The higher the log level, the more verbose. If you are having problems, kick it up to level 3 for debugging. It goes all the way up to level 5, if you really get stuck. Once everything is working smoothly, level 0 is fine. This records startup, exit, and failure messages, and lists viruses detected. You don't want to leave the log level high, unless you enjoy rapidly filling your drives, and generating oceans of output to wade through.
is for Postfix. The different Postfix processes each generate their own
log entries: master, smtpd, cleanup, qmgr, cleanup, postfix-script, and
smtp. Here's snippet showing Amavisd-new and ClamAV starting up:
Aug 21 12:54:25 windbag amavis: Using internal av scanner code for (primary) Clam Antivirus-clamd Aug 21 12:54:25 windbag amavis: Found secondary av scanner Clam Antivirus - clamscan at /usr/bin/clamscan Aug 21 12:54:39 windbag postfix/postfix-script: starting the Postfix mail system Aug 21 12:54:39 windbag postfix/master: daemon started -- version 2.1.3
Postfix has the
loveliest way of setting your logging levels: if you have problems with
a particular domain, you can increase the log level for that domain
only. Let's say that mail from a user with a yahoo.com address is not
getting through. In
, use the
debug_peer_list = yahoo.com debug_peer_level = 3
Run postfix reload, then send messages to your server from yahoo.com and see what happens. Use this simple regexp to quickly find errors in the Postfix log:
$ egrep '(reject|warning|error|fatal|panic):' /var/log/mail.log
See Postfix's DEBUG_README for a complete debugging howto.
[Editor's Note: This article orginally appeared on the Jupiterweb site Enterprise Networking Planet. -BKP]
Solid state disks (SSDs) made a splash in consumer technology, and now the technology has its eyes on the enterprise storage market. Download this eBook to see what SSDs can do for your infrastructure and review the pros and cons of this potentially game-changing storage technology.
- 1Linux Top 3: GNOME 3.12 and New Betas for Ubuntu 14.04 and OpenMandriva Lx 2014.0
- 2Linux Top 3: Linux 3.10 Goes Long, Linux 3.11 Advances as LXDE Merges
- 3Linux Top 3: Linus Lashes out, Linux 3.14 Gets PIE and Ubuntu One is Done.
- 4Linux Top 3: Ubuntu 14.04, Debian Gives Squeeze More Life and Red Hat Goes Atomic
- 5Linux Top 3: Linux 3.11, Kubuntu Goes Commercial