OSEC

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

From: Wietse Venema (wietseporcupine.org)
Date: Thu Nov 26 2009 - 11:20:19 CST


Marco Giardini:
> I have a barracuda server that receives mails, filter them and forward to a
> linux system running postfix.
>
> Both machine have a public IP (static).
>
> The linux system is configured to be used as SMTP for sasl authenticated
> users as well, besides to be used as SMTP for the people on $mynetworks
> (permit_mynetworks in the smtpd_recipient_restrictions).
>
> Unfortunatley, some spammers, have found it and use to spam local recipients
> using the linux machine, avoiding so to be filtered through the barracuda
> system.
>
> I'm wondering if there is a way to allow OLNY local users or users belonging
> to the domains hosted by the linux server to use SMTP.

To permit only local systems (incl. barracuda box), or users that
have a relationship with your server:

smtpd_recipient_restrictions =
    permit_mynetworks permit_sasl_authenticated reject

        Wietse