Detecting a (naughty or nice) URL or link in a text string

How can I detect (with regular expressions or heuristics) a web site link in a string of text such as a comment? The purpose is to prevent spam. HTML is stripped so I need to detect invitations...

spamassassin rdns reversedns

Spamassasin gives the following flag on my emails: 0.8 RDNS_NONE Delivered to internal network by a host with no rDNS "This test checks to see if there is a reverse DNS...

How to whitelist recipients before mail goes to spamassassin?

I've been looking everywhere for a solution but didn't find. What I need is to whitelist some recipient addresses so they won't ever go to the spamassassin filtering. In my master.cf in postfix I...

Outgoing email marked as spam: BAYES_99

I am developing a web application. All outgoing emails are marked as spam, or totally rejected by receivers' email providers. This prevents us from sending welcome emails, activation codes, or...

Get spamassassin to drop emails containing a specific REGEX in attached filenames

newbie asking first question :) I'm running a mail server (Ubuntu/Postfix/Dovecot) with SpamAssassin. Most of the known spam is flagged (RBLs, and obvious UCE) except for this particular malspam...

Mail-tester says DMARC missing, but it's not?

I'm scoring 9/10 on mail-tester.com. My -1 comes from this, "You do not have a DMARC record" In my DNS (cPanel>"Advanced DNS Zone Editor") I have this DMARC...

Outllook VBA: Get Header Info from attached Email to an Email

Challenge description I'd like to extract the header information from emails in an Outlook folder. This works so far. But there are Emails which where scanned by Spamassassin and found as being...

SpamAssassin - custom filter with multiple rules?

I'm attempting to setup a custom SpamAssassin filter to deal with the huge amount of SEO & web dev spam we get from GMail & Hotmail accounts - ideally, server-wide, since there are multiple mail...

Spamassassin rule that compares part of the To: header with part of the subject line

I am trying to write a rule that will trigger when the user part of the 'To:' header is present in the subject line, followed by a number or preceded by a number. For example To:...

Whats wrong with this original mail message?

Recently I have bring up a mail server with postfix. After lots of configurations and settings such as DKIM and rDNS, unfortunately its outgoing mail messages to Gmail are still blocked from the...

spamassassin rule to give a higher score to a certain language

Is it possible to give a score to e-mails written in a specific language? Background info: In specific cases I use score rules in the .spamassasin/user_prefs file. Some of our e-mail accounts...

temporary lookup failure error using postfix with ldap

I have setup docker-mailserver image on ubuntu VM of aws cloud. I have configured a separate image of openldap on the same VM. I also have added the enteries...

Cron jobs not running in VestaCP (CentOs)

I have written some PHP scripts that I am trying to run with cron jobs in VestaCP, but they don't seem to be running. I have tried to search for other threads on here and on the VestaCP forum that...

dovecot password hashing with mysql 8 SHA2

Previously (MySQL 5.7) we was using this command to add a new email address into an existing table: INSERT INTO `servermail`.`virtual_users` (`id`, `domain_id`, `password` , `email`) VALUES ('1',...

Virtualmin mails not receiving. Two mailfolders in home directory

I've installed a vps on ubuntu 18.04 with virtualmin as control panel. Once I create a user in a virtual server, the server automatically creates a 'mail' directory besides the 'Maildir' folder...

SpamAssassin negative score for HEADER_FROM_DIFFERENT_DOMAINS

Some emails sent by our sever go to spam for certain recipients. E.g when sent to @outlook.com email addresses. I have been testing our emails using https://www.mail-tester.com SpamAssassin gives...

Email header with multiple received fields: How can this happen and can this be used to fight SPAM

I often receive fishing /SPAM emails with multiple received fields. First, I'd like to understand how one email header can have more than one received field. Second, I'd like to know if I can use...

Postfix and amavisd-new Bouncing and undelivered (queued) emails

So Postfix stopped delivering emails to inbox after a few hundred successfully were received/delivered. Now they are all landing in queue (postqueue -p). I had a high number of emails coming in...

Regex help specific to Spamassassin

I'm trying to create a filter for social security numbers and have the following regex: \b(?!000|666)[0-8][0-9]{2}-(?!00)[0-9]{2}-(?!0000)[0-9]{4}\b The problem is that the regex also matches...

How can I solve spamassassin DKIM timeout request?

I have a mail server runs CentOS 7 with Exim + Dovecot + Spamassassin v3.4.0, and VestaCP. Everything works fine except too long spamassassin check. It takes 10-11 seconds. At the spamassassin...

How to mark an email as Junk\Spam in PHP?

I am developing an email client using PHP. I have got a problem with mark my emails as spam because php library imap doesn't support mark as spam when I mark the emails as a spam. The only things...

Dockerfile RUN multiple Command are not working

I am new to docker community want webpanel image for my php website when I run docker image building command I facing this error please some help me 4 days had been passed and am still stuck in...

Unable to get SpamAssassin subject rule to work

I'm trying to catch the hoax domain name invoices I receive for my various websites. These emails have the subject line: [domain] Final Notice. I've added this rule to local.cf (other rules I've...

Spamassassin's custom rule (for subject line filtering) doesn't work

I'm setting up Spamassassin to use along isbg to filter mail in my IMAP mail account. My ISP already has a pretty good spam filter that adds "[SPAM]" in front of the subject line of each message...

Mail goes to Outlook spam folder

When I want to send message to outlook.com e-mail address, then it's going to spam/junk folder, while it's OK for Google and Yahoo mail. I've checked SpamAssassin scores for all these mail...

Tricky pattern matching of a binary string in Erlang

I am using Erlang to send message between an email server and Spamassassin. What I want to achieve is retrieving the tests done by SA to generate a report (I am doing some kind of mail-tester...

How to Reduce Parameters in CloudFormation Parent Stacks

I'm trying to follow AWS CloudFormation best practices, and set up lots of little stacks that nest under a parent stack. Mostly, this is working fine; however, in an intermediate stack I've now...

SpamAssassin rules explaination

I have a little problem with SpamAssassin. I don't find the documentation for the rules. For example for the rule MIME_HTML_MOSTLY I have this link :...

Procmail recipe to match Spamassassin X-Spam-Status score or X-Spam-Level

Consider these mail headers: X-Spam-Level: *** X-Spam-Status: Yes, score=3.7 required=3.0 tests= (remaining truncated for brevity) I simply want to match the headers "X-Spam-Level: **" (at least...

SpamAssassin flag 'RAND_MKTG_HEADER' is unclear in what it means

I'm managing a bulk email service for the company I work at and a recent change to SpamAssassin has started flagging emails sent by our bulk-email solution with 'RAND_MKTG_HEADER'. I can't find...