Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Block External Relay to Local Domains 1

Status
Not open for further replies.

dthompson82

Technical User
Sep 3, 2007
13
AU
Hi everyone,

We are having some issues with users receiving emails from fake internal email addresses, from external servers.

What I want to do is stop external servers from being able to send to internal users, when they attempt to use an email address that is not a valid recipient or alias.

Currently the following scenario will work:
External server at 123.123.123.123 connects to our mail server and sends from fakeuser@our.domain.com.au to realuser@ourdomain.com.au.

If there a way to make PostFix check the FROM user when the specified domain is one of our locally defined domains?

Cheers.
 
I would try to filter this out on HELO phase -- require FQDN and reject everybody who wants to look like me, e.g.

Code:
smtpd_helo_restrictions =
  permit_mynetworks
  reject_non_fqdn_hostname
  reject_invalid_hostname
  check_helo_access hash:/etc/postfix/helo_access
  permit

File /etc/postfix/helo_access

Code:
our.domain.com.au REJECT
localhost REJECT
MY.IP.AD.RS REJECT

By the way, this is a good article on how to configure Postfix to filter out spam.

Cheers,


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top