Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th April 2009, 21:34
zeus80 zeus80 is offline
Junior Member
 
Join Date: Mar 2009
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default Virtual Users And Domains With Postfix on Debian Lenny: Quarantine Question

Hi all,
I've configured my mail server using the wonderful Falko how to published on this site (here http://www.howtoforge.com/virtual-us...l-debian-lenny).

All works ok.
I'm trying to twaek it and i think i need your help.

The antispam filter works great exept for the fact that i'm receiving a lot of mails with From: mymailaddress@mydomain To: mymailaddress@mydomain

Obvoiusly mymailaddress@mydomain is my real mail account.
The antispam filter put them in quaratine and send me a notification of this type.
From - Sun Apr 5 20:57:00 2009
X-Account-Key: account2
X-UIDL: UID54-1238747624
X-Mozilla-Status: 0001
X-Mozilla-Status2: 10000000
X-Mozilla-Keys:
Return-Path: <>
X-Original-To: filippo@<hidden>.it
Delivered-To: filippo@<hidden>.it
Received: from localhost (localhost [127.0.0.1])
by mail.<hidden>.it (Postfix) with ESMTP id E913E25808C
for <filippo@<hidden>.it>; Sun, 5 Apr 2009 17:42:56 +0200 (CEST)
Content-Type: multipart/report; report-type=delivery-status;
boundary="----------=_1238946176-14645-2"
Content-Transfer-Encoding: 7bit
MIME-Version: 1.0
Subject: Considered UNSOLICITED BULK EMAIL, apparently from you
In-Reply-To: <20090405154251.C715725808B@mail.<hidden>.it>
Message-ID: <SShD+sBmkJuO43@mail.<hidden>.it>
From: "Content-filter at mail.<hidden>.it" <postmaster@mail.<hidden>.it>
To: <filippo@<hidden>.it>
Date: Sun, 5 Apr 2009 17:42:52 +0200 (CEST)

This is a multi-part message in MIME format...

------------=_1238946176-14645-2
Content-Type: text/plain; charset="iso-8859-1"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

A message from <filippo@<hidden>.it> to:
-> filippo@<hidden>.it

was considered unsolicited bulk e-mail (UBE).

Our internal reference code for your message is 14645-20/hD+sBmkJuO43

The message carried your return address, so it was either a genuine mail
from you, or a sender address was faked and your e-mail address abused
by third party, in which case we apologize for undesired notification.

We do try to minimize backscatter for more prominent cases of UBE and
for infected mail, but for less obvious cases of UBE some balance
between losing genuine mail and sending undesired backscatter is sought,
and there can be some collateral damage on both sides.

First upstream SMTP client IP address: [77.221.75.169]
ip-77-221-75-169.kava.lt
According to a 'Received:' trace, the message originated at: [77.221.75.169],
alinta.net.au ip-77-221-75-169.kava.lt [77.221.75.169]

Return-Path: <filippo@<hidden>.it>
Message-ID: <20090405154251.C715725808B@mail.<hidden>.it>
Subject: La nostra proposta e interessante per il 68% della popolazione.

Delivery of the email was stopped!

------------=_1238946176-14645-2
Content-Type: message/delivery-status; name="dsn_status"
Content-Disposition: inline; filename="dsn_status"
Content-Transfer-Encoding: 7bit
Content-Description: Delivery error report

Reporting-MTA: dns; mail.<hidden>.it
Received-From-MTA: smtp; mail.<hidden>.it ([127.0.0.1])
Arrival-Date: Sun, 5 Apr 2009 17:42:52 +0200 (CEST)

Original-Recipient: rfc822;filippo@<hidden>.it
Final-Recipient: rfc822;filippo@<hidden>.it
Action: failed
Status: 5.7.0
Diagnostic-Code: smtp; 554 5.7.0 Reject, id=14645-20 - SPAM
Last-Attempt-Date: Sun, 5 Apr 2009 17:42:52 +0200 (CEST)
Final-Log-ID: 14645-20/hD+sBmkJuO43

------------=_1238946176-14645-2
Content-Type: text/rfc822-headers; name="header"
Content-Disposition: inline; filename="header"
Content-Transfer-Encoding: 7bit
Content-Description: Message header section

Return-Path: <filippo@<hidden>.it>
Received: from alinta.net.au (ip-77-221-75-169.kava.lt [77.221.75.169])
by mail.<hidden>.it (Postfix) with SMTP id C715725808B
for <filippo@<hidden>.it>; Sun, 5 Apr 2009 17:42:51 +0200 (CEST)
To: <filippo@<hidden>.it>
Subject: La nostra proposta e interessante per il 68% della popolazione.
From: <filippo@<hidden>.it>
MIME-Version: 1.0
Importance: High
Content-Type: text/html
Message-Id: <20090405154251.C715725808B@mail.<hidden>.it>
Date: Sun, 5 Apr 2009 17:42:51 +0200 (CEST)

------------=_1238946176-14645-2--

Now assuming that i do not send mails to myself from smtp different from mine is there a way to configure postfix/amavis/spamassassin or something to directly delete those messages without sending any notification to my mailbox ?

p.s. I think i cant use procmail because it do not support virtual configuration so i can't write my ~/.procmailrc file.

If someone has a solution can please help me ?

thanks in advance
Reply With Quote
Sponsored Links
  #2  
Old 6th April 2009, 14:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,711
Thanks: 1,900
Thanked 2,702 Times in 2,545 Posts
Default

I'm not sure if this can be done, but instead of procmail, you can use maildrop.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 13th April 2009, 22:11
jborton jborton is offline
Junior Member
 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
 
Default another way

Here's how I did it, probably easier than procmail or maildrop.

in postfix main.cf

smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated,
check_sender_access hash:/etc/postfix/sender_access, (etc)

in /etc/postfix/sender_access
domain.tld REJECT You are not me!
mail.domain.tld REJECT You are not me!

now anyone who tries to send me email using any address from my own domain is rejected. My own users are either authenticated or on my network, so the third option never gets checked.
Reply With Quote
The Following User Says Thank You to jborton For This Useful Post:
falko (14th April 2009)
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
Help configure Postfix to use alt port 465 or 587 BoloMarkIII Installation/Configuration 10 16th March 2009 17:57
Mail System Error - Returned Mail tristanlee85 General 16 16th March 2008 09:40
Question on Virtual Users And Domains With Postfix, Courier And MySQL (Debian Etch) Horizon HOWTO-Related Questions 12 26th February 2008 20:22


All times are GMT +2. The time now is 22:15.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.