filter question

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

filter question

Hement Gopal

Hi all

 

I’m running 2.0.13 on my mail gateway.

 

I accept mail for [hidden email]

 

I also have a  domain that I still receive mail for called @abc.mydomain.com

 

This domain received a huge amount of junkmail for non existent mailboxes…the domain itself only has about 25 legitimate mail addresses.

 

Is there anyway in postfix to apply a filter so that postfix will only except mail for the legit 25 [hidden email] and drop all other @abc.mydomain.com mails…while still allowing all @mydomains.com mails to come through?

 

TIA.

 

Rgds,

Hement

 

 

Hement Gopal
Senior Information Security Specialist
Computer and Networking Services
University of the Witwatersrand
Private Bag 3
Wits
2050
South Africa

Office : (011) 717 1658

Fax : 086 645 9007

 

This communication is intended for the addressee only. It is confidential. If you have received this communication in error, please notify us immediately and destroy the original message. You may not copy or disseminate this communication without the permission of the University. Only authorized signatories are competent to enter into agreements on behalf of the University and recipients are thus advised that the content of this message may not be legally binding on the University and may contain the personal views and opinions of the author, which are not necessarily the views and opinions of The University of the Witwatersrand, Johannesburg. All agreements between the University and outsiders are subject to South African Law unless the University agrees in writing to the contrary.

Reply | Threaded
Open this post in threaded view
|

Re: filter question

Ramprasad-5

On Thu, 2008-09-04 at 11:30 +0200, Hement Gopal wrote:

> Hi all
>
>  
>
> I’m running 2.0.13 on my mail gateway.
>
>  
>
> I accept mail for *@mydomain.com
>
>  
>
> I also have a  domain that I still receive mail for called
> @abc.mydomain.com
>
>  
>
> This domain received a huge amount of junkmail for non existent
> mailboxes…the domain itself only has about 25 legitimate mail
> addresses.
>
>  
>
> Is there anyway in postfix to apply a filter so that postfix will only
> except mail for the legit 25 [hidden email] and drop all
> other @abc.mydomain.com mails…while still allowing all @mydomains.com
> mails to come through?
>

You want to verify rcpt id for @abc.mydomain.com and not for
@mydomain.com

That should be easy

put in main.cf

----------------------
smtpd_recipient_restrictions=
   check_recipient_access hash:/etc/postfix/validusers,
   ...
   ...

------------------------

in this file
---------------------------
[hidden email] OK
[hidden email] OK
...
...
abc.mydomain.com REJECT User not found
mydomain.com DUNNO
------------------------


But I would suggest you verify users of "mydomain.com" too. Accepting
undeliverable mails is usually a very bad idea





Reply | Threaded
Open this post in threaded view
|

Re: filter question

mouss-2
In reply to this post by Hement Gopal
Hement Gopal wrote:

> Hi all
>
>  
>
> I'm running 2.0.13 on my mail gateway.
>
>  
>
> I accept mail for *@mydomain.com
>
>  
>
> I also have a  domain that I still receive mail for called
> @abc.mydomain.com
>
>  
>
> This domain received a huge amount of junkmail for non existent
> mailboxes...the domain itself only has about 25 legitimate mail
> addresses.
>
>  
>
> Is there anyway in postfix to apply a filter so that postfix will only
> except mail for the legit 25 [hidden email] and drop all
> other @abc.mydomain.com mails...while still allowing all @mydomains.com
> mails to come through?


http://www.postfix.org/DEBUG_README.html#mail