OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: Mail without "From:"
From: Wietse Venema (wietseporcupine.org)
Date: Mon Jun 05 2000 - 14:28:57 CDT


Andre Galvani:
> Hi,
>
> I would like to know, How do I block messages
> without "From:"

That's currently not possible.

> or messages with sender-SMTP
> equal "mail.localhost.net"(Is that it would be a spoof?)??

Use an access(5) table.

    /etc/postfix/main.cf
        smtpd_sender_restrictions = hash:/etc/postfix/access

    /etc/postfix/access:
        mail.localhost.net REJECT

Run "postmap /etc/postfix/access" whenever you change that file.

        Wietse