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 - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-01-2012, 09:58 AM   #1
charlesalle
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Rep: Reputation: Disabled
How to disable authenticated relay for specific accounts on Postfix ?


Hi,

I have to disable authenticated mail relay for two users on my Postfix running system but cannot figure out how this could be done.

These two users should be able to receive emails but not send mail through my Postfix.

Any help is greatly appreciated !

Many thanks
 
Old 07-02-2012, 03:57 AM   #2
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

I don't know how exactly, but maybe here you could find a solution
(under "Restricting what users can send mail to off-site destinations")

Here at LQ is a good postfix evaluation order listed.

Last edited by lithos; 07-02-2012 at 03:58 AM.
 
1 members found this post helpful.
Old 07-04-2012, 08:18 AM   #3
charlesalle
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi,

Many thanks for your answer. It is clearly the best and most precise answer I got from all the places I have posted to

I now have to check whether I can use this in my ISP-style setup without breaking anything (it's a prod system).
As the rest of the setup is MySQL based, I hope I can setup check_sender_access and check_recipient_access to get the results from MySQL too.

Like : check_sender_access = mysql:/etc/postfix/check-sender-access.cf

Code:
user = bla
password = bla
hosts = 127.0.0.1
dbname = mailserver
query = SELECT email FROM view_users WHERE email='%s'
Not sure how to build the query right now.

Thanks again !
 
  


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 + dovecot + TLS: can't relay for authenticated user gargunkle Linux - Software 4 10-19-2011 10:25 PM
Disable Postfix's body and header check for authenticated users pedrokoma Linux - Server 0 07-01-2011 09:04 AM
postfix: only accept relay mail from authenticated users eantoranz Linux - Server 3 10-04-2008 04:02 AM
disable sendmail relay check for authenticated users sunethj Linux - Server 0 08-14-2007 11:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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