Skip navigation
This discussion is archived

Amavisd died? - Connection refused.

9668 Views 17 Replies Latest reply: Sep 29, 2009 1:56 AM by HinckleyScott RSS
1 2 Previous Next
criuz Level 1 Level 1 (0 points)
Currently Being Moderated
Jul 12, 2009 2:25 AM
Hi!

Suddenly my junk mail filtering (I suppose amavisd) died. When I turn it off via server admin my mail gets delivered fine. When it is turned on I read in the logs:
connect to 127.0.0.1[127.0.0.1]: Connection refused


Here is the output of my postconf -n:
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debugpeerlevel = 2
disablevrfycommand = yes
enableserveroptions = yes
html_directory = no
inet_interfaces = all
localrecipientmaps = proxy:unix:passwd.byname $alias_maps
mail_owner = _postfix
mailboxsizelimit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
messagesizelimit = 15728640
mydestination = $myhostname,localhost.$mydomain,localhost,kosmatschof.com,veech-vma.com
mydomain = veech-vma.com
mydomain_fallback = localhost
myhostname = server.veech-vma.com
newaliases_path = /usr/bin/newaliases
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
relayhost = smtp.inode.at
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = _postdrop
smtpsasl_passwordmaps =
smtpdclientrestrictions = permitsaslauthenticated, permit_mynetworks, rejectrblclient zen.spamhaus.org, permit
smtpddatarestrictions = permit_mynetworks, rejectunauthpipelining, permit
smtpdenforcetls = no
smtpdhelorequired = yes
smtpdhelorestrictions = permitsaslauthenticated, permit_mynetworks, checkheloaccess hash:/etc/postfix/helo_access, rejectnon_fqdnhostname, rejectinvalidhostname, permit
smtpdpw_server_securityoptions = plain,login,gssapi,cram-md5
smtpdrecipientrestrictions = permitsasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
smtpdsasl_authenable = yes
smtpdsenderrestrictions = permitsaslauthenticated, permit_mynetworks, rejectnon_fqdnsender, permit
smtpdtls_certfile = /etc/certificates/Default.crt
smtpdtls_keyfile = /etc/certificates/Default.key
smtpdtlsloglevel = 0
smtpduse_pwserver = yes
smtpdusetls = no
unknownlocal_recipient_rejectcode = 550


When I issue ps U clamav I see:
83022 ?? Ss 0:00.01 freshclam -d -c 4


Please help and thanks so much in advance for helping me out, as I am really stuck right now.
Chris
  • davidh Level 4 Level 4 (1,890 points)
    Currently Being Moderated
    Jul 12, 2009 6:10 PM (in response to criuz)
    If you look at that line in /usr/bin/amavisd , you'll see that it can't work with the PID file.

    You probably have a stale PID file after amavisd crashed, and that's putting a wrench in the works.

    Stop mail via (the Terminal)
    sudo serveradmin stop mail

    wait 10-15 seconds
    and then unload & reload the launchd plist for amavisd:

    sudo launchctl unload /System/Library/LaunchDaemons/org.amavis.amavisd.plist

    wait 5 seconds
    sudo launchctl load /System/Library/LaunchDaemons/org.amavis.amavisd.plist

    and then start mail via

    sudo serveradmin start mail

    In all instances watch the system & mail logs.

    If the problem persists, stop mail unload amavisd and set aside any PID file in
    /var/amavis
    or
    /var/amavis/var

    and reload amavisd and start mail.
    Mac OS X (10.5.5), ACMT, ACTC (10.2) ACSA (10.4)
  • David_x Level 4 Level 4 (3,010 points)
    Currently Being Moderated
    Jul 13, 2009 1:11 AM (in response to criuz)
    List the file: /etc/postfix/master.cf

    I have found that sometimes this gets a duplicated section at the end which can cause these symptoms. It will be easy to spot if it is there. If so, stop mail and delete the duplicate section manually.
  • pterobyte Level 6 Level 6 (10,910 points)
    Currently Being Moderated
    Jul 13, 2009 2:42 AM (in response to criuz)
    Suddenly my junk mail filtering


    Can you define suddenly? Any changes or updates shortly before it stopped working?

    What do you get when you open a Terminal window and simply issue:
    amavisd
    Mac OS X (10.5.7)
  • pterobyte Level 6 Level 6 (10,910 points)
    Currently Being Moderated
    Jul 13, 2009 2:57 AM (in response to criuz)
    In which case, everything davidh says fully applies and is the route to go.

    Did you remove the pid file?
    Mac OS X (10.5.7)
  • pterobyte Level 6 Level 6 (10,910 points)
    Currently Being Moderated
    Jul 13, 2009 3:06 AM (in response to criuz)
    Did you follow all steps David suggested?

    What do you see in amavis.log and system.log after issuing (make sure logging level is set to at least information):
    sudo /bin/launchctl load -w /System/Library/LaunchDaemons/org.amavis.amavisd.plist
    Mac OS X (10.5.7)
  • pterobyte Level 6 Level 6 (10,910 points)
    Currently Being Moderated
    Jul 13, 2009 3:28 AM (in response to criuz)
    What does this show:
    ls -ld /var/amavis
    Mac OS X (10.5.7)
  • pterobyte Level 6 Level 6 (10,910 points)
    Currently Being Moderated
    Jul 13, 2009 3:37 AM (in response to pterobyte)
    I have a very hard time believing nothing was changed since the permissions should be amavisd:amavisd and not _clamav. They certainly did not change by themselves

    Issue:
    sudo chown -R amavisd:amavisd /var/amavis and restart amavisd
    Mac OS X (10.5.7)
1 2 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.