On Thu, 7 Feb 2019 05:24:08 +0100 Francesc Peñalvez <naz...@almogavers.net> wrote:
> I asked the same and Vietse Venema answer this: > > Postfix 3.0 and later: > > /etc/postfix/main.cf: > smtpd_sender_restrictions = > permit_mynetworks > permit_sasl_authenticated > check_sender_access inline:{ > { example.com = REJECT local sender from unauthorized > client } > { other.example = REJECT local sender from unauthorized > client } > } > > Instead of example.com and other.example, specify your email domains. > > Note: this breaks email from remote mail forwarders or from remote > distribution lists that don't reset the sender address. > > > this worked perfectly for me > > ************************************************************************************************* > Este mensaje y todos los archivos adjuntos son confidenciales y de > uso exclusivo por parte de su/sus destinatario/s. Si usted ha > recibido este mensaje por error, le agradecemos que lo notifique > inmediatamente al remitente y destruya el mensaje. Queda prohibida > cualquier modificación, edición, uso o divulgación no autorizados. El > Emisor no se hace responsable de este mensaje si ha sido modificado, > distorsionado, falsificado, infectado por un virus o editado o > difundido sin autorización. > > > *********************************************************************************************** > This message and any attachments are confidential and intended for > the named addressee(s) only. If you have received this message in > error, please notify immediately the sender, then delete the message. > Any unauthorized modification, edition, use or dissemination is > prohibited. The sender shall not be liable for this message if it has > been modified, altered, falsified, infected by a virus or even edited > or disseminated without authorization. > *********************************************************************************************** > > El 07/02/2019 a las 2:44, Ruben Safir escribió: > > I got this email, which I thought I set up postfix to block > > > > >From ru...@mrbrklyn.com Wed Feb 6 06:26:12 2019 > > Return-Path: <ru...@mrbrklyn.com> > > X-Original-To: ru...@mrbrklyn.com > > Delivered-To: ru...@mrbrklyn.com > > Received: from mail.isentia.asia (mail.mediabanc.ws > > [203.223.144.88]) by mrbrklyn.com (Postfix) with ESMTP id > > BE463161132 for <ru...@mrbrklyn.com>; Wed, 6 Feb 2019 06:25:50 > > -0500 (EST) Received: from fixed-187-189-92-126.totalplay.net > > (187.189.92.126) by mail.mediabanc.ws (10.61.3.33) with Microsoft > > SMTP Server id 8.1.240.5; Wed, > > 6 Feb 2019 15:36:09 +0800 > > From: BSM <ru...@mrbrklyn.com> > > To: ru...@mrbrklyn.com > > Subject: Directorio Empresarial Mexicano 2019 > > Date: Wed, 6 Feb 2019 01:40:06 -0600 > > Message-ID: <20190206014006.8f2d6192f98f7...@mrbrklyn.com> > > MIME-Version: 1.0 > > Content-Type: text/html; charset="iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > X-UID: 55347 > > Status: RO > > Content-Length: 36872 > > Lines: 561 > > > > This is addressed as me in the From line and came from outside my > > local network > > > > I want domain being accepted From my domain only is it comes from > > within the local network > > > I'm having trouble finding check_sender_access AND inline. Is inline some way of not using hash? For example, I have: check_sender_access hash:/etc/postfix/sender_checks, Maybe I'm using this wrong. I have this set up to whitelist addresses. That is my sender_checks looks like goodper...@ok.com OK I'm not using this to reject anything.