LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-13-2013, 05:20 AM   #1
jon_the_eye
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Rep: Reputation: 0
Postfix- Stop Relaying for Specific Sending Domains


Hi List

We have setup a postfix server with Sasl and its all working fine.

We let a number of clients relay through us as we host their email on this and other servers. We do this as they often can't find their ISPs SMTP host details, or they are mobile and moving between networks.

We have been handing out a dummy user account, like "relay@localdomain" with a password, which is all working, even on port 587.

We have had a couple of clients leave, who are continuing using it. OK I could reset the password and wait for the phone to start ringing, but what I would like to do is block some "from" domains - even though they have successfully authenticated. Is this possible?

I tried adding a line to end of my main.cf
smtpd_sender_restrictions = hash:/etc/postfix/excustomers

the "excustomers" was a text file:
myoldcustomer.com REJECT

But the server stopped responding entirely on port 25.

Any help appreciated.
 
Old 02-13-2013, 05:29 AM   #2
jon_the_eye
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Original Poster
Rep: Reputation: 0
Hi

Ignore this post. I have just fixed it.

I forgot to postmap excustomers as it was looking for an excustomers.db file.

I have run a test and "Sender address rejected: Access denied"
 
  


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
Stop relaying with postfix samnjugu Linux - Server 4 06-25-2010 07:21 AM
Postfix as Sending MTA for Multiple Domains w1ckedj Linux - Server 5 06-13-2010 07:07 AM
Postfix: sending mail from multiple domains scgtrp Linux - Server 6 07-21-2009 11:49 AM
Postfix sending from different domains ssfrstlstnm Linux - Server 5 04-18-2007 08:10 AM

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

All times are GMT -5. The time now is 11:45 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