LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-25-2007, 10:33 AM   #1
zok
Member
 
Registered: Sep 2006
Posts: 42

Rep: Reputation: 15
Postfix: Rejecting Messages "from=<>"


So we're getting hammered with spam to invalid addresses in our domain. Looking at our Postfix logs, I see that they're coming from null "from" address. Here's an example in our Postfix logs:

Sep 25 10:53:14 cork postfix/nqmgr[1693]: DD6E443E1C: from=<>, size=4363, nrcpt=1 (queue active)

I'm not sure if this blank from field is the "Send From" field or some other field (anyone know?). I've provided an example below of the headers and contents of one of these messages (I apologize for any obscenities in the message; also, I've removed the hostnames and IPs of our servers).

Configuring out spam service is another step I need to take, since right now it's only scanning messages with valid recipients, but does anyone know how to configure postfix to automatically drop emails that are "from=<>"? We're running postfix 2.0.16-14 on a Redhat AS 3 machine. Let me know if you need any additional info. The example message follows. Thanks for any suggestions.


*** ENVELOPE RECORDS active/D/DD6E443E1C ***
message_size: 4363 158 1
arrival_time: Tue Sep 25 10:53:14 2007
named attribute: message_origin=local
sender:
original recipient: +._-Jansson@alternatis.net
recipient: +._-Jansson@alternatis.net
*** MESSAGE CONTENTS active/D/DD6E443E1C ***
Received: by <our mail server> (Postfix)
id DD6E443E1C; Tue, 25 Sep 2007 10:53:14 -0400 (EDT)
Date: Tue, 25 Sep 2007 10:53:14 -0400 (EDT)
From: MAILER-DAEMON@<our organization> (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: +._-Jansson@alternatis.net
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="C05BC43F36.1190731994/<our mail server>"
Message-Id: <20070925145314.DD6E443E1C@<our mail server>>

This is a MIME-encapsulated message.

--C05BC43F36.1190731994/<our mail server>
Content-Description: Notification
Content-Type: text/plain

This is the Postfix program at host <our mail server>.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the message returned below.

The Postfix program

<egounot1@<our organization>>: unknown user: "egounot1"

--C05BC43F36.1190731994/<our mail server>
Content-Description: Delivery error report
Content-Type: message/delivery-status

Reporting-MTA: dns; <our mail server>
Arrival-Date: Tue, 25 Sep 2007 10:53:14 -0400 (EDT)

Final-Recipient: rfc822; egounot1@<our organization>
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; unknown user: "egounot1"

--C05BC43F36.1190731994/<our mail server>
Content-Description: Undelivered Message
Content-Type: message/rfc822

Received: from localhost (<our virus scanning server> [<our virus scanning server IP>])
by <our mail server> (Postfix) with ESMTP id C05BC43F36
for <egounot1@<our organization>>; Tue, 25 Sep 2007 10:53:14 -0400 (EDT)
Received: from <our mail server> ([<our mail server IP>])
by localhost (<our virus scanning server> [<our virus scanning server IP>]) (amavisd-new, port 10024)
with ESMTP id 02100-09 for <egounot1@<our organization>>;
Tue, 25 Sep 2007 10:53:13 -0400 (EDT)
Received: from psmtp.com (chip8mx68.postini.com [64.18.15.128])
by <our mail server> (Postfix) with SMTP id B06F443E1C
for <egounot1@<our organization>>; Tue, 25 Sep 2007 10:53:13 -0400 (EDT)
Received: from source ([89.3.19.113]) by chip8mx68.postini.com ([64.18.7.11]) with SMTP;
Tue, 25 Sep 2007 09:52:59 CDT
Received: by 10.133.104.109 with SMTP id CSuGFahARLbIi;
Tue, 25 Sep 2007 16:52:37 +0200 (GMT)
Received: by 192.168.157.213 with SMTP id hRcoMdikwcNWvQ.8983913879924;
Tue, 25 Sep 2007 16:52:35 +0200 (GMT)
Message-ID: <000e01c7ff83$b3ed23d0$71130359@LEONIEGUY>
From: "Jaakko Jansson" <Jansson@alternatis.net>
To: <egounot1@<our organization>>
Subject: {mhyrnas
Date: Tue, 25 Sep 2007 16:52:32 +0200
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0004_01C7FF94.7775F3D0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-Antivirus: avast! (VPS 000776-1, 24/09/2007), Outbound message
X-Antivirus-Status: Clean
X-pstn-levels: (S: 0.02540/98.67781 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
X-Virus-Scanned: amavisd-new at <our virus scanning server>

------=_NextPart_000_0004_01C7FF94.7775F3D0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

http://www.kthsrd.com/
Wazzup egounot1
I always wanted a bigger cock, so did my wife!

Jaakko Jansson
------=_NextPart_000_0004_01C7FF94.7775F3D0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT Arial size=3D2><A=20
HREF=3D"http://www.kthsrd.com/">http://www.kthsrd.com/</A></FONT></DIV>
<DIV><FONT Arial size=3D2>Wazzup egounot1</FONT></DIV>
<DIV><FONT Arial size=3D2>I always wanted a bigger cock, so did my =
wife!</FONT></DIV>
<DIV><FONT Arial size=3D2></FONT></DIV>
<DIV><FONT Arial size=3D2>Jaakko Jansson</FONT></DIV></BODY></HTML>

------=_NextPart_000_0004_01C7FF94.7775F3D0--


--C05BC43F36.1190731994/<our mail server>--
*** HEADER EXTRACTED active/D/DD6E443E1C ***
return_receipt:
errors_to:
*** MESSAGE FILE END active/D/DD6E443E1C ***
 
Old 09-25-2007, 02:02 PM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
I believe spamassassin, which has a nice integration with postfix, could handle this special case of null sender.
Try the general solution first and the special cases after.
There are good chances any spam service will get rid off theses e-mails.

cheers,
 
Old 09-26-2007, 10:42 AM   #3
zok
Member
 
Registered: Sep 2006
Posts: 42

Original Poster
Rep: Reputation: 15
We used to use spamassassin, but we're using an outside service now -- Postini. We may be able to configure Postini to do this, but I figured it'd be quicker and easier to do it in Postfix first. Thanks for the info, though; I may just go ahead and try to find a way to do it in Postini.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
What does "SFW2-INext-DROP-DEFLT" in my messages log file mean? TrulyTessa Linux - Networking 11 12-22-2004 09:28 AM
Multiple "eth0: interrupt(s) dropped" messages appearing CaptainRandom Debian 1 05-16-2004 03:39 PM
Multiple "device not ready" messages in System Log quasy Linux - Hardware 0 04-27-2004 05:58 AM
Boot messages not the same as "dmesg" or "/var/log/messages"? massai Linux - General 5 03-10-2004 12:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration