• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
The Electric Toolbox Blog

The Electric Toolbox Blog

Linux, Apache, Nginx, MySQL, Javascript and PHP articles

  • Applications
  • FCKEditor
  • Apache
  • Windows
  • Contact Us
Home / Spamassassion connection refused

Spamassassion connection refused

If you get a message like the one following, then you are filtering emails through spamassasin using /usr/bin/spamc but the spamassassin service is not running.

Oct 24 12:27:31 vps131 postfix/smtpd[32273]: connect from mail.example.com[10.1.1.25]
Oct 24 12:27:31 vps131 postfix/smtpd[32273]: 4EDA01DB08012: client=mail.example.com[10.1.1.25]
Oct 24 12:27:31 vps131 postfix/cleanup[32280]: 4EDA01DB08012:
message-id=<200710241227.29534.chris@electrictoolbox.com>
Oct 24 12:27:31 vps131 postfix/qmgr[16073]: 4EDA01DB08012: from=<chris@electrictoolbox.com>, size=1161, nrcpt=1 (queue active)
Oct 24 12:27:31 vps131 postfix/smtpd[32273]: disconnect from mail.example.com[10.1.1.25]
Oct 24 12:27:31 vps131 spamc[3173]: connect(AF_INET) to spamd at 127.0.0.1 failed, retrying (#1 of 3): Connection refused
Oct 24 12:27:32 vps131 spamc[3173]: connect(AF_INET) to spamd at 127.0.0.1 failed, retrying (#2 of 3): Connection refused
Oct 24 12:27:33 vps131 spamc[3173]: connect(AF_INET) to spamd at 127.0.0.1 failed, retrying (#3 of 3): Connection refused
Oct 24 12:27:34 vps131 spamc[3173]: connection attempt to spamd aborted after 3 retries
Oct 24 12:27:34 vps131 postfix/pipe[32282]: 4EDA01DB08012: to=<hhh@mail.example.com>, orig_to=<test@example.com>, relay=maildrop, delay=3.1, delays=0.03/0/0/3, dsn=2.0.0, status=sent (delivered via maildrop service)
Oct 24 12:27:34 vps131 postfix/qmgr[16073]: 4EDA01DB08012: removed

So you need to start it:

/etc/init.d/spamassassin start

And set it so it starts automatically when the server starts (example below is for Red Hat Enterprise Linux, CentOS and Fedora based Linux distros):

chkconfig spamassassin on

Check Out These Related posts:

  1. Changing exim4 settings with Debian 5 Lenny
  2. List directories only with ls
  3. Postfix SMTP Auth Error “no SASL authentication mechanisms”
  4. Mac mail queue commands

Filed Under: Email Servers

Primary Sidebar

Categories

  • Apache
  • Applications
  • Article
  • Case Studies
  • Email Servers
  • FCKEditor
  • HTML And CSS
  • Javascript
  • Linux/Unix/BSD
  • Microsoft SQL Server
  • Miscellaneous Postings
  • MySql
  • Networking
  • Nginx Web Server
  • Offsite Articles
  • OSX
  • PHP
  • Quick Tips
  • RFC – Request for Comments
  • SilverStripe
  • VMWare
  • VPN
  • Windows
  • WordPress

Recent Posts

  • Vim Show Line Numbers
  • Add User To Group Linux
  • Chmod 777 Tutorial
  • How to Copy Directory Linux
  • Linux create user

Copyright © 2021. ElectricToolBox. All Rights Reserved.

  • Contact Us
  • Copyright Info
  • Privacy Policy
  • Sitemap