OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Reject unknown Sender address

From: Dave McGuire (mcguireneurotica.com)
Date: Fri Jun 01 2007 - 13:58:34 CDT


On Jun 1, 2007, at 6:30 AM, Eray Aslan wrote:
>> I get plenty of spam with the From address from my domain ... but
>> the users
>> don't exists in the virtual-table.
>>
>> Can I somehow reject only From addresses from my domain with unknown
>> users of the virtual table?
>
> http://www.postfix.org/postconf.5.html#smtpd_reject_unlisted_sender
>
> Here is how we use it:
>
> /etc/postfix/main.cf:
> smtpd_recipient_restrictions = reject_non_fqdn_sender
> reject_non_fqdn_recipient
> reject_unlisted_recipient
> reject_unlisted_sender
> permit_sasl_authenticated
> permit_mynetworks
> reject_unauth_destination
> [...]

   Wow, I was just thinking of a solution to this problem today,
thanks! :-) I have one question about this, though.

   My installation has many wildcard entries of the form
'domain.com', with no username component, in relay_recipient_maps.
Will those entries work as expected (i.e., as wildcards) when used by
smtpd_reject_unlisted_sender? I would guess yes, but since it's not
explicitly stated in the documentation, I'm nervous about enabling it
on the production system without checking first.

             Thanks,
             -Dave

--
Dave McGuire
Port Charlotte, FL