On Thursday, March 19, 2009 at 20:28 CET,
"David A. Gershman" <[email protected]> wrote:
> I've been getting spam messages passing through my server because they
> are "from" a local user account (spoofed). However, the connection
> came from an external source. I'm trying to see if there is a setting
> in master.cf (or other .cf file) which will reject any email from an
> external IP (other than my own) *and* is claiming to be from a local
> user account.
Assuming you mean envelope sender address when you say "from":
main.cf:
smtpd_sender_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
check_sender_access hash:/path/to/file
/path/to/file:
example.com REJECT
--
Magnus Bäck
[email protected]