I use the spam snake and its great but I have 1 errors in my log file can you help me. is in de mail.info ----------------------------------------------------------- Code: Dec 17 17:47:43 srv1 MailScanner[5437]: Logging message 567327325F.86586 to SQL Dec 17 17:48:01 srv1 postfix/policy-spf[8183]: handler sender_policy_framework: is decisive. Dec 17 17:48:02 srv1 postfix/policy-spf[8183]: : Policy action=PREPEND Received-SPF: none (marktplaats.nl: No applicable sender policy available) receiver=srv1.sofblabla.nl; identity=mailfrom; envelope$ Dec 17 17:48:45 srv1 postfix/anvil[7901]: statistics: max connection rate 2/60s for (smtp:195.78.85.132) at Dec 17 17:40:58 Dec 17 17:48:45 srv1 postfix/anvil[7901]: statistics: max connection count 3 for (smtp:195.78.85.132) at Dec 17 17:42:15 Dec 17 17:48:45 srv1 postfix/anvil[7901]: statistics: max cache size 2 at Dec 17 17:39:36 Dec 17 17:48:57 srv1 postfix/smtpd[8014]: warning: problem talking to server private/policy: Connection timed out Dec 17 17:48:57 srv1 postfix/smtpd[8014]: NOQUEUE: reject: RCPT from mx12a.marktplaats.nl[195.78.85.132]: 451 4.3.5 Server configuration problem; from=<[email protected]> to=<[email protected]> proto=ESMT$ Dec 17 17:48:57 srv1 postfix/smtpd[8014]: disconnect from mx12a.marktplaats.nl[195.78.85.132] ------------------------------------------------ the mail from marktplaats take a long ride soms 2 or 3 days? can i change somthing to resolve my problem
i think its in de spf https://bugs.launchpad.net/ubuntu/+source/postfix-policyd-spf-perl/+bug/161133 i will try this first thanks
I try the link but it is also not working This is my master.cf Code: # # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master"). # # Do not forget to execute "postfix reload" after editing this file. # # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - - - - smtpd #submission inet n - - - - smtpd # -o smtpd_tls_security_level=encrypt # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING #smtps inet n - - - - smtpd # -o smtpd_tls_wrappermode=yes # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING #628 inet n - - - - qmqpd pickup fifo n - - 60 1 pickup -o content_filter= -o receive_override_options=no_header_body_checks cleanup unix n - - - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo n - - 300 1 oqmgr tlsmgr unix - - - 1000? 1 tlsmgr rewrite unix - - - - - trivial-rewrite bounce unix - - - - 0 bounce defer unix - - - - 0 bounce trace unix - - - - 0 bounce verify unix - - - - 1 verify flush unix n - - 1000? 0 flush proxymap unix - - n - - proxymap proxywrite unix - - n - 1 proxymap smtp unix - - - - - smtp # When relaying mail as backup MX, disable fallback_relay to avoid MX loops relay unix - - - - - smtp -o smtp_fallback_relay= # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - - - - showq error unix - - - - - error retry unix - - - - - error discard unix - - - - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - - - - lmtp anvil unix - - - - 1 anvil scache unix - - - - 1 scache # # ==================================================================== # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # # Many of the following services use the Postfix pipe(8) delivery # agent. See the pipe(8) man page for information about ${recipient} # and other message envelope options. # ==================================================================== # # maildrop. See the Postfix MAILDROP_README file for details. # Also specify in main.cf: maildrop_destination_recipient_limit=1 # maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient} # # See the Postfix UUCP_README file for configuration details. # uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) # # Other external delivery methods. # ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient scalemail-backend unix - n n - 2 pipe flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension} mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user} policy unix - n n - - spawn user=nobody argv=/usr/bin/perl /usr/lib/postfix/policyd-spf-perl and this is my main.cf Code: # See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #myorigin = /etc/mailname smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h readme_directory = no # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. myhostname = sr**.soft*antispam*.nl alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = soft*antispam*.nl mydestination = relayhost = mynetworks = 127.0.0.0/8, mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all message_size_limit = 10485760 local_transport = error:No local mail delivery local_recipient_maps = virtual_alias_maps = hash:/etc/postfix/virtual relay_recipient_maps = hash:/etc/postfix/relay_recipients transport_maps = hash:/etc/postfix/transport relay_domains = hash:/etc/postfix/relay_domains smtpd_helo_required = yes smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_access, reject_non_fqdn_sender, reject_unknown_sender_domain smtpd_recipient_restrictions = reject_non_fqdn_sender, reject_unknown_sender_domain, reject_non_fqdn_recipient, reject_unknown_recipient_domain, permit_mynetworks, reject_unauth_destination,check_policy_service unix:private/policy,check_policy_service inet:127.0.0.1:2525, reject_unauth_pipelining, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_rbl_client zen.spamhaus.org smtpd_data_restrictions = reject_unauth_pipelining header_checks = regexp:/etc/postfix/header_checks can you help me? The errors are only from marktplaats.nl this is my maillog a little Code: Dec 22 21:53:19 srv1 postfix/smtpd[6823]: warning: problem talking to server private/policy: Connection timed out Dec 22 21:53:19 srv1 postfix/smtpd[6823]: NOQUEUE: reject: RCPT from mx13a.marktplaats.nl[195.78.85.133]: 451 4.3.5 Server configuration problem; from=<[email protected]> to=<wilco@soft*nospam*.nl> proto=ESMTP helo=<mx13a.marktplaats.nl> Dec 22 21:53:19 srv1 postfix/smtpd[6823]: disconnect from mx13a.marktplaats.nl[195.78.85.133] Dec 22 21:53:21 srv1 postfix/smtpd[6978]: warning: problem talking to server private/policy: Connection timed out Dec 22 21:53:21 srv1 postfix/smtpd[6978]: NOQUEUE: reject: RCPT from mx12a.marktplaats.nl[195.78.85.132]: 451 4.3.5 Server configuration problem; from=<[email protected]> to=<wilco@soft*nospam*.nl> proto=ESMTP helo=<mx12a.marktplaats.nl> Dec 22 21:53:21 srv1 postfix/smtpd[6978]: disconnect from mx12a.marktplaats.nl[195.78.85.132] Dec 22 21:53:25 srv1 postfix/policy-spf[7578]: handler sender_policy_framework: is decisive. Dec 22 21:53:26 srv1 postfix/policy-spf[7578]: : Policy action=PREPEND Received-SPF: none (marktplaats.nl: No applicable sender policy available) receiver=srv1.softlinkfilter.nl; identity=mailfrom; envelope-from="[email protected]"; helo=mx17b.marktplaats.nl; client-ip=195.78.85.147 Dec 22 21:53:39 srv1 postfix/policy-spf[7591]: handler sender_policy_framework: is decisive. Dec 22 21:53:40 srv1 postfix/policy-spf[7591]: : Policy action=PREPEND Received-SPF: none (marktplaats.nl: No applicable sender policy available) receiver=srv1.softlinkfilter.nl; identity=mailfrom; envelope-from="[email protected]"; helo=mx13a.marktplaats.nl; client-ip=195.78.85.133 Dec 22 21:53:44 srv1 postfix/policy-spf[7592]: handler sender_policy_framework: is decisive. Dec 22 21:53:45 srv1 postfix/policy-spf[7592]: : Policy action=PREPEND Received-SPF: none (marktplaats.nl: No applicable sender policy available) receiver=srv1.softlinkfilter.nl; identity=mailfrom; envelope-from="[email protected]"; helo=mx12a.marktplaats.nl; client-ip=195.78.85.132 Dec 22 21:53:49 srv1 postfix/smtpd[7451]: connect from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:53:49 srv1 postfix/smtpd[7451]: lost connection after EHLO from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:53:49 srv1 postfix/smtpd[7451]: disconnect from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:53:55 srv1 postfix/smtpd[6981]: warning: problem talking to server private/policy: Connection timed out Dec 22 21:54:16 srv1 postfix/policy-spf[7610]: handler sender_policy_framework: is decisive. Dec 22 21:54:16 srv1 postfix/policy-spf[7610]: : Policy action=PREPEND Received-SPF: none (marktplaats.nl: No applicable sender policy available) receiver=srv1.softlinkfilter.nl; identity=mailfrom; envelope-from="[email protected]"; helo=mx12a.marktplaats.nl; client-ip=195.78.85.132 Dec 22 21:54:19 srv1 postfix/smtpd[6823]: connect from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:54:19 srv1 postfix/smtpd[6823]: lost connection after EHLO from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:54:19 srv1 postfix/smtpd[6823]: disconnect from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:54:44 srv1 postfix/smtpd[6978]: connect from 20150075229.user.veloxzone.com.br[201.50.75.229] Dec 22 21:54:46 srv1 postfix/policy-spf[7688]: handler sender_policy_framework: is decisive. Dec 22 21:54:46 srv1 postfix/policy-spf[7688]: : Policy action=PREPEND Received-SPF: none (edprisma.com: No applicable sender policy available) receiver=srv1.softlinkfilter.nl; identity=mailfrom; envelope-from="[email protected]"; helo=189104218247.user.veloxzone.com.br; client-ip=201.50.75.229 Dec 22 21:54:46 srv1 gld: Greylist activated for recipient=<gijs@soft*nospam*.nl> sender=<[email protected]> ip=<201.50.75.229> Dec 22 21:54:46 srv1 postfix/smtpd[6978]: NOQUEUE: reject: RCPT from 20150075229.user.veloxzone.com.br[201.50.75.229]: 554 5.7.1 Service unavailable; Client host [201.50.75.229] blocked using zen.spamhaus.org; http://www.spamhaus.org/query/bl?ip=201.50.75.229; from=<[email protected]> to=<gijs@soft*nospam*.nl> proto=ESMTP helo=<189104218247.user.veloxzone.com.br> Dec 22 21:54:46 srv1 postfix/smtpd[6974]: warning: problem talking to server private/policy: Connection timed out Dec 22 21:54:46 srv1 postfix/smtpd[6974]: NOQUEUE: reject: RCPT from mx17b.marktplaats.nl[195.78.85.147]: 451 4.3.5 Server configuration problem; from=<[email protected]> to=<wilco@soft*nospam*.nl> proto=ESMTP helo=<mx17b.marktplaats.nl> Dec 22 21:54:46 srv1 postfix/smtpd[6974]: disconnect from mx17b.marktplaats.nl[195.78.85.147] Dec 22 21:54:46 srv1 postfix/smtpd[6978]: lost connection after DATA (0 bytes) from 20150075229.user.veloxzone.com.br[201.50.75.229] Dec 22 21:54:46 srv1 postfix/smtpd[6978]: disconnect from 20150075229.user.veloxzone.com.br[201.50.75.229] Dec 22 21:54:49 srv1 postfix/smtpd[7451]: connect from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:54:49 srv1 postfix/smtpd[7451]: lost connection after EHLO from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:54:49 srv1 postfix/smtpd[7451]: disconnect from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:55:06 srv1 postfix/policy-spf[7644]: handler sender_policy_framework: is decisive. Dec 22 21:55:07 srv1 postfix/policy-spf[7644]: : Policy action=PREPEND Received-SPF: none (marktplaats.nl: No applicable sender policy available) receiver=srv1.softlinkfilter.nl; identity=mailfrom; envelope-from="[email protected]"; helo=mx17b.marktplaats.nl; client-ip=195.78.85.147 Dec 22 21:55:19 srv1 postfix/smtpd[6823]: connect from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:55:19 srv1 postfix/smtpd[6823]: lost connection after EHLO from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:55:19 srv1 postfix/smtpd[6823]: disconnect from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:55:36 srv1 postfix/smtpd[6981]: warning: problem talking to server private/policy: Connection timed out Dec 22 21:55:36 srv1 postfix/smtpd[6981]: NOQUEUE: reject: RCPT from mx12a.marktplaats.nl[195.78.85.132]: 451 4.3.5 Server configuration problem; from=<[email protected]> to=<wilco@soft*nospam*.nl> proto=ESMTP helo=<mx12a.marktplaats.nl> Dec 22 21:55:36 srv1 postfix/smtpd[6981]: disconnect from mx12a.marktplaats.nl[195.78.85.132] Dec 22 21:55:36 srv1 postfix/smtpd[6974]: connect from mx12a.marktplaats.nl[195.78.85.132] Dec 22 21:55:49 srv1 postfix/smtpd[6978]: connect from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:55:49 srv1 postfix/smtpd[6978]: lost connection after EHLO from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:55:49 srv1 postfix/smtpd[6978]: disconnect from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:56:00 srv1 postfix/policy-spf[7657]: handler sender_policy_framework: is decisive. Dec 22 21:56:00 srv1 postfix/policy-spf[7657]: : Policy action=PREPEND Received-SPF: none (marktplaats.nl: No applicable sender policy available) receiver=srv1.softlinkfilter.nl; identity=mailfrom; envelope-from="[email protected]"; helo=mx12a.marktplaats.nl; client-ip=195.78.85.132 Dec 22 21:56:19 srv1 postfix/smtpd[7451]: connect from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:56:19 srv1 postfix/smtpd[7451]: lost connection after EHLO from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:56:19 srv1 postfix/smtpd[7451]: disconnect from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:56:49 srv1 postfix/smtpd[6823]: connect from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:56:49 srv1 postfix/smtpd[6823]: lost connection after EHLO from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:56:49 srv1 postfix/smtpd[6823]: disconnect from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:57:16 srv1 postfix/smtpd[6974]: warning: problem talking to server private/policy: Connection timed out Dec 22 21:57:19 srv1 postfix/smtpd[6978]: connect from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:57:19 srv1 postfix/smtpd[6978]: lost connection after EHLO from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:57:19 srv1 postfix/smtpd[6978]: disconnect from dsl-087-195-051-213.solcon.nl[87.195.51.213] Dec 22 21:57:37 srv1 postfix/policy-spf[7708]: handler sender_policy_framework: is decisive.
So the only domain that isn't workin is marktplaats.nl? Do the SPF records for your other domains look similar like the one for marktplaats.nl? Code: ;; ANSWER SECTION: marktplaats.nl. 28069 IN TXT "v=spf2.0/pra ip4:213.244.166.0/24 ip4:195.78.84.0/23 ip4:216.113.175.152/32 ip4:216.113.175.153/32 ip4:216.33.244.6/32 ip4:216.33.244.7/32 ip4:194.88.230.32/27 ip4:216.136.162.64/26 ip4:63.240.103.0/26 ip4:81.110.142.47/32 ip4:213.105.192.128/26 ~all" marktplaats.nl. 28069 IN TXT "v=spf1 ip4:213.244.166.0/24 ip4:195.78.84.0/23 ip4:216.113.175.152/32 ip4:216.113.175.153/32 ip4:216.33.244.6/32 ip4:216.33.244.7/32 ip4:194.88.230.32/27 ip4:216.136.162.64/26 ip4:63.240.103.0/26 ip4:81.110.142.47/32 ip4:213.105.192.128/26 ~all"
yes its only with te domain marktplaats.nl this is a shopping place. (not my server) can i accept this domain or a way the now? thank Falko for helping.
is this what you want? Merry christmas Code: root@srv1:~# dig txt softlink.nl ; <<>> DiG 9.4.2-P1 <<>> txt softlink.nl ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45557 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;softlink.nl. IN TXT ;; AUTHORITY SECTION: softlink.nl. 1530 IN SOA ns1.anony.nl. hostmaster.anony.nl. 2008101301 14400 3600 604800 86400 ;; Query time: 0 msec ;; SERVER: 212.45.32.3#53(212.45.32.3) ;; WHEN: Thu Dec 25 11:40:31 2008 ;; MSG SIZE rcvd: 86 root@srv1:~# dig txt softlinkfilter.nl ; <<>> DiG 9.4.2-P1 <<>> txt softlinkfilter.nl ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32277 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;softlinkfilter.nl. IN TXT ;; AUTHORITY SECTION: softlinkfilter.nl. 3600 IN SOA ns1.softlink.nl. hostmaster.softlink.nl. 2008121509 14400 3600 604800 86400 ;; Query time: 7 msec ;; SERVER: 212.45.32.3#53(212.45.32.3) ;; WHEN: Thu Dec 25 11:40:38 2008 ;; MSG SIZE rcvd: 95 root@srv1:~# dig txt softlinks.nl ; <<>> DiG 9.4.2-P1 <<>> txt softlinks.nl ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53465 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;softlinks.nl. IN TXT ;; AUTHORITY SECTION: softlinks.nl. 3600 IN SOA ns1.softlink.nl. hostmaster.softlink.nl. 2008101302 14400 3600 604800 86400 ;; Query time: 5 msec ;; SERVER: 212.45.32.3#53(212.45.32.3) ;; WHEN: Thu Dec 25 11:40:44 2008 ;; MSG SIZE rcvd: 90
Yes. Your other domains don't have any SPF records, so for testing purposes, I'd delete the SPF records for marktplaats.nl and see what happens.
Falko, Marktplaats is not on my server. Marktplaats is from somebody els!!! the mail is comming from info@marktplaats*.nl to my mail. but that is not working. can i disable the check or put marktplaats to a white list? Thanks
Ah, ok. Are the MX records for your domain correct? You can check that with Code: dig mx yourdomain.com
Falko, yes the are good. The email is comming like this: (Spamfilter Only) internet >>>>>> spamfilter >>>>> mailserver ans only the domein marktplaats is not working on this filter?
OOOOOO Falko not nice. i was playing around with de main.cf i deleted the entry "check_policy_service unixrivate/policy " and marktplaats is working. (it is in the spf check!!!) can i do somthing about it? or must a leave it like this? can i not whitelist it? that it not going in the spf check.