On Mon, Apr 08, 2019 at 08:02:41AM -0700, Janis wrote: > in main.cf I have put: > smtpd_sender_login_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf, > mysql:/etc/postfix/mysql_virtual_alias_maps.cf > > smtpd_sender_restrictions = permit_mynetworks, > permit_sasl_authenticated, > reject_sender_login_mismatch,
That's an *envelope sender* check. > *The message gets rejected in log with* > NOQUEUE: reject: RCPT from myother.server.tld[192.168.7.229]: 553 5.7.1 > <[email protected]>: Sender address rejected: not logged in; > from=<[email protected]> to=<[email protected]> This message forges the envelope sender. > Return-Path: <[email protected]> This message does not forge a local envelope sender (RFC2821.MAIL command). > Delivered-To: [email protected] > Message-ID: <[email protected]> > To: [email protected] > From: <[email protected]> It forges the header sender (RFC2822.From header). Note that your own post to this list will be Cc'd to your mailbox from outside, bearing your email address as the message author. (It will have the list as "RFC2822.Sender"). So you generally should not block external messages solely on the presence of a "From" address in one of your domains. -- Viktor.
