I'm trying to setup amavis. I can't connect from postfix on port 10025, 
configured as:

localhost:10025 inet   n       -       n       -       -       smtpd -vv
  -o content_filter=
  -o smtpd_delay_reject=no
  -o smtpd_client_restrictions=permit_mynetworks,reject
  -o smtpd_helo_restrictions=
  -o smtpd_sender_restrictions=
  -o smtpd_recipient_restrictions=permit_mynetworks,reject
  -o smtpd_data_restrictions=reject_unauth_pipelining
  -o smtpd_end_of_data_restrictions=
  -o smtpd_restriction_classes=
  -o mynetworks=127.0.0.0/8
  -o smtpd_error_sleep_time=0
  -o smtpd_soft_error_limit=1001
  -o smtpd_hard_error_limit=1000
  -o smtpd_client_connection_count_limit=0
  -o smtpd_client_connection_rate_limit=0
  -o
receive_override_options=no_unknown_recipient_checks,no_header_body_checks,no_address_mappings
  -o local_header_rewrite_clients=
  -o local_recipient_maps=
  -o relay_recipient_maps=

With verbose logging, I get:

2013-10-30T02:21:28.972205+00:00 moya postfix/smtpd[6728]: smtp_stream_setup: 
maxtime=300
enable_deadline=0
2013-10-30T02:21:28.972712+00:00 moya postfix/smtpd[6728]: >>> START Client host
RESTRICTIONS <<<
2013-10-30T02:21:28.973230+00:00 moya postfix/smtpd[6728]: generic_checks:
name=permit_mynetworks
2013-10-30T02:21:28.973721+00:00 moya postfix/smtpd[6728]: permit_mynetworks: 
localhost ::1
2013-10-30T02:21:28.974224+00:00 moya postfix/smtpd[6728]: match_hostname: 
localhost ~?
192.168.30.0/24
2013-10-30T02:21:28.974775+00:00 moya postfix/smtpd[6728]: match_hostaddr: ::1 
~?
192.168.30.0/24
2013-10-30T02:21:28.975213+00:00 moya postfix/smtpd[6728]: match_hostname: 
localhost ~?
192.168.31.2/32
2013-10-30T02:21:28.975656+00:00 moya postfix/smtpd[6728]: match_hostaddr: ::1 
~?
192.168.31.2/32
2013-10-30T02:21:28.976051+00:00 moya postfix/smtpd[6728]: match_hostname: 
localhost ~?
192.168.10.0/24
2013-10-30T02:21:28.976428+00:00 moya postfix/smtpd[6728]: match_hostaddr: ::1 
~?
192.168.10.0/24
2013-10-30T02:21:28.976900+00:00 moya postfix/smtpd[6728]: match_hostname: 
localhost ~?
172.16.0.0/16
2013-10-30T02:21:28.977244+00:00 moya postfix/smtpd[6728]: match_hostaddr: ::1 
~?
172.16.0.0/16
2013-10-30T02:21:28.977771+00:00 moya postfix/smtpd[6728]: match_hostname: 
localhost ~?
127.0.0.0/8
2013-10-30T02:21:28.978180+00:00 moya postfix/smtpd[6728]: match_hostaddr: ::1 
~? 127.0.0.0/8
2013-10-30T02:21:28.978520+00:00 moya postfix/smtpd[6728]: match_list_match: 
localhost: no
match
2013-10-30T02:21:28.978881+00:00 moya postfix/smtpd[6728]: match_list_match: 
::1: no match
2013-10-30T02:21:28.979233+00:00 moya postfix/smtpd[6728]: generic_checks:
name=permit_mynetworks status=0
2013-10-30T02:21:28.979594+00:00 moya postfix/smtpd[6728]: generic_checks: 
name=reject
2013-10-30T02:21:28.979965+00:00 moya postfix/smtpd[6728]: NOQUEUE: reject: 
CONNECT from
localhost[::1]: 454 4.7.1 <localhost[::1]>: Client host rejected: Access 
denied; proto=SMTP

Any idea why localhost is not matching?

Reply via email to