LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-28-2005, 01:11 PM   #1
Chowroc
Member
 
Registered: Dec 2004
Posts: 145

Rep: Reputation: 15
Postfix, reject some system users?


With Postfix, I want to restrict some system users to be rejected while sending mail. I think I should disallow all users of the domain at first, then permit some in the db tables.

smtpd_sender_restrictons & smtpd_client_restrictions may be the very parameters to do this, so I configure:
Code:
/etc/postfix/main.cf:
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_access, reject
smtpd_client_restrictions = check_client_access hash:/etc/postfix/client_access, reject

/etc/postfix/sender_access:
/*@zouben.org/  REJECT

/etc/postfix/client_access:
zouben.org REJECT
But there is no effect?

Please tell me how to achieve this goal.

Thanks.
 
Old 01-28-2005, 01:26 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Did you make hashed files from the text files?

see man postmap
 
Old 01-28-2005, 03:58 PM   #3
Chowroc
Member
 
Registered: Dec 2004
Posts: 145

Original Poster
Rep: Reputation: 15
Yes, of course.

# postmap -q zouben.org client_access
REJECT
# postmap -q roc@zouben.org sender_access
...(nothing)

So I think the regular expression has some problems?
 
Old 02-01-2005, 07:54 AM   #4
Chowroc
Member
 
Registered: Dec 2004
Posts: 145

Original Poster
Rep: Reputation: 15
If config like this:
Code:
/etc/postfix/main.cf
smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/sender_access, reject

/etc/postfix/sender_access:
PERMIT_USER@DOMAIN.com       OK
This only has effect to the header.

For example, roc and Mu01 both the legal system user, so both of them can be authenticated by SASL. To Mu01, I use mutt + esmtp, and esmtp like this:
Code:
        hostname = mail.DOMAIN.com:25
        username = "Mu01"
        password = "PASS"
If Mu01 mail as:
FROM: Mu01@DOMAIN.com
He will been reject.

But if he mail as:
FROM: roc@DOMAIN.com
Well, he is permitted!

How can Postfix authorize access based on SASL authentication?

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to sort regular users and system users from /etc/passwd joeyBig Red Hat 9 05-29-2008 12:59 AM
how to add users to postfix? jabka Linux - General 2 11-05-2005 11:01 PM
Postfix/Unknown Users ]SK[ Linux - Software 1 07-05-2005 05:24 PM
Adding users in Postfix reesee Linux - Newbie 0 02-27-2004 08:56 PM
postfix aliases\users help nidputerguy Linux - Networking 11 02-08-2004 08:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration