Hello. For incomming messages I found in the logs: spf: lookup failed: addr is not a string at /usr/share/perl5/vendor_perl/IO/Socket/IP.pm line 662
Spamd log: Sep 7 10:24:41 kukuniek spamd[11515]: spamd: connection from localhost [127.0.0.1]:44854 to port 783, fd 5 Sep 7 10:24:41 kukuniek spamd[11515]: spamd: setuid to spamd succeeded Sep 7 10:24:41 kukuniek spamd[11515]: spamd: processing message < cahamocqaxyxcxmp9tmpw6uude6eygxusmfzwc5by8swlvc0...@mail.gmail.com> for spamd:1000 Sep 7 10:24:41 kukuniek spamd[11515]: spf: lookup failed: addr is not a string at /usr/share/perl5/vendor_perl/IO/Socket/IP.pm line 662. Sep 7 10:24:45 kukuniek postfix/smtpd[13149]: disconnect from mail-lb0-f173.google.com[209.85.217.173] Sep 7 10:24:46 kukuniek spamd[11515]: spamd: clean message (1.5/5.0) for spamd:1000 in 5.2 seconds, 2088 bytes. Sep 7 10:24:46 kukuniek spamd[11515]: spamd: result: . 1 - DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,HTML_MESSAGE,SPF_PASS scantime=5.2,size=2088,user=spamd,uid=1000,required_score=5.0,rhost=localhost,raddr=127.0.0.1,rport=44854,mid=< cahamocqaxyxcxmp9tmpw6uude6eygxusmfzwc5by8swlvc0...@mail.gmail.com>,autolearn=no autolearn_force=no How to fix this?? Thanks in advance. Rgds Czarek.
1 # 2 # Postfix master process configuration file. For details on the format 3 # of the file, see the Postfix master(5) manual page. 4 # 5 # ***** Unused items removed ***** 6 # ========================================================================== 7 # service type private unpriv chroot wakeup maxproc command + args 8 # (yes) (yes) (yes) (never) (100) 9 # ========================================================================== 10 smtp inet n - n - - smtpd -o content_filter=spamassassin 11 submission inet n - n - - smtpd 12 -o smtpd_sasl_auth_enable=yes 13 -o content_filter=smtp-amavis:127.0.0.1:10024 14 -o receive_override_options=no_address_mappings 15 pickup fifo n - n 60 1 pickup 16 -o content_filter= 17 -o receive_override_options=no_header_body_checks 18 cleanup unix n - n - 0 cleanup 19 qmgr fifo n - n 300 1 qmgr 20 #qmgr fifo n - n 300 1 oqmgr 21 tlsmgr unix - - n 1000? 1 tlsmgr 22 rewrite unix - - n - - trivial-rewrite 23 bounce unix - - n - 0 bounce 24 defer unix - - n - 0 bounce 25 trace unix - - n - 0 bounce 26 verify unix - - n - 1 verify 27 flush unix n - n 1000? 0 flush 28 proxymap unix - - n - - proxymap 29 smtp unix - - n - - smtp 30 # When relaying mail as backup MX, disable fallback_relay to avoid MX loops 31 relay unix - - n - - smtp 32 -o fallback_relay= 33 # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 34 showq unix n - n - - showq 35 error unix - - n - - error 36 discard unix - - n - - discard 37 local unix - n n - - local 38 virtual unix - n n - - virtual 39 lmtp unix - - n - - lmtp 40 anvil unix - - n - 1 anvil 41 scache unix - - n - 1 scache 42 # 43 # ==================================================================== 44 # Interfaces to non-Postfix software. Be sure to examine the manual 45 # pages of the non-Postfix software to find out what options it wants. 46 # ==================================================================== 47 maildrop unix - n n - - pipe 48 flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} 49 uucp unix - n n - - pipe 50 flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) 51 ifmail unix - n n - - pipe 52 flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) 53 bsmtp unix - n n - - pipe 54 flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient 55 # 56 # spam/virus section 57 # 58 smtp-amavis unix - - y - 2 smtp 59 -o smtp_data_done_timeout=1200 60 -o disable_dns_lookups=yes 61 -o smtp_send_xforward_command=yes 62 127.0.0.1:10025 inet n - y - - smtpd 63 -o content_filter= 64 -o smtpd_helo_restrictions= 65 -o smtpd_sender_restrictions= 66 -o smtpd_recipient_restrictions=permit_mynetworks,reject 67 -o mynetworks=127.0.0.0/8 68 -o smtpd_error_sleep_time=0 69 -o smtpd_soft_error_limit=1001 70 -o smtpd_hard_error_limit=1000 71 -o receive_override_options=no_header_body_checks 72 -o smtpd_bind_address=127.0.0.1 73 -o smtpd_helo_required=no 74 -o smtpd_client_restrictions= 75 -o smtpd_restriction_classes= 76 -o disable_vrfy_command=no 77 -o strict_rfc821_envelopes=yes 78 # 79 # Dovecot LDA 80 dovecot unix - n n - - pipe 81 flags=DRhu user=vmail:mail argv=/usr/libexec/dovecot/deliver -d ${recipient} 82 # 83 # Vacation mail 84 vacation unix - n n - - pipe 85 flags=Rq user=vacation argv=/var/spool/vacation/vacation.pl -f ${sender} -- ${recipient} 86 policyd-spf unix - n n - 0 spawn 87 user=nobody argv=/usr/bin/policyd-spf /etc/python-policyd-spf/policyd-spf.conf 88 spamassassin unix - n n - - pipe flags=R user=spamd argv=/usr/bin/spamc -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
1 2 #Postfix config file 3 4 # uncomment for debugging if needed 5 #soft_bounce=yes 6 7 # postfix main 8 mail_owner = postfix 9 setgid_group = postdrop 10 delay_warning_time = 4 11 12 # postfix paths 13 html_directory = no 14 command_directory = /usr/sbin 15 daemon_directory = /usr/libexec/postfix 16 queue_directory = /var/spool/postfix 17 sendmail_path = /usr/sbin/sendmail.postfix 18 newaliases_path = /usr/bin/newaliases.postfix 19 mailq_path = /usr/bin/mailq.postfix 20 manpage_directory = /usr/share/man 21 22 # network settings 23 inet_interfaces = all 24 mydomain = 1cdeli.com.cn 25 myhostname = kukuniek.1cdeli.com.cn 26 mynetworks = $config_directory/mynetworks 27 mydestination = $myhostname, localhost.$mydomain, localhost, 28 relay_domains = proxy:mysql:/etc/postfix/mysql-relay_domains_maps.cf 29 30 # mail delivery 31 recipient_delimiter = + 32 33 # mappings 34 alias_maps = hash:/etc/aliases 35 alias_database = hash:/etc/aliases 36 transport_maps = hash:/etc/postfix/transport 37 #local_recipient_maps = 38 39 # virtual setup 40 virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_alias_maps.cf, 41 regexp:/etc/postfix/virtual_regexp 42 virtual_mailbox_base = /home/vmail 43 virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains_maps.cf 44 virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf 45 virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf 46 virtual_minimum_uid = 507 47 virtual_uid_maps = static:507 48 virtual_gid_maps = static:12 49 virtual_transport = dovecot 50 dovecot_destination_recipient_limit = 1 51 52 # debugging 53 debug_peer_level = 2 54 debugger_command = 55 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin 56 xxgdb $daemon_directory/$process_name $process_id & sleep 5 57 58 # authentication 59 smtpd_sasl_auth_enable = yes 60 smtpd_sasl_security_options = noanonymous 61 smtpd_sasl_local_domain = $myhostname 62 broken_sasl_auth_clients = yes 63 smtpd_sasl_type = dovecot 64 smtpd_sasl_path = private/auth 65 66 # tls config 67 smtp_use_tls = yes 68 smtpd_use_tls = yes 69 smtpd_tls_security_level = may 70 smtpd_tls_loglevel = 1 71 smtpd_tls_received_header = yes 72 smtpd_tls_session_cache_timeout = 3600s 73 tls_random_source = dev:/dev/urandom 74 smtp_tls_session_cache_database = btree:$data_directory/smtp_tls_session_cache 75 # Change mail.example.com.* to your host name 76 smtpd_tls_key_file = /etc/pki/tls/private/kukuniek.1cdeli.com.cn.key 77 smtpd_tls_cert_file = /etc/pki/tls/certs/kukuniek.1cdeli.com.cn.crt 78 smtpd_tls_CAfile = /etc/pki/tls/root.crt 79 smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem 80 smtpd_tls_key_file = /etc/ssl/private/postfix.pem 81 smtpd_tls_CAfile = /etc/ssl/certs/ca-bundle.crt 82 83 # rules restrictions 84 smtpd_client_restrictions = 85 smtpd_helo_restrictions = 86 smtpd_sender_restrictions = 87 smtpd_recipient_restrictions = 88 permit_mynetworks, 89 permit_inet_interfaces, 90 permit_sasl_authenticated, 91 reject_unauth_pipelining, 92 reject_invalid_hostname, 93 reject_non_fqdn_hostname, 94 reject_non_fqdn_sender, 95 reject_non_fqdn_recipient, 96 reject_unknown_recipient_domain, 97 reject_unauth_destination, 98 check_client_access hash:/etc/postfix/rbl_override_whitelist, 99 check_policy_service unix:private/policyd-spf, 100 # uncomment for realtime black list checks, 101 reject_rbl_client zen.spamhaus.org, 102 # reject_rbl_client multi.uribl.com, 103 reject_rbl_client dsn.rfc-ignorant.org, 104 reject_rbl_client dul.dnsbl.sorbs.net, 105 # reject_rbl_client list.dsbl.org, 106 # reject_rbl_client sbl-xbl.spamhaus.org, 107 reject_rbl_client bl.spamcop.net, 108 # reject_rbl_client dnsbl.sorbs.net, 109 # reject_rbl_client cbl.abuseat.org, 110 # reject_rbl_client ix.dnsbl.manitu.net, 111 reject_rbl_client combined.rbl.msrbl.net, 112 reject_rbl_client rabl.nuclearelephant.com, 113 permit 114 115 smtpd_helo_required = yes 116 unknown_local_recipient_reject_code = 550 117 disable_vrfy_command = yes 118 smtpd_data_restrictions = reject_unauth_pipelining 119 120 # Other options 121 #email_size_limit ~2000Meg 122 #message_size_limit = 204800 123 #content_filter = amavisfeed:[127.0.0.1]:10024 124 125 #DKIM 126 #milter_default_action = accept 127 #milter_protocol = 6 128 #smtpd_milters = , inet:127.0.0.1:8891 129 #non_smtpd_milters = $smtpd_milters 130