LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-31-2016, 11:55 AM   #1
enricopalazzo
LQ Newbie
 
Registered: Jan 2016
Posts: 4

Rep: Reputation: Disabled
Postfix - simple restrictions for distributions list, only dedicated accounts


Hello everyone !

Actually I'm working with Postfix server on Debian and trying to implement distribution list with simple restrictions.

My assumptions:
1. I created alias:
managers@mydomain.com -> manager1@mydomain.com, manager2@mydomain.com, manager3@mydomain.com

2. I want to restrict managers@mydomain.com to let writing messages to it only by:
boss@mydomain.com
manager2@mydomain.com


FILE main.cf:

Code:
...
smtpd_recipient_restrictions =
    permit_sasl_authenticated,
    permit_mynetworks,
...
    check_sender_access hash:/etc/postfix/access,
...
    permit
FILE /etc/postfix/access:
Code:
...
managers@mydomain.com	managers_sender_list
...
FILE managers_sender_list:
Code:
boss@mydomain.com 
manager2@mydomain.com
As I wrote before, my intention is to let only addresses from managers_sender_list to write to managers@mydomain.com
The settings above works only conversely, that means accounts from managers_sender_list don't have access to
address:managers@mydomain.com
I could of course input most of mine accounts starting from worker1@mydomain.com to worker500@mydomain.com which is more time consuming, needs changes with every new account and still doesn't block senders from outside.
The question is: how to implement these assumptions properly ?
 
Old 02-06-2016, 05:55 AM   #2
enricopalazzo
LQ Newbie
 
Registered: Jan 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
What is the best way to secure your distribution list in postfix server ?
 
Old 02-08-2016, 04:23 AM   #3
enricopalazzo
LQ Newbie
 
Registered: Jan 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
This is workaround that actually works:

1. Additional account + Filters (managesieve) in RoundCube.
2. edit according to needs:
Code:
/etc/dovecot/conf.d/90-sieve.conf
set:
Code:
sieve_max_redirects = 100
sieve_max_actions = 200
If someone have better solution, please share below.
 
  


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
Create a simple mailing list with Postfix aliases? kikinovak Slackware 4 11-06-2015 10:13 AM
Postfix recipient restrictions r1sh Linux - Server 1 06-12-2015 01:10 AM
Postfix recipient restrictions.... aaron.anderson Linux - Server 2 12-11-2010 02:53 PM
PostFix - List all accounts allancth Linux - Software 9 03-31-2010 08:01 AM
Postfix user restrictions Givi Linux - Server 1 11-20-2006 06:09 AM

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

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