[PLUG] postfix and virtuals

Gaetano gaetano at minastirith.org
Mon Apr 29 16:24:46 UTC 2002


Well, you obviously DO have a clue. :)

You are right. If you want to catch cc and bcc you would need to add 
another entry in the header_checks or change the regular expression to 
catch "CC: " "BCC: " in addition to just "To: ". But there probably is a 
better way to do this. The problem with my solution is that if the mail 
was also addressed to a valid email address it may get rejected if it 
was also sent to brubas. If you regularly  get email dilivered to a few 
user accounts you don't want to hear about then this works, as it did 
for me and as I suspect it would for Rob who is recieving all email 
addressed to his virtual domain.

The only sender to the brubas account appears to be a spam bot and I 
have gotten hundreds of emails addressed only to "To: 
brubas@<virtualDomain>". The sending machines have been in various 
places accross the internet and I have never seen brubas get a cc: or 
bcc: so I havn't bothered with finding the solution you would use where 
you have more than a handful of users. As much as I like to hear things 
like "Hot babes want to talk with you now!" and "You are a winner!" I 
just assume reject all that email. :)

- Gaetano




Russell Evans wrote:

>Not having a clue, it doesn't look like to me, that you will catch brubas on cc
>and bcc. It also doesn't look like to me, that you will catch it if another
>email address is first.
>
>Thank you
>Russell
>
>
>
>
>
>On Sun, 28 Apr 2002 20:47:19 -0700, Gaetano said:
>
>  
>
>>I don't know if this is the best way, or the most elegant way, but it 
>> was a knee jerk reaction to a bunch of mail being sent to a non-existant 
>> user named brubas on my postfix system and it works.
>> 
>> I put a header_checks entry in the main.cf file:
>> 
>> header_checks = /etc/postfix/header_checks
>> 
>> Then in the header_checks file I have things I would like to match and 
>> reject like this:
>> 
>> /^[Tt][Oo]: brubas@*/ REJECT
>> 
>> then run "postmap /etc/postfix/header_checks"
>> 
>> and anything that comes in with a header matching a regular expression 
>> in the header_checks file will effectively be rejected. (In this case 
>> anything to the non-existant user brubas)
>> 
>> The header_checks file is also useful for matching other things.
>> 
>> If there is a more elegant solution I would love to hear about it.
>> 
>> - Gaetano
>> 
>> 
>> Rob Hudson wrote:
>> > I've got my virtuals set so that any email coming to my domain that
>> > doesn't have an assigned user, goes to me.
>> > 
>> > (I've got a "@domain.com  rob" at the bottom of my virtuals file)
>> > 
>> > I recently started getting spam on a certain name at domain.com address,
>> > and I'd like this to bounce back.  Is there a way to tell postfix to
>> > bounce that address, but let others thru?
>> > 
>> > Thanks,
>> > Rob
>> > 
>> > 
>> > 
>> > _______________________________________________
>> > PLUG mailing list
>> > PLUG at lists.pdxlinux.org
>> > http://lists.pdxlinux.org/mailman/listinfo/plug
>> 
>> 
>> 
>> 
>> _______________________________________________
>> PLUG mailing list
>> PLUG at lists.pdxlinux.org
>> http://lists.pdxlinux.org/mailman/listinfo/plug
>> 
>> 
>>    
>>
>
>
>_______________________________________________
>PLUG mailing list
>PLUG at lists.pdxlinux.org
>http://lists.pdxlinux.org/mailman/listinfo/plug
>  
>






More information about the PLUG mailing list