Consider the following junk email received in which the recipient address is the same as the sender's address, but this users didn't send them self the email, it is junk mail;
(All hostnames and IPs have been changed for privacy):
Return-Path: <firstname.lastname@example.org> X-Original-To: email@example.com Delivered-To: firstname.lastname@example.org Received: from mx1.mailplatform.net (mx1.mailplatform.net [22.214.171.124]) by mx1.mailplatform.net (Postfix) with ESMTP id 9F7DB8406E6; Thu, 21 Jun 2012 08:11:54 +0100 (BST) Received: from localhost (localhost [127.0.0.1]) by mx1.mailplatform.net (Postfix) with ESMTP id 66B6C27C6D1; Thu, 21 Jun 2012 08:11:54 +0100 (BST) X-Virus-Scanned: by Mailplatform Anti-Virus Received: from mx1.mailplatform.net ([126.96.36.199]) by localhost (mx1.mailplatform.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rOsEgrThepcJ; Thu, 21 Jun 2012 08:11:52 +0100 (BST) Received: from dialup.user.some.isp.net (dialup.user.some.isp.net [188.8.131.52]) by mx1.mailplatform.net (Postfix) with ESMTP id 3AA3127C6C1; Thu, 21 Jun 2012 08:11:51 +0100 (BST) Message-ID: <4FE2D446.email@example.com> Date: Thu, 21 Jun 2012 08:11:51 +0100 From: <firstname.lastname@example.org>, <email@example.com>, <firstname.lastname@example.org> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en; rv:184.108.40.206) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: <email@example.com>, <firstname.lastname@example.org>, <email@example.com> Subject: Vacancy - apply online Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 120621-0, 21/06/2012), Inbound message X-Antivirus-Status: Clean
As we can see here, the email was originally submitted to the MX host mx1, by a dial up user (as the reverse PTR records indicates, so a good indication of spam right there!). What I can't understand is why postfix didn't do an SPF lookup, see that the sender isn't an authorised source for this domain (realdomain.com), and adjust the score accordingly. mx1 is the sending and receiving host for the end user's domain "realdomain.com". This was in the postfix logs;
Jun 21 08:11:51 mx1 meta-greylist: 220.127.116.11:dialup.user.some.isp.net is not in DB Jun 21 08:11:51 mx1 meta-greylist: has_A_or_MX (A): dialup.user.some.isp.net RR A Jun 21 08:11:52 mx1 meta-greylist: SPF result neutral/Please see http://firstname.lastname@example.org&ip=18.104.22.168&receiver=mx1.mailplatform.net Jun 21 08:11:52 mx1 meta-greylist: suspect level 0 Jun 21 08:11:52 mx1 meta-greylist: 22.214.171.124:dialup.user.some.isp.net:lala.net set to whitelisted Jun 21 08:11:52 mx1 meta-greylist: action=DUNNO Jun 21 08:11:52 mx1 postfix/smtpd: 3AA3127C6C1: client=dialup.user.some.isp.net[126.96.36.199] Jun 21 08:11:52 mx1 postfix/trivial-rewrite: warning: do not list domain readldomain.com in BOTH virtual_alias_domains and relay_domains
Sorry if this seems ridiculous, I'm new to Postfix. If I have not posted something that I obviously should have (piece of a log for example), please let me know, and I will. Thank you.
EDIT-Update: What I meant to say was, did this get through because the sending user has used 'email@example.com' for the return-path value which has somehow thrown off postfix/amavis/spamassassin?