Postfix unable to pass messages to amavis ( Can't connect to INET4 socket 127.0.0.1)

Mike Godshall via amavis-users amavis-users at amavis.org
Mon May 19 07:56:30 CEST 2014


Thank you again for the telnet tip on 10025.  It was a firewall issue.

Mike

On 05/16/2014 12:00 AM, via amavis-users wrote:
>   This is a snap shot of the error in the log:
>
>   May 16 00:48:40 ubuntu12 amavis[19308]: starting.  /usr/sbin/amavisd-new
>   at thegodshalls.com amavisd-new-2.6.5 (20110407), Unicode aware,
>   LANG="en_US.UTF-8"
>   May 16 00:48:40 ubuntu12 amavis[19308]: Perl version
>   5.014002
>   May 16 00:48:40 ubuntu12 amavis[19315]: Net::Server: Group Not Defined.
>   Defaulting to EGID '117 117'
>   May 16 00:48:40 ubuntu12 amavis[19315]: Net::Server: User Not Defined.
>   Defaulting to EUID '110'
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Amavis::Conf        2.208
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Archive::Zip        1.30
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module BerkeleyDB          0.49
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Compress::Zlib      2.033
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Convert::TNEF       0.17
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Convert::UUlib      1.4
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Crypt::OpenSSL::RSA 0.27
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module DB_File             1.821
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Digest::MD5         2.51
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Digest::SHA         5.61
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module IO::Socket::INET6   2.69
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module MIME::Entity        5.502
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module MIME::Parser        5.502
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module MIME::Tools         5.502
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Mail::DKIM::Signer  0.39
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Mail::DKIM::Verifier 0.39
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Mail::Header        2.08
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Mail::Internet      2.08
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Mail::SPF           v2.008
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Mail::SpamAssassin
>   3.003002
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Net::DNS            0.66
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Net::Server         0.99
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module NetAddr::IP         4.058
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Razor2::Client::Version
>   2.84
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Socket6             0.23
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Time::HiRes
>   1.972101
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module URI                 1.59
>   May 16 00:48:40 ubuntu12 amavis[19315]: Module Unix::Syslog        1.1
>   May 16 00:48:40 ubuntu12 amavis[19315]: Amavis::DB code      loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: Amavis::Cache code   loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: SQL base code        NOT loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: SQL::Log code        NOT loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: SQL::Quarantine      NOT loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: Lookup::SQL code     NOT loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: Lookup::LDAP code    NOT loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: AM.PDP-in proto code loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: SMTP-in proto code   loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: Courier proto code   NOT loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: SMTP-out proto code  loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: Pipe-out proto code  NOT loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: BSMTP-out proto code NOT loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: Local-out proto code loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: OS_Fingerprint code  NOT loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: ANTI-VIRUS code      loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: ANTI-SPAM code       loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: ANTI-SPAM-EXT code   NOT loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: ANTI-SPAM-C code     NOT loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: ANTI-SPAM-SA code    loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: Unpackers code       loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: DKIM code            loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: Tools code           NOT loaded
>   May 16 00:48:40 ubuntu12 amavis[19315]: Found $file            at
>   /usr/bin/file
>   May 16 00:48:40 ubuntu12 amavis[19315]: No $altermime,         not using
>   it
>   May 16 00:48:40 ubuntu12 amavis[19315]: Internal decoder for .mail
>   May 16 00:48:40 ubuntu12 amavis[19315]: No decoder for       .F
>   May 16 00:48:40 ubuntu12 amavis[19315]: Found decoder for    .Z    at
>   /bin/uncompress
>   May 16 00:48:40 ubuntu12 amavis[19315]: Internal decoder for .gz
>   May 16 00:48:40 ubuntu12 amavis[19315]: Found decoder for    .bz2  at
>   /bin/bzip2   -d
>   May 16 00:48:40 ubuntu12 amavis[19315]: No decoder for       .lzo  tried:
>   lzop -  d
>   May 16 00:48:40 ubuntu12 amavis[19315]: No decoder for       .rpm  tried:
>   rpm2cp  io.pl, rpm2cpio
>   May 16 00:48:40 ubuntu12 amavis[19315]: Found decoder for    .cpio at
>   /bin/pax
>   May 16 00:48:40 ubuntu12 amavis[19315]: Found decoder for    .tar  at
>   /bin/pax
>   May 16 00:48:40 ubuntu12 amavis[19315]: Found decoder for    .deb  at
>   /usr/bin/a  r
>   May 16 00:48:40 ubuntu12 amavis[19315]: Internal decoder for .zip
>   May 16 00:48:40 ubuntu12 amavis[19315]: No decoder for       .7z   tried:
>   7zr, 7  za, 7z
>   May 16 00:48:40 ubuntu12 amavis[19315]: No decoder for       .rar  tried:
>   unrar-  free
>   May 16 00:48:40 ubuntu12 amavis[19315]: Found decoder for    .arj  at
>   /usr/bin/a  rj
>   May 16 00:48:40 ubuntu12 amavis[19315]: Found decoder for    .arc  at
>   /usr/bin/n  omarch
>   May 16 00:48:40 ubuntu12 amavis[19315]: Found decoder for    .zoo  at
>   /usr/bin/z  oo
>   May 16 00:48:40 ubuntu12 amavis[19315]: No decoder for       .lha
>   May 16 00:48:40 ubuntu12 amavis[19315]: No decoder for       .doc  tried:
>   ripole
>   May 16 00:48:40 ubuntu12 amavis[19315]: Found decoder for    .cab  at
>   /usr/bin/c  abextract
>   May 16 00:48:40 ubuntu12 amavis[19315]: No decoder for       .tnef
>   May 16 00:48:40 ubuntu12 amavis[19315]: Internal decoder for .tnef
>   May 16 00:48:40 ubuntu12 amavis[19315]: Found decoder for    .exe  at
>   /usr/bin/a  rj
>   May 16 00:48:40 ubuntu12 amavis[19315]: Using primary internal av scanner
>   code for ClamAV-clamd
>   May 16 00:48:40 ubuntu12 amavis[19315]: Found secondary av scanner
>   ClamAV-clamscan at /usr/bin/clamscan
>   May 16 00:48:40 ubuntu12 amavis[19315]: Creating db in
>   /var/lib/amavis/db/; BerkeleyDB 0.49, libdb 5.1
>   May 16 00:49:09 ubuntu12 postfix/smtpd[19287]: connect from
>   cx394-n02.800onemail.com[64.74.243.135]
>   May 16 00:49:09 ubuntu12 postfix/smtpd[19287]: Anonymous TLS connection
>   established from cx394-n02.800onemail.com[64.74.243.135]: TLSv1 with
>   cipher DHE-RSA-AES256-SHA (256/256 bits)
>   May 16 00:49:09 ubuntu12 postfix/smtpd[19287]: C7C8D60BA1:
>   client=cx394-n02.800onemail.com[64.74.243.135]
>   May 16 00:49:09 ubuntu12 postfix/cleanup[19292]: C7C8D60BA1:
>   message-id=<13137695.117227.1400215812170.JavaMail.root at ex493.exchserver.com>
>   May 16 00:49:09 ubuntu12 postfix/qmgr[19277]: C7C8D60BA1: from=<from email
>   address>, size=12980, nrcpt=1 (queue active)
>   May 16 00:49:09 ubuntu12 postfix/smtpd[19287]: disconnect from
>   cx394-n02.800onemail.com[64.74.243.135]
>   May 16 00:50:14 ubuntu12 amavis[19317]: (19317-01) (!)FWD via SMTP: <from
>   email address> -> <to email address>, 450 4.4.1 Can't connect to   INET4
>   socket 127.0.0.1: Connection timed out, MTA([127.0.0.1]:10025), id=19317-0
>    1
>   May 16 00:50:14 ubuntu12 amavis[19317]: (19317-01) Blocked MTA-BLOCKED,
>   [64.74.243.135] [64.74.243.135] <from email address> -> <to email
>   address>, Message-ID:
>   <13137695.117227.1400215812170.JavaMail.root at ex493.exchserv  er.com>,
>   mail_id: sF1TuSOHruE7, Hits: 0.01, size: 12979, dkim_id=@800onemail.com  ,
>   64833 ms
>   May 16 00:50:14 ubuntu12 postfix/smtp[19293]: C7C8D60BA1: to=< to email
>   address>, relay=127.0.0.1[127.0.0.1]:10024, delay=65,
>   delays=0.13/0/0.01/65, dsn=4.4  .1, status=deferred (host
>   127.0.0.1[127.0.0.1] said: 450 4.4.1 id=19317-01 - Temporary MTA failure
>   on relaying, Can't connect to INET4 socket 127.0.0.1: Connection timed
>   out, MTA([127.0.0.1]:10025), id=19317-01 (in reply to end of DATA comm
>   and))
>
>   Mike
>
>>> On 5/15/2014 5:46 PM, via amavis-users wrote:
>>>> I have been trying to get postfix to work with amavis but have been
>>>> unable. No matter what I have tried I can't get past the following
>>>> error:
>>>> [snip] Can't connect to INET4 socket 127.0.0.1
>>>>
>>>> I can successfully run telnet 127.0.0.1 10024 and amavis answers. I
>>>> have
>>>> been trying to have amavis listen on 127.0.1.1 instead thinking that
>>>> might
>>>> be the problem since the default localhost address on the machine is
>>>> 127.0.0.1.
>>>>
>>>> Nothing else in the logs to indicate a problem.
>>>>
>>> So what *is* in the logs?  Posting random snips doesn't help much.
>>>
>>>
>>>> I initially installed using the directions here:
>>>> help.ubuntu.com/community/PostfixAmavisNew
>>> Showing your actual config rather than "sort of like this random web
>>> page" would be more helpful.
>>>
>>>> Does anyone know how I can further troubleshoot this?
>>>>
>>>> postconf -n follows:
>>> What you posted is unreadable due to being all jumbled together.
>>> And it doesn't show the master.cf modifications you made for amavis,
>>> nor the changes you made to amavis config files.
>>>
>>> Troubleshooting hints:
>>> - make sure you can telnet to the amavis listener at 127.0.0.1:10024
>>> - make sure you can telnet to the postfix reinjection port at
>>> 127.0.0.1:10025
>>> - make sure your config matches what you intend, especially IP:port
>>> settings.
>>> - check the logs for clues about what's wrong.
>>> - disable SELINUX or other security software
>>> -  NOTE: verbose logs are *not* required, and will hide errors in a
>>> flood of irrelevant data.
>>>
>>> There are a lot of moving parts, but it's really not that
>>> complicated. Check each part in turn.
>>>
>>> If you need to ask for more help, share your setup and full unedited
>>> NON-VERBOSE log messages.
>>>
>>>
>>>
>>>    -- Noel Jones
>>>
>



More information about the amavis-users mailing list