Skip to content

Commit

Permalink
strip
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Sep 13, 2018
1 parent dd35a33 commit d23a148
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion findspam.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def keyword_email(s, site): # a keyword and an email in the same post
r"career|employment|candidate|loan|lover|husband|wife|marriage|illuminati|brotherhood|"
r"(join|contact) (me|us|him)|reach (us|him)|spell(caster)?|doctor|cancer|krebs|"
r"(cheat|hack)(er|ing)?|spying|passport|seaman|scam|pics|vampire|bless(ed)?|atm|miracle|"
r"cure|testimony|kidney|hospital|wetting)s?\b| Dr\.? |\$ ?[0-9,.]{4}|@qq\.com|"
r"cure|testimony|kidney|hospital|wetting)s?\b|(?<=\s)Dr\.?(?=\s)|\$ ?[0-9,.]{4}|@qq\.com|"
r"\b(?:герпес|муж|жена|доктор|болезн))").findall(s)
keyword = [t[0] for t in keyword]
email = regex.compile(r"(?<![=#/])\b[A-z0-9_.%+-]+\b(?:@|\(?at\)?)\b(?!(example|domain|site|foo|\dx)"
Expand Down
1 change: 1 addition & 0 deletions t.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"items":[{"id":null,"body":"\u003cp\u003eSending emails using TLS not working. Without its working. Copy of tls_policy_file (if I change gmail to secure it gives TLS is requied error):\u003c/p\u003e\n\n\u003cpre\u003e\u003ccode\u003e cat /etc/postfix/tls_policy\n gmail.com may\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003cp\u003eCopy of main.cf\u003c/p\u003e\n\n\u003cpre\u003e\u003ccode\u003ealias_database = hash:/etc/aliases\n alias_maps = hash:/etc/aliases\n command_directory = /usr/sbin\n config_directory = /etc/postfix\n daemon_directory = /usr/libexec/postfix\n data_directory = /var/lib/postfix\n debug_peer_level = 2\ndisable_dns_lookups = no\n html_directory = no\ninet_interfaces = all\ninet_protocols = ipv4\n mail_owner = postfix\n mailq_path = /usr/bin/mailq.postfix\nmanpage_directory = /usr/share/man\nmaximal_backoff_time = 14400s\nmaximal_queue_lifetime = 1d\nmilter_default_action = accept\nminimal_backoff_time = 3600s\nmydestination = $myhostname, localhost.$mydomain, localhost\nmydomain = abc.com\nmynetworks = 10.5.78.0/24, 127.0.0.0/8\nmyorigin = $myhostname\nnewaliases_path = /usr/bin/newaliases.postfix\nnon_smtpd_milters = $smtpd_milters\nqueue_directory = /var/spool/postfix\nreadme_directory = /usr/share/doc/postfix-2.6.6/README_FILES\nsample_directory = /usr/share/doc/postfix-2.6.6/samples\nsendmail_path = /usr/sbin/sendmail.postfix\nsetgid_group = postdrop\nsmtp_pix_workarounds = delay_dotcrlf\nsmtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt\nsmtp_tls_policy_maps = hash:/etc/postfix/tls_policy\nsmtpd_client_restrictions = check_client_access hash:/etc/postfix/access\nsmtpd_milters = inet:127.0.0.1:8891\nsmtpd_starttls_timeout = 300s\nsmtpd_tls_CAfile = /etc/pki/tls/certs/abc-int-cert.crt\nsmtpd_tls_cert_file = /etc/pki/tls/certs/abc.com.crt\nsmtpd_tls_key_file = /etc/pki/tls/private/abc.com.key\n smtpd_tls_loglevel = 1\n smtpd_tls_mandatory_ciphers = high\n smtpd_tls_mandatory_exclude_ciphers = aNULL, MD5\n smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3\n smtpd_tls_received_header = yes\nsmtpd_tls_security_level = may \ntransport_maps = hash:/etc/postfix/transport\nunknown_local_recipient_reject_code = 550\n\u003c/code\u003e\u003c/pre\u003e\n","created_at":"2018-09-13T02:01:49.000Z"},{"id":null,"body":"\u003cp\u003eSending emails using TLS not working. Without its working. Copy of tls_policy_file (if I change gmail to secure it gives TLS is requied error):\u003c/p\u003e\n\n\u003cpre\u003e\u003ccode\u003e cat /etc/postfix/tls_policy\n gmail.com may\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003cp\u003eCopy of main.cf\u003c/p\u003e\n\n\u003cpre\u003e\u003ccode\u003ealias_database = hash:/etc/aliases\n alias_maps = hash:/etc/aliases\n command_directory = /usr/sbin\n config_directory = /etc/postfix\n daemon_directory = /usr/libexec/postfix\n data_directory = /var/lib/postfix\n debug_peer_level = 2\ndisable_dns_lookups = no\n html_directory = no\ninet_interfaces = all\ninet_protocols = ipv4\n mail_owner = postfix\n mailq_path = /usr/bin/mailq.postfix\nmanpage_directory = /usr/share/man\nmaximal_backoff_time = 14400s\nmaximal_queue_lifetime = 1d\nmilter_default_action = accept\nminimal_backoff_time = 3600s\nmydestination = $myhostname, localhost.$mydomain, localhost\nmydomain = abc.com\nmynetworks = 10.5.78.0/24, 127.0.0.0/8\nmyorigin = $myhostname\nnewaliases_path = /usr/bin/newaliases.postfix\nnon_smtpd_milters = $smtpd_milters\nqueue_directory = /var/spool/postfix\nreadme_directory = /usr/share/doc/postfix-2.6.6/README_FILES\nsample_directory = /usr/share/doc/postfix-2.6.6/samples\nsendmail_path = /usr/sbin/sendmail.postfix\nsetgid_group = postdrop\nsmtp_pix_workarounds = delay_dotcrlf\nsmtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt\nsmtp_tls_policy_maps = hash:/etc/postfix/tls_policy\nsmtpd_client_restrictions = check_client_access hash:/etc/postfix/access\nsmtpd_milters = inet:127.0.0.1:8891\nsmtpd_starttls_timeout = 300s\nsmtpd_tls_CAfile = /etc/pki/tls/certs/abc-int-cert.crt\nsmtpd_tls_cert_file = /etc/pki/tls/certs/abc.com.crt\nsmtpd_tls_key_file = /etc/pki/tls/private/abc.com.key\n smtpd_tls_loglevel = 1\n smtpd_tls_mandatory_ciphers = high\n smtpd_tls_mandatory_exclude_ciphers = aNULL, MD5\n smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3\n smtpd_tls_received_header = yes\nsmtpd_tls_security_level = may \ntransport_maps = hash:/etc/postfix/transport\nunknown_local_recipient_reject_code = 550\n\u003c/code\u003e\u003c/pre\u003e\n","created_at":"2018-08-12T17:00:06.000Z"},{"id":null,"body":"\u003cp\u003eSending emails using TLS not working. Without its working. Copy of tls_policy_file (if I change gmail to secure it gives TLS is requied error):\u003c/p\u003e\n\n\u003cpre\u003e\u003ccode\u003e cat /etc/postfix/tls_policy\n gmail.com may\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003cp\u003eCopy of main.cf\u003c/p\u003e\n\n\u003cpre\u003e\u003ccode\u003ealias_database = hash:/etc/aliases\n alias_maps = hash:/etc/aliases\n command_directory = /usr/sbin\n config_directory = /etc/postfix\n daemon_directory = /usr/libexec/postfix\n data_directory = /var/lib/postfix\n debug_peer_level = 2\ndisable_dns_lookups = no\n html_directory = no\ninet_interfaces = all\ninet_protocols = ipv4\n mail_owner = postfix\n mailq_path = /usr/bin/mailq.postfix\nmanpage_directory = /usr/share/man\nmaximal_backoff_time = 14400s\nmaximal_queue_lifetime = 1d\nmilter_default_action = accept\nminimal_backoff_time = 3600s\nmydestination = $myhostname, localhost.$mydomain, localhost\nmydomain = abc.com\nmynetworks = 10.5.78.0/24, 127.0.0.0/8\nmyorigin = $myhostname\nnewaliases_path = /usr/bin/newaliases.postfix\nnon_smtpd_milters = $smtpd_milters\nqueue_directory = /var/spool/postfix\nreadme_directory = /usr/share/doc/postfix-2.6.6/README_FILES\nsample_directory = /usr/share/doc/postfix-2.6.6/samples\nsendmail_path = /usr/sbin/sendmail.postfix\nsetgid_group = postdrop\nsmtp_pix_workarounds = delay_dotcrlf\nsmtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt\nsmtp_tls_policy_maps = hash:/etc/postfix/tls_policy\nsmtpd_client_restrictions = check_client_access hash:/etc/postfix/access\nsmtpd_milters = inet:127.0.0.1:8891\nsmtpd_starttls_timeout = 300s\nsmtpd_tls_CAfile = /etc/pki/tls/certs/abc-int-cert.crt\nsmtpd_tls_cert_file = /etc/pki/tls/certs/abc.com.crt\nsmtpd_tls_key_file = /etc/pki/tls/private/abc.com.key\n smtpd_tls_loglevel = 1\n smtpd_tls_mandatory_ciphers = high\n smtpd_tls_mandatory_exclude_ciphers = aNULL, MD5\n smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3\n smtpd_tls_received_header = yes\nsmtpd_tls_security_level = may \ntransport_maps = hash:/etc/postfix/transport\nunknown_local_recipient_reject_code = 550\n\u003c/code\u003e\u003c/pre\u003e\n","created_at":"2018-07-07T06:30:44.000Z"},{"id":null,"body":"\u003cp\u003eSending emails using TLS not working. Without its working. Copy of tls_policy_file (if I change gmail to secure it gives TLS is requied error):\u003c/p\u003e\n\n\u003cpre\u003e\u003ccode\u003e cat /etc/postfix/tls_policy\n gmail.com may\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003cp\u003eCopy of main.cf\u003c/p\u003e\n\n\u003cpre\u003e\u003ccode\u003ealias_database = hash:/etc/aliases\n alias_maps = hash:/etc/aliases\n command_directory = /usr/sbin\n config_directory = /etc/postfix\n daemon_directory = /usr/libexec/postfix\n data_directory = /var/lib/postfix\n debug_peer_level = 2\ndisable_dns_lookups = no\n html_directory = no\ninet_interfaces = all\ninet_protocols = ipv4\n mail_owner = postfix\n mailq_path = /usr/bin/mailq.postfix\nmanpage_directory = /usr/share/man\nmaximal_backoff_time = 14400s\nmaximal_queue_lifetime = 1d\nmilter_default_action = accept\nminimal_backoff_time = 3600s\nmydestination = $myhostname, localhost.$mydomain, localhost\nmydomain = abc.com\nmynetworks = 10.5.78.0/24, 127.0.0.0/8\nmyorigin = $myhostname\nnewaliases_path = /usr/bin/newaliases.postfix\nnon_smtpd_milters = $smtpd_milters\nqueue_directory = /var/spool/postfix\nreadme_directory = /usr/share/doc/postfix-2.6.6/README_FILES\nsample_directory = /usr/share/doc/postfix-2.6.6/samples\nsendmail_path = /usr/sbin/sendmail.postfix\nsetgid_group = postdrop\nsmtp_pix_workarounds = delay_dotcrlf\nsmtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt\nsmtp_tls_policy_maps = hash:/etc/postfix/tls_policy\nsmtpd_client_restrictions = check_client_access hash:/etc/postfix/access\nsmtpd_milters = inet:127.0.0.1:8891\nsmtpd_starttls_timeout = 300s\nsmtpd_tls_CAfile = /etc/pki/tls/certs/abc-int-cert.crt\nsmtpd_tls_cert_file = /etc/pki/tls/certs/abc.com.crt\nsmtpd_tls_key_file = /etc/pki/tls/private/abc.com.key\n smtpd_tls_loglevel = 1\n smtpd_tls_mandatory_ciphers = high\n smtpd_tls_mandatory_exclude_ciphers = aNULL, MD5\n smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3\n smtpd_tls_received_header = yes\nsmtpd_tls_security_level = may \ntransport_maps = hash:/etc/postfix/transport\nunknown_local_recipient_reject_code = 550\n\u003c/code\u003e\u003c/pre\u003e\n","created_at":"2018-06-05T13:20:07.000Z"},{"id":null,"body":"\u003cp\u003eSending emails using TLS not working. Without its working. Copy of tls_policy_file (if I change gmail to secure it gives TLS is requied error):\u003c/p\u003e\n\n\u003cpre\u003e\u003ccode\u003e cat /etc/postfix/tls_policy\n gmail.com may\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003cp\u003eCopy of main.cf\u003c/p\u003e\n\n\u003cpre\u003e\u003ccode\u003ealias_database = hash:/etc/aliases\n alias_maps = hash:/etc/aliases\n command_directory = /usr/sbin\n config_directory = /etc/postfix\n daemon_directory = /usr/libexec/postfix\n data_directory = /var/lib/postfix\n debug_peer_level = 2\ndisable_dns_lookups = no\n html_directory = no\ninet_interfaces = all\ninet_protocols = ipv4\n mail_owner = postfix\n mailq_path = /usr/bin/mailq.postfix\nmanpage_directory = /usr/share/man\nmaximal_backoff_time = 14400s\nmaximal_queue_lifetime = 1d\nmilter_default_action = accept\nminimal_backoff_time = 3600s\nmydestination = $myhostname, localhost.$mydomain, localhost\nmydomain = sjengsmtp01.ehealthinsurance.com\nmynetworks = 10.5.78.0/24, 127.0.0.0/8\nmyorigin = $myhostname\nnewaliases_path = /usr/bin/newaliases.postfix\nnon_smtpd_milters = $smtpd_milters\nqueue_directory = /var/spool/postfix\nreadme_directory = /usr/share/doc/postfix-2.6.6/README_FILES\nsample_directory = /usr/share/doc/postfix-2.6.6/samples\nsendmail_path = /usr/sbin/sendmail.postfix\nsetgid_group = postdrop\nsmtp_pix_workarounds = delay_dotcrlf\nsmtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt\nsmtp_tls_policy_maps = hash:/etc/postfix/tls_policy\nsmtpd_client_restrictions = check_client_access hash:/etc/postfix/access\nsmtpd_milters = inet:127.0.0.1:8891\nsmtpd_starttls_timeout = 300s\nsmtpd_tls_CAfile = /etc/pki/tls/certs/abc-int-cert.crt\nsmtpd_tls_cert_file = /etc/pki/tls/certs/abc.com.crt\nsmtpd_tls_key_file = /etc/pki/tls/private/abc.com.key\n smtpd_tls_loglevel = 1\n smtpd_tls_mandatory_ciphers = high\n smtpd_tls_mandatory_exclude_ciphers = aNULL, MD5\n smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3\n smtpd_tls_received_header = yes\nsmtpd_tls_security_level = may \ntransport_maps = hash:/etc/postfix/transport\nunknown_local_recipient_reject_code = 550\n\u003c/code\u003e\u003c/pre\u003e\n","created_at":"2016-09-21T17:46:00.000Z"}],"has_more":false}

0 comments on commit d23a148

Please sign in to comment.