OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: A couple of newbie (but hopefully not numptie) questions

From: mouss (moussnetoyen.net)
Date: Wed Mar 26 2008 - 15:35:16 CDT


Mark Goodge wrote:
> At 17:45 26/03/2008, Sandy Drobic wrote:
> [snip]
>>
>>
>> /etc/postfix/generic.pcre:
>> (.+)example\.com$/ $1example.co.uk
>
> That's excellent, both of those appear to do precisely what I want,
> thanks.

use virtual_alias_maps instead. see my previous post in this thread.
>
>>> 2. How can I configure Postfix to discard mail from the null sender
>>> to a specific recipient? That is, I want <> to be able to send mail
>>> to every valid user on my system except johnexample.com, while
>>> johnexample.com can receive mail from any valid external sender
>>> except <>.
>>
>> Do not discard mail, REJECT mail you do not wish to receive.
>
> Normally I would reject, but the null sender is a special case as
> rejecting it is against the RFCs and doing so can get your server
> blacklisted by others which have a more strictly pedantic approach.

not if your "text" shows that the rejection is based on the recipient.

you should take a look at the BACKSCATTER README for safer ideas. they
won't block all backscatter, but it's better than nothing.

> [snip]
>