LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-13-2018, 09:57 AM   #1
Balistars1
LQ Newbie
 
Registered: Sep 2018
Posts: 6

Rep: Reputation: Disabled
Postfix and relaying for certain domains


Hi all,

I have an exchange server that is hosting a few domains email. Unfortunately the anti-spam features on exchange aren't particuarly great so i'm installing postfix and spamassasin to receive email, filter out spam and relay it to exchange.

I am using transport maps and a relay domains file to specify which domains i want to allow relaying for.

This appears to be working ok, however, if i telnet to the postfix server and try to send email to a domain that isn't in my relay domains file, it still tries to send the email and doesnt reject the relay.

Am I missing some extra config I need for this?

Many thanks
 
Old 09-14-2018, 03:09 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Sounds like yes.

Is your telnet test from a "trusted" sender? (mynetworks or logged in or such)

A "non-local" sender to a "non-local" recipient should be rejected by default (by 'reject_unauth_destination' directive).

You'll probably need to post some specific examples as the details matter.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix - securing relaying domains zohman Linux - Server 5 09-17-2015 08:39 AM
exim and smtp relaying for selected domains dp4qb Linux - Software 0 07-30-2014 12:44 AM
[SOLVED] Postfix- Stop Relaying for Specific Sending Domains jon_the_eye Linux - Server 1 02-13-2013 05:29 AM
Postfix Relaying trueguy2001_in Linux - Security 1 02-22-2006 02:03 PM
Postfix and relaying, help! Sizam Linux - Software 1 04-11-2005 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration