Loading ...
Sorry, an error occurred while loading the content.
 

Re: (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused <- messages all of a sudden...

Expand Messages
  • Santiago Romero
    ... Are you using Amavisd as content filter? A friend of mine reported last night a similar problem with a centos Linux after doing a yum upgrade . I don t
    Message 1 of 16 , Jul 2, 2008
      Richard Foley wrote:
      > 881D81417052 2088 Wed Jul 2 13:07:15 netscape.netpetermbela22@...
      > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection
      > refused)
      >

      Are you using Amavisd as content filter?

      A friend of mine reported last night a similar problem with a centos
      Linux after doing a "yum upgrade". I don't know if it's a postfix or a
      broken amavisd RPM package... but he had to disable the content
      filtering to solve the problem.

      Bye!

      --
      Santiago Romero
    • Charles Marcus
      ... If not a broken content filter, maybe a firewall or security (SELinux) setting gone wrong? -- Best regards, Charles
      Message 2 of 16 , Jul 2, 2008
        On 7/2/2008, Richard Foley (Richard.Foley@...) wrote:
        > 881D81417052 2088 Wed Jul 2 13:07:15 netscape.netpetermbela22@...
        > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection
        > refused)

        If not a broken content filter, maybe a firewall or security (SELinux)
        setting gone wrong?

        --

        Best regards,

        Charles
      • Richard Foley
        ... Yep. ... I think it was either amavisd or spamassassin, so I ve disabled them both for the moment until I can figure out what the problem is. Thanks for
        Message 3 of 16 , Jul 2, 2008
          On Wednesday 02 July 2008 14:14:56 Santiago Romero wrote:
          > Richard Foley wrote:
          > > 881D81417052 2088 Wed Jul 2 13:07:15
          > > netscape.netpetermbela22@...
          > > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:
          > > Connection refused)
          >
          > Are you using Amavisd as content filter?
          >
          Yep.

          > I don't know if it's a postfix or a broken amavisd RPM package... but he had
          > to disable the content filtering to solve the problem.
          >
          I think it was either amavisd or spamassassin, so I've disabled them both for
          the moment until I can figure out what the problem is. Thanks for the tip!

          Of course I had to go read the mail archives online via the web to look for
          any answers to my problem, because I couldn't read the replies sent via mail,
          because my mail server was shot - thank goodness for the 'net, and built-in
          redundancy :-)

          --
          Richard Foley
          Ciao - shorter than aufwiedersehen

          http://www.rfi.net/
        • Otandeka Simon Peter
          Foley, The main trouble causer is amavisd. It should have failed to start up at all. Check its status.It could be even corrupt. ... -- Simon Peter Otandeka
          Message 4 of 16 , Jul 2, 2008
            Foley,

            The main trouble causer is amavisd. It should have failed to start up at all. Check its status.It could be even corrupt.



            On 7/2/08, Richard Foley <Richard.Foley@...> wrote:
            Hi folks,

            I haven't changed the config of my mail system for quite some time now, and
            all of a sudden my mail is not getting through.  The hosts file is correct,
            and I've tried requeing (below), but this doesn't seem to help as the mail
            just gets stuck on the next pass, and I'm not sure what to try next, does
            anyone have any bright ideas, please?

            #> mailq

            881D81417052     2088 Wed Jul  2 13:07:15  netscape.netpetermbela22@...
            (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection
            refused)
                                                     richard@localhost

            107EA1416859    51879 Wed Jul  2 13:03:47  MAILER-DAEMON
                                     (connect to 127.0.0.1[127.0.0.1]: Connection refused)
                                                     root


            #> postsuper -r ALL
            postsuper: Requeued: 18 messages

            #>mailq
            6BF321416859     3853 Wed Jul  2 13:09:25  MAILER-DAEMON
            (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection
            refused)
                                                     farahaqil@...

            8CA46141702C    77984 Wed Jul  2 13:09:27  root
            (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection
            refused)
                                                     root

            #> cat /etc/hosts
            127.0.0.1 localhost
            195.10.223.184 blix.rfi.net

            #> tail /var/log/mail.log
            Jul  2 12:59:47 blix postfix/qmgr[2308]: 14C751415D7D: from=<jnfj1987@...>,
            size=872, nrcpt=1 (queue active)
            Jul  2 12:59:47 blix postfix/qmgr[2308]: 14C751415D7D: to=<richard@localhost>,
            orig_to=<richard.foley@...>, relay=none, delay=-698, status=deferred
            (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection
            refused)

            I'm not getting anywhere fast - any help appreciated.


            --
            Richard Foley
            Ciao - shorter than aufwiedersehen

            http://www.rfi.net/



            --
            Simon Peter Otandeka
            P.O.Box 3316 Kampala
            tel. +256-782-801124

            "The great questions of the day will not be decided by speeches and resolutions of majorities… but by blood and iron" Chancellor Otto von Bismarck Sept 1862


            Quote of the day "You can make up your body but not your brains".
          • Richard Foley
            ... I think you re probably right. I ll have to fix this quite soon too - at the moment I am being swamped with spam... -- Richard Foley Ciao - shorter than
            Message 5 of 16 , Jul 2, 2008
              On Wednesday 02 July 2008 15:51:32 Otandeka Simon Peter wrote:
              > Foley,
              >
              > The main trouble causer is amavisd. It should have failed to start up at
              > all. Check its status.It could be even corrupt.
              >
              I think you're probably right. I'll have to fix this quite soon too - at the
              moment I am being swamped with spam...

              --
              Richard Foley
              Ciao - shorter than aufwiedersehen

              http://www.rfi.net/

              >
              >
              > On 7/2/08, Richard Foley <Richard.Foley@...> wrote:
              > >
              > > Hi folks,
              > >
              > > I haven't changed the config of my mail system for quite some time now,
              and
              > > all of a sudden my mail is not getting through. The hosts file is
              correct,
              > > and I've tried requeing (below), but this doesn't seem to help as the mail
              > > just gets stuck on the next pass, and I'm not sure what to try next, does
              > > anyone have any bright ideas, please?
              > >
              > > #> mailq
              > >
              > > 881D81417052 2088 Wed Jul 2 13:07:15
              > > netscape.netpetermbela22@...
              > > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:
              > > Connection
              > > refused)
              > > richard@localhost
              > >
              > > 107EA1416859 51879 Wed Jul 2 13:03:47 MAILER-DAEMON
              > > (connect to 127.0.0.1[127.0.0.1]: Connection
              > > refused)
              > > root
              > >
              > >
              > > #> postsuper -r ALL
              > > postsuper: Requeued: 18 messages
              > >
              > > #>mailq
              > > 6BF321416859 3853 Wed Jul 2 13:09:25 MAILER-DAEMON
              > > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:
              > > Connection
              > > refused)
              > > farahaqil@...
              > >
              > > 8CA46141702C 77984 Wed Jul 2 13:09:27 root
              > > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:
              > > Connection
              > > refused)
              > > root
              > >
              > > #> cat /etc/hosts
              > > 127.0.0.1 localhost
              > > 195.10.223.184 blix.rfi.net
              > >
              > > #> tail /var/log/mail.log
              > > Jul 2 12:59:47 blix postfix/qmgr[2308]: 14C751415D7D: from=<
              > > jnfj1987@...>,
              > > size=872, nrcpt=1 (queue active)
              > > Jul 2 12:59:47 blix postfix/qmgr[2308]: 14C751415D7D:
              > > to=<richard@localhost>,
              > > orig_to=<richard.foley@...>, relay=none, delay=-698, status=deferred
              > > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:
              > > Connection
              > > refused)
              > >
              > > I'm not getting anywhere fast - any help appreciated.
              > >
              > >
              > > --
              > > Richard Foley
              > > Ciao - shorter than aufwiedersehen
              > >
              > > http://www.rfi.net/
              > >
              >
              >
              >
              > --
              > Simon Peter Otandeka
              > P.O.Box 3316 Kampala
              > tel. +256-782-801124
              >
              > "The great questions of the day will not be decided by speeches and
              > resolutions of majorities… but by blood and iron" Chancellor Otto von
              > Bismarck Sept 1862
              >
              >
              > Quote of the day "You can make up your body but not your brains".
              >
            • Randy Ramsdell
              ... This actually happens to us all the time so the following steps may help. 1. Check to see if amavisd is taking 100% cpu. Sometimes is hangs on a message
              Message 6 of 16 , Jul 2, 2008
                Richard Foley wrote:
                > On Wednesday 02 July 2008 15:51:32 Otandeka Simon Peter wrote:
                >
                >> Foley,
                >>
                >> The main trouble causer is amavisd. It should have failed to start up at
                >> all. Check its status.It could be even corrupt.
                >>
                >>
                > I think you're probably right. I'll have to fix this quite soon too - at the
                > moment I am being swamped with spam...
                >
                >
                This actually happens to us all the time so the following steps may help.

                1. Check to see if amavisd is taking 100% cpu. Sometimes is hangs on a
                message and will not clear even after restarting. We change the
                parameter "$sa_mail_body_size_limit = 200*1024" to
                "$sa_mail_body_size_limit = 1*1024" for a a few minutes or until the
                message it was hung on gets through.
                2. When using /etc/init.d/amavis restart: Sometimes the amavis process
                wont stop and therefore does not restart, but it is reported as stoping
                and starting. Kill amavis with the kill command. Then restart is as normal.
                3. After performing one of the above steps, it may be necessary to
                restart postfix. We have to do this occasionally.
              • Richard Foley
                ... Out of the mail logs, this looks a mite promising: Jul 2 16:14:00 blix spamd[4035]: spamd: server started on port 783/tcp (running version 3.1.7-deb) Jul
                Message 7 of 16 , Jul 2, 2008
                  On Wednesday 02 July 2008 14:13:38 Matthias Schmidt wrote:
                  > Am/On Wed, 2 Jul 2008 14:07:09 +0200 schrieb/wrote Richard Foley:
                  >
                  > are you running any other services, like spamassassin?
                  > Maybe that process died and postfix can't do it's job.
                  >
                  Out of the mail logs, this looks a mite promising:

                  Jul 2 16:14:00 blix spamd[4035]: spamd: server started on port 783/tcp
                  (running version 3.1.7-deb)
                  Jul 2 16:14:00 blix spamd[4035]: spamd: server pid: 4035
                  Jul 2 16:14:00 blix spamd[4035]: spamd: fork: Cannot allocate memory
                  at /usr/sbin/spamd line 834.

                  ...

                  --
                  Richard Foley
                  Ciao - shorter than aufwiedersehen

                  http://www.rfi.net/
                • Otandeka Simon Peter
                  Richard, Put those checks in main.cf i.e. on smtpd_rcpt_restrictions and smtpd_sender_restrictions so that you can reduce on the spam as you try to sort out
                  Message 8 of 16 , Jul 2, 2008
                    Richard,

                    Put those checks in main.cf i.e. on smtpd_rcpt_restrictions and smtpd_sender_restrictions so that you can reduce on the spam as you try to sort out amavisd.

                    I actually managed to configure my postfix so well that I rarely get spam( one in a week). I have a combination of spamassasin+amavisd+ postfix although after many days playing with postfix config, I finally controlled spam.

                    On 7/2/08, Richard Foley <Richard.Foley@...> wrote:
                    On Wednesday 02 July 2008 15:51:32 Otandeka Simon Peter wrote:
                    > Foley,
                    >
                    > The main trouble causer is amavisd. It should have failed to start up at
                    > all. Check its status.It could be even corrupt.
                    >

                    I think you're probably right.  I'll have to fix this quite soon too - at the
                    moment I am being swamped with spam...


                    --

                    Richard Foley
                    Ciao - shorter than aufwiedersehen

                    http://www.rfi.net/

                    >
                    >
                    > On 7/2/08, Richard Foley <Richard.Foley@...> wrote:
                    > >
                    > > Hi folks,
                    > >
                    > > I haven't changed the config of my mail system for quite some time now,
                    and
                    > > all of a sudden my mail is not getting through.  The hosts file is
                    correct,
                    > > and I've tried requeing (below), but this doesn't seem to help as the mail
                    > > just gets stuck on the next pass, and I'm not sure what to try next, does
                    > > anyone have any bright ideas, please?
                    > >
                    > > #> mailq
                    > >
                    > > 881D81417052     2088 Wed Jul  2 13:07:15
                    > > netscape.netpetermbela22@...
                    > > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:
                    > > Connection
                    > > refused)
                    > >                                          richard@localhost
                    > >
                    > > 107EA1416859    51879 Wed Jul  2 13:03:47  MAILER-DAEMON
                    > >                          (connect to 127.0.0.1[127.0.0.1]: Connection
                    > > refused)
                    > >                                          root
                    > >
                    > >
                    > > #> postsuper -r ALL
                    > > postsuper: Requeued: 18 messages
                    > >
                    > > #>mailq
                    > > 6BF321416859     3853 Wed Jul  2 13:09:25  MAILER-DAEMON
                    > > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:
                    > > Connection
                    > > refused)
                    > >                                          farahaqil@...
                    > >
                    > > 8CA46141702C    77984 Wed Jul  2 13:09:27  root
                    > > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:
                    > > Connection
                    > > refused)
                    > >                                          root
                    > >
                    > > #> cat /etc/hosts
                    > > 127.0.0.1 localhost
                    > > 195.10.223.184 blix.rfi.net
                    > >
                    > > #> tail /var/log/mail.log
                    > > Jul  2 12:59:47 blix postfix/qmgr[2308]: 14C751415D7D: from=<
                    > > jnfj1987@...>,
                    > > size=872, nrcpt=1 (queue active)
                    > > Jul  2 12:59:47 blix postfix/qmgr[2308]: 14C751415D7D:
                    > > to=<richard@localhost>,
                    > > orig_to=<richard.foley@...>, relay=none, delay=-698, status=deferred
                    > > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:
                    > > Connection
                    > > refused)
                    > >
                    > > I'm not getting anywhere fast - any help appreciated.
                    > >
                    > >
                    > > --
                    > > Richard Foley
                    > > Ciao - shorter than aufwiedersehen
                    > >
                    > > http://www.rfi.net/
                    > >
                    >
                    >
                    >
                    > --
                    > Simon Peter Otandeka
                    > P.O.Box 3316 Kampala
                    > tel. +256-782-801124
                    >
                    > "The great questions of the day will not be decided by speeches and
                    > resolutions of majorities… but by blood and iron" Chancellor Otto von
                    > Bismarck Sept 1862
                    >
                    >
                    > Quote of the day "You can make up your body but not your brains".
                    >



                    --
                    Simon Peter Otandeka
                    P.O.Box 3316 Kampala
                    tel. +256-782-801124

                    "The great questions of the day will not be decided by speeches and resolutions of majorities… but by blood and iron" Chancellor Otto von Bismarck Sept 1862


                    Quote of the day "You can make up your body but not your brains".
                  • Mike Morris
                    ... If that is the case here, then try installing/reinstalling the Perl module Scalar-List-Utils available from
                    Message 9 of 16 , Jul 2, 2008
                      On 07/02/2008 05:14 AM, Santiago Romero wrote:
                      > Richard Foley wrote:
                      >> 881D81417052 2088 Wed Jul 2 13:07:15
                      >> netscape.netpetermbela22@...
                      >> (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:
                      >> Connection refused)
                      >>
                      >
                      > Are you using Amavisd as content filter?
                      >
                      > A friend of mine reported last night a similar problem with a centos
                      > Linux after doing a "yum upgrade". I don't know if it's a postfix or a
                      > broken amavisd RPM package... but he had to disable the content
                      > filtering to solve the problem.
                      >
                      > Bye!
                      >

                      If that is the case here, then try installing/reinstalling the Perl
                      module Scalar-List-Utils available from
                      http://cpan.yahoo.com/authors/id/G/GB/GBARR/Scalar-List-Utils-1.19.tar.gz,
                      and then possibly upgrading or reinstalling the other Perl modules
                      required by amavisd-new. A recent upgrade to CentOS 5.2 on one of our
                      email servers caused similar problems (amavisd-new would not start).
                      Fortunately this was not a production server, but unfortunately I failed
                      to take notes on the exact steps required to get amavsid-new running
                      again after the system upgrade.

                      Best of luck,

                      Mike
                    • Richard Foley
                      ... I m not exactly sure what you mean here, but I ll take another look at the postfix docs and see if i can work something out. The following seems to work
                      Message 10 of 16 , Jul 2, 2008
                        On Wednesday 02 July 2008 17:25:57 Otandeka Simon Peter wrote:
                        > Richard,
                        >
                        > Put those checks in main.cf i.e. on smtpd_rcpt_restrictions and
                        > smtpd_sender_restrictions so that you can reduce on the spam as you try to
                        > sort out amavisd.
                        >
                        I'm not exactly sure what you mean here, but I'll take another look at the
                        postfix docs and see if i can work something out. The following seems to
                        work quite well for me, but still allows quite a lot through.

                        smtpd_data_restrictions =
                        reject_unauth_pipelining,
                        permit

                        smtpd_sender_restrictions =
                        reject_non_fqdn_sender,
                        reject_unknown_sender_domain,
                        permit

                        smtpd_recipient_restrictions =
                        permit_sasl_authenticated,
                        permit_mynetworks,
                        reject_non_fqdn_hostname,
                        reject_non_fqdn_sender,
                        reject_non_fqdn_recipient,
                        reject_unknown_sender_domain,
                        reject_unknown_recipient_domain,
                        reject_unauth_destination,
                        check_helo_access hash:/etc/postfix/helo_checks,
                        check_recipient_access pcre:/etc/postfix/recipient_checks,
                        check_client_access hash:/etc/postfix/client_checks,
                        check_sender_access hash:/etc/postfix/sender_checks,
                        reject_invalid_hostname,
                        # reject_rbl_client cbl.abuseat.org,
                        # reject_rbl_client list.dsbl.org,
                        # reject_rbl_client sbl.spamhaus.org,
                        # reject_rbl_client pbl.spamhaus.org
                        permit

                        > I actually managed to configure my postfix so well that I rarely get spam(
                        > one in a week). I have a combination of spamassasin+amavisd+ postfix
                        > although after many days playing with postfix config, I finally controlled
                        > spam.
                        >
                        I would love to see your postfix config. I get something like 10 - 15 spams a
                        day, normally. But with amavisd down, I'm getting that every hour now...

                        --
                        Richard Foley
                        Ciao - shorter than aufwiedersehen

                        http://www.rfi.net/

                        > On 7/2/08, Richard Foley <Richard.Foley@...> wrote:
                        > >
                        > > On Wednesday 02 July 2008 15:51:32 Otandeka Simon Peter wrote:
                        > > > Foley,
                        > > >
                        > > > The main trouble causer is amavisd. It should have failed to start up at
                        > > > all. Check its status.It could be even corrupt.
                        > > >
                        > >
                        > > I think you're probably right. I'll have to fix this quite soon too - at
                        > > the
                        > > moment I am being swamped with spam...
                        > >
                        > >
                        > > --
                        > >
                        > > Richard Foley
                        > > Ciao - shorter than aufwiedersehen
                        > >
                        > > http://www.rfi.net/
                        > >
                        > > >
                        > > >
                        > > > On 7/2/08, Richard Foley <Richard.Foley@...> wrote:
                        > > > >
                        > > > > Hi folks,
                        > > > >
                        > > > > I haven't changed the config of my mail system for quite some time
                        now,
                        > > and
                        > > > > all of a sudden my mail is not getting through. The hosts file is
                        > > correct,
                        > > > > and I've tried requeing (below), but this doesn't seem to help as the
                        > > mail
                        > > > > just gets stuck on the next pass, and I'm not sure what to try next,
                        > > does
                        > > > > anyone have any bright ideas, please?
                        > > > >
                        > > > > #> mailq
                        > > > >
                        > > > > 881D81417052 2088 Wed Jul 2 13:07:15
                        > > > > netscape.netpetermbela22@...
                        > > > > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:
                        > > > > Connection
                        > > > > refused)
                        > > > > richard@localhost
                        > > > >
                        > > > > 107EA1416859 51879 Wed Jul 2 13:03:47 MAILER-DAEMON
                        > > > > (connect to 127.0.0.1[127.0.0.1]: Connection
                        > > > > refused)
                        > > > > root
                        > > > >
                        > > > >
                        > > > > #> postsuper -r ALL
                        > > > > postsuper: Requeued: 18 messages
                        > > > >
                        > > > > #>mailq
                        > > > > 6BF321416859 3853 Wed Jul 2 13:09:25 MAILER-DAEMON
                        > > > > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:
                        > > > > Connection
                        > > > > refused)
                        > > > > farahaqil@...
                        > > > >
                        > > > > 8CA46141702C 77984 Wed Jul 2 13:09:27 root
                        > > > > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:
                        > > > > Connection
                        > > > > refused)
                        > > > > root
                        > > > >
                        > > > > #> cat /etc/hosts
                        > > > > 127.0.0.1 localhost
                        > > > > 195.10.223.184 blix.rfi.net
                        > > > >
                        > > > > #> tail /var/log/mail.log
                        > > > > Jul 2 12:59:47 blix postfix/qmgr[2308]: 14C751415D7D: from=<
                        > > > > jnfj1987@...>,
                        > > > > size=872, nrcpt=1 (queue active)
                        > > > > Jul 2 12:59:47 blix postfix/qmgr[2308]: 14C751415D7D:
                        > > > > to=<richard@localhost>,
                        > > > > orig_to=<richard.foley@...>, relay=none, delay=-698,
                        > > status=deferred
                        > > > > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:
                        > > > > Connection
                        > > > > refused)
                        > > > >
                        > > > > I'm not getting anywhere fast - any help appreciated.
                        > > > >
                        > > > >
                        > > > > --
                        > > > > Richard Foley
                        > > > > Ciao - shorter than aufwiedersehen
                        > > > >
                        > > > > http://www.rfi.net/
                        > > > >
                        > > >
                        > > >
                        > > >
                        > > > --
                        > > > Simon Peter Otandeka
                        > > > P.O.Box 3316 Kampala
                        > > > tel. +256-782-801124
                        > > >
                        > > > "The great questions of the day will not be decided by speeches and
                        > > > resolutions of majorities… but by blood and iron" Chancellor Otto von
                        > > > Bismarck Sept 1862
                        > > >
                        > > >
                        > > > Quote of the day "You can make up your body but not your brains".
                        > > >
                        > >
                        >
                        >
                        >
                        > --
                        > Simon Peter Otandeka
                        > P.O.Box 3316 Kampala
                        > tel. +256-782-801124
                        >
                        > "The great questions of the day will not be decided by speeches and
                        > resolutions of majorities… but by blood and iron" Chancellor Otto von
                        > Bismarck Sept 1862
                        >
                        >
                        > Quote of the day "You can make up your body but not your brains".
                        >
                      • Gary V
                        ... So most likely amavisd-new has stopped or is otherwise not responding. Assuming you are not running an ancient version, grep your mail log for !. grep !
                        Message 11 of 16 , Jul 2, 2008
                          > 8CA46141702C 77984 Wed Jul 2 13:09:27 root
                          > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:
                          > Connection refused)

                          So most likely amavisd-new has stopped or is otherwise not responding. Assuming you are not running an ancient version, grep your mail log for !.

                          grep ! /var/log/maillog

                          (or whatever your mail log is called) and look for errors that amavisd-new may have produced. You can increase $log_level to 5 in amavisd.conf for a short period of time and read the results of this detailed logging in your mail log. You can also stop amavisd-new and run it in debug mode (in the foreground) for a short period of time:

                          amavisd debug

                          If it dies while in debug mode, the last 5 or so lines may give some clues as to why. There is also a program called amavisd-nanny that you can run for a brief period that will monitor amavisd-new activity:

                          http://marc.info/?l=amavis-user&m=118955545631169

                          Amavisd-new does not use spamd, it loads the Mail::SpamAssassin Perl module directly. Unless you are scanning mail twice, you typically do not, and should not start up spamd.

                          It cannot be determined what the cause of the amavisd-new failure is without seeing log entries or the result of debugging.
                          I suggest that the result of what you find in the log or the debugging session is directed to the amavis mailing list.

                          Gary V




                          _________________________________________________________________
                          Enter the Zune-A-Day Giveaway for your chance to win — day after day after day
                          http://www.windowslive-hotmail.com/ZuneADay/?locale=en-US&ocid=TXT_TAGLM_Mobile_Zune_V1
                        • Richard Foley
                          ... I don t know how you get to amavisd-new from the above postfix error message. Although I suspect many people using postfix have come across something
                          Message 12 of 16 , Jul 3, 2008
                            On Thursday 03 July 2008 05:05:57 Gary V wrote:
                            >
                            > > 8CA46141702C 77984 Wed Jul 2 13:09:27 root
                            > > (delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:
                            > > Connection refused)
                            >
                            > So most likely amavisd-new has stopped or is otherwise not responding.
                            >
                            I don't know how you get to amavisd-new from the above postfix error message. Although I suspect many people using postfix have come across something similar before, and hence were able to help me identify the real source of the problem, or rather the place where the problem manifested itself.

                            > amavisd debug
                            >
                            Having identified amavisd as the culprit, via another route, and the many helpful suggestions on this postfix list, yes, this is clearly the next place to look.

                            > Amavisd-new does not use spamd, it loads the Mail::SpamAssassin Perl module
                            > directly. Unless you are scanning mail twice, you typically do not, and
                            > should not start up spamd.
                            >
                            Thanks for this tip.

                            > It cannot be determined what the cause of the amavisd-new failure is without
                            > seeing log entries or the result of debugging.
                            >
                            Correct - it turns out that it may actually be a memory problem unrelated (directly) to amavis or postfix, but to the system itself.

                            #> amavisd-new debug
                            Jul 3 06:58:50 blix.rfi.net /usr/sbin/amavisd-new[15341]: starting. /usr/sbin/amavisd-new at blix.rfi.net amavisd-new-2.4.2 (20060627), Unicode aware
                            Jul 3 06:58:50 blix.rfi.net /usr/sbin/amavisd-new[15341]: user=, EUID: 0 (0); group=, EGID: 0 0 (0 0); log_level=
                            Jul 3 06:58:50 blix.rfi.net /usr/sbin/amavisd-new[15341]: Perl version 5.008008
                            <snip>
                            Jul 3 06:58:58 blix.rfi.net /usr/sbin/amavisd-new[15341]: SpamControl: init_pre_fork done
                            Jul 3 06:58:58 blix.rfi.net /usr/sbin/amavisd-new[15341]: Net::Server: Beginning prefork (2 processes)
                            Jul 3 06:58:58 blix.rfi.net /usr/sbin/amavisd-new[15341]: Net::Server: Starting "2" children
                            Jul 3 06:58:58 blix.rfi.net /usr/sbin/amavisd-new[15341]: Net::Server: 2008/07/03-06:58:58 Bad fork [Cannot allocate memory]\n at line 159 in file /usr/share/perl5/Net/Server/PreForkSimple.pm
                            Jul 3 06:58:58 blix.rfi.net /usr/sbin/amavisd-new[15341]: Net::Server: 2008/07/03-06:58:58 Server closing!

                            And I'm including this here as a final footnote, so that other people may benefit from our pooled experience.

                            The problem is not postfix, but postfix (thankfully) gave us the original error message and a place to start looking for the actual problem.

                            The problem is not amavisd-new, but amavis identified the real problem in the end (see above).

                            > I suggest that the result of what you find in the log or the debugging
                            > session is directed to the amavis mailing list.
                            >
                            Even if this was an amavis problem in the end, which it was not, this is a bit like closing the stable door after the horse has bolted, but again, thanks for the tip.

                            ;-)

                            --
                            Richard Foley
                            Ciao - shorter than aufwiedersehen

                            http://www.rfi.net/
                          • Gary V
                            ... The reason for the lack of memory may be elusive, but you are not the first this has happened to: http://marc.info/?l=amavis-user&m=118907218708830 Looks
                            Message 13 of 16 , Jul 3, 2008
                              > #> amavisd-new debug
                              > Jul 3 06:58:50 blix.rfi.net /usr/sbin/amavisd-new[15341]: starting. /usr/sbin/amavisd-new at blix.rfi.net amavisd-new-2.4.2 (20060627), Unicode aware
                              > Jul 3 06:58:50 blix.rfi.net /usr/sbin/amavisd-new[15341]: user=, EUID: 0 (0); group=, EGID: 0 0 (0 0); log_level=
                              > Jul 3 06:58:50 blix.rfi.net /usr/sbin/amavisd-new[15341]: Perl version 5.008008
                              >
                              > Jul 3 06:58:58 blix.rfi.net /usr/sbin/amavisd-new[15341]: SpamControl: init_pre_fork done
                              > Jul 3 06:58:58 blix.rfi.net /usr/sbin/amavisd-new[15341]: Net::Server: Beginning prefork (2 processes)
                              > Jul 3 06:58:58 blix.rfi.net /usr/sbin/amavisd-new[15341]: Net::Server: Starting "2" children
                              > Jul 3 06:58:58 blix.rfi.net /usr/sbin/amavisd-new[15341]: Net::Server: 2008/07/03-06:58:58 Bad fork [Cannot allocate memory]\n at line 159 in file /usr/share/perl5/Net/Server/PreForkSimple.pm
                              > Jul 3 06:58:58 blix.rfi.net /usr/sbin/amavisd-new[15341]: Net::Server: 2008/07/03-06:58:58 Server closing!
                              >
                              > And I'm including this here as a final footnote, so that other people may benefit from our pooled experience.
                              >
                              > The problem is not postfix, but postfix (thankfully) gave us the original error message and a place to start looking for the actual problem.
                              >
                              > The problem is not amavisd-new, but amavis identified the real problem in the end (see above).
                              >

                              > Richard Foley
                              > Ciao - shorter than aufwiedersehen
                              >
                              > http://www.rfi.net/

                              The reason for the lack of memory may be elusive, but you are not the first this has happened to:

                              http://marc.info/?l=amavis-user&m=118907218708830

                              Looks like you are using Debian (or maybe Ubuntu).

                              To prevent spamd from starting up, in /etc/default/spamassassin set ENABLED=0 and then stop spamd
                              /etc/init.d/spamassassin stop
                              if you have not already done so.

                              Try running the 'top' command and use> to sort by descending memory size. What items are at the top of the list and what size are they? This may give some clue.

                              If you have added custom rules or non default plugins in spamassassin, try disabling them. If you are using a rule set (spamassassin .cf file) with the text 'blacklist' in the name, I recommend removing it.

                              Debian etch uses ClamAV 0.90.1 which does not work well with current virus definition sets. If you are using etch and if you are running ClamAV 0.90.x, add the Debian etch volatile source in /etc/apt/sources.list and reinstall ClamAV:

                              http://marc.info/?l=postfix-users&m=119852130019268

                              You might consider rebooting and then observe if amavisd-new starts up. Continue to monitor with 'top' and possibly amavisd-nanny.

                              Gary V
                              _________________________________________________________________
                              Don't get caught with egg on your face. Play chicktionary!
                              http://club.live.com/chicktionary.aspx?icid=chick_wlhmtextlink1_feb
                            • Richard Foley
                              ... I would have been surprised if I was. I did look around for various possible reasons/solutions and the postfix list gave me the hints I needed to identify
                              Message 14 of 16 , Jul 3, 2008
                                On Friday 04 July 2008 05:12:41 Gary V wrote:
                                >
                                > The reason for the lack of memory may be elusive, but you are not the first
                                > this has happened to:
                                >
                                > http://marc.info/?l=amavis-user&m=118907218708830
                                >
                                I would have been surprised if I was. I did look around for various possible
                                reasons/solutions and the postfix list gave me the hints I needed to identify
                                the issue.

                                > Try running the 'top' command and use> to sort by descending memory size.
                                > What items are at the top of the list and what size are they? This may give
                                > some clue.
                                >
                                Turns out it was the swap partition was not enabled(!), hence low memory,
                                hence amavisd-new failure, hence postfix delivery failure...

                                All fixed now, and thanks for your tips Gary, I'll take those on board too.

                                --
                                Richard Foley
                                Ciao - shorter than aufwiedersehen

                                http://www.rfi.net/
                              Your message has been successfully submitted and would be delivered to recipients shortly.