Author Topic: (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)  (Read 2849 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
(connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
« on: February 14, 2016, 05:36:16 PM »
I Have Fresh Install CWP on maillog have error like this :
Quote
(connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

my postconf -n :
Quote
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
anvil_rate_time_unit = 3600s
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
delay_warning_time = 4
disable_vrfy_command = yes
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailbox_size_limit = 2048000000
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 204800000
milter_default_action = accept
milter_protocol = 2
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = mahamerunetwork.com
myhostname = kenari.mahamerunetwork.com
mynetworks = $config_directory/mynetworks
newaliases_path = /usr/bin/newaliases.postfix
non_smtpd_milters = $smtpd_milters
queue_directory = /var/spool/postfix
recipient_delimiter = +
relay_domains = proxy:mysql:/etc/postfix/mysql-relay_domains_maps.cf
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
smtp_tls_session_cache_database = btree:$data_directory/smtp_tls_session_cache
smtp_use_tls = yes
smtpd_client_message_rate_limit = 500
smtpd_client_restrictions = reject_unknown_client
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_helo_restrictions =
smtpd_milters = inet:127.0.0.1:8891
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_rbl_client dnsbl.sorbs.net,check_policy_service unix:private/spfpolicy
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions =
smtpd_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
smtpd_tls_cert_file = /etc/pki/tls/certs/kenari.mahamerunetwork.com.crt
smtpd_tls_key_file = /etc/pki/tls/private/kenari.mahamerunetwork.com.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
soft_bounce = yes
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_alias_maps.cf, regexp:/etc/postfix/virtual_regexp
virtual_gid_maps = static:12
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
virtual_minimum_uid = 101
virtual_transport = dovecot
virtual_uid_maps = static:101

netstat -tln :
Quote
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State     
tcp        0      0 0.0.0.0:4190                0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:993                 0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:995                 0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:10025             0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:587                 0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:110                 0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:3310              0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:143                 0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:465                 0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN     
tcp        0      0 182.253.186.212:53          0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:53                0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:953               0.0.0.0:*                   LISTEN     
tcp        0      0 127.0.0.1:8891              0.0.0.0:*                   LISTEN     
tcp        0      0 :::2030                     :::*                        LISTEN     
tcp        0      0 :::2031                     :::*                        LISTEN     
tcp        0      0 :::80                       :::*                        LISTEN     
tcp        0      0 :::21                       :::*                        LISTEN     
tcp        0      0 ::1:53                      :::*                        LISTEN     
tcp        0      0 :::22                       :::*                        LISTEN     
tcp        0      0 ::1:953                     :::*                        LISTEN     
any idea for this ? Thanks for helping

Offline
***
Re: (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
« Reply #1 on: February 15, 2016, 03:56:13 AM »
Try this, work for me

edit /etc/postfix/main.cf
and comment out these line

Code: [Select]
contentfilter = amavis:[127.0.0.1]:10024

Offline
*
Re: (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
« Reply #2 on: February 15, 2016, 08:52:24 AM »
yes work form me to, but the amavis not start.

Offline
*****
Re: (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
« Reply #3 on: February 16, 2016, 08:11:14 AM »
Hello.

Just check if amavisd-new installed:
Code: [Select]
yum --enablerepo=epel install amavisd-newand try to restart it
Code: [Select]
service amavisd restart

Offline
*
Re: (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
« Reply #4 on: February 16, 2016, 01:54:13 PM »
Hello.

Just check if amavisd-new installed:
Code: [Select]
yum --enablerepo=epel install amavisd-newand try to restart it
Code: [Select]
service amavisd restart
thank you it work and now amavis running normally

Offline
*****
Re: (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
« Reply #5 on: February 19, 2016, 05:54:58 AM »
You're welcome.