#1  
Old 27th April 2006, 13:48
mukta mukta is offline
Junior Member
 
Join Date: Apr 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix-users restriction

I have after 2 weeks of work(so I am not very clever) a Postfix server .
Thank you for your tutorials and I want to thank especialy to FALKO.
How can I have default users who cannot send external mails and how to set in main.cf users who have this rights?
Who can help me?I migrate from qmail cause I didn't succed there to make that diffrence to posfix wich I belive have more stuff built in...

I read and I tryed from :http://www.postfix.org/RESTRICTION_CLASS_README.html
to understand how to Restricting what users can send mail to off-site destinations BUT I am NOT too clever so ...

Thank you for those who will give me attention.

Last edited by mukta; 27th April 2006 at 14:05.
Reply With Quote
Sponsored Links
  #2  
Old 27th April 2006, 17:50
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Which tutorial did you follow (URL)?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 28th April 2006, 08:07
mukta mukta is offline
Junior Member
 
Join Date: Apr 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default tutorial

Actualy I finished with your tutorial http://www.howtoforge.com/virtual_po..._quota_courier and I have YOUR server.I had problems but with YOUR answers I solved every problem step by step..
So is it YOUR server(I started with other tutorials but finally...I am here)
The most importan part is to have a mail server with users limitations(smtp restrictions ).I tryed few months with qmail but I must write the authentication package there so I say better to migrate to postfix.

Thank you for your promtitude.

Last edited by mukta; 30th April 2006 at 12:12.
Reply With Quote
  #4  
Old 28th April 2006, 15:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Have you tried this from http://www.postfix.org/RESTRICTION_CLASS_README.html ?

Quote:
/etc/postfix/main.cf:
smtpd_recipient_restrictions =
check_sender_access hash:/etc/postfix/restricted_senders
...other stuff...

smtpd_restriction_classes = local_only
local_only =
check_recipient_access hash:/etc/postfix/local_domains, reject

/etc/postfix/restricted_senders:
foo@domain local_only
bar@domain local_only

/etc/postfix/local_domains:
this.domain OK matches this.domain and subdomains
that.domain OK matches that.domain and subdomains
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 28th April 2006, 15:17
mukta mukta is offline
Junior Member
 
Join Date: Apr 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default tryed

Falko if you read my 1st post you will see that I tryed.
I don't know how to combine your main.cf with those new lines....
I don't understand much in main.cf lines...
I will try again since you will answer again..

Thank you..
Reply With Quote
  #6  
Old 28th April 2006, 15:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Do this:
Code:
postconf -e 'smtpd_recipient_restrictions = check_sender_access hash:/etc/postfix/restricted_senders'
postconf -e 'smtpd_restriction_classes = local_only'
postconf -e 'local_only = check_recipient_access hash:/etc/postfix/local_domains, reject'
Then create the file /etc/postfix/restricted_senders which looks similar to this one:
Code:
foo@domain      local_only
bar@domain      local_only
Afterwards create /etc/postfix/local_domains which should look similar to this:
Code:
this.domain     OK
that.domain     OK
Then restart Postfix.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota... killfrog HOWTO-Related Questions 3 25th September 2009 22:45
Virtual Users + Domains With Postfix, Courier + MySQL (+SMTP-AUTH, SpamA, ClamAV) brianwc HOWTO-Related Questions 6 9th May 2007 03:44
Virtual users, domains Postfix.. & Squirrelmail laser144 HOWTO-Related Questions 6 5th May 2006 00:23
Problem with Virtual Users And Domains With Postfix, Courier And MySQL Howto fenix Server Operation 4 11th March 2006 03:53
Another Problem: Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP bluegrass Installation/Configuration 24 8th March 2006 02:41


All times are GMT +2. The time now is 12:12.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.