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 - 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-17-2006, 08:23 PM   #1
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
local_recipient_maps


hi there,

I'm using winbind to auth against Active Directory and a perl script to draw
down all the users with valid e-mail address from AD into a file
(/etc/postfix/usernames_forlocalmaps). I want only local users and the users
in that file to be able to receive mail, in my /etc/postfix/main.cf file at
the moment i have it set like this

local_recipient_maps = proxy:unixasswd.byname
hash:/etc/postfix/usernames_forlocalmaps

i have restart the postfix server, but i can still send mail to people that
arn't on that list.

for example my AD users are

paul
sarah
daniel

but only paul and sarah are in the list
'/etc/postfix/usernames_forlocalmaps' but i can still send mail to daniel

the format of my list is as follows

paul OK
sarah OK

can someone tell me what i'm doing wrong?
 
Old 01-23-2006, 09:29 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Did you postmap the file after making it?

Last edited by peter_robb; 01-23-2006 at 09:38 AM.
 
Old 01-23-2006, 04:06 PM   #3
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Original Poster
Rep: Reputation: 30
yes i did, but now the problem turns out to be squirrelmail, if i use another client, it will not send e-mails to anyone thats not on the list, so i don't think squirrel mail is using postfix.

i'm trying to get squirrel mail to use postfix so when a message is sent it goes via the 'local_recipient_maps' option in postfix first. but in the 'config/conf.pl' there is only an option of sendmail/SMTP i've set it to use SMTP, but that has no effect.
 
Old 01-23-2006, 04:13 PM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
If you've got "permit_mynetworks" in the smtpd_recipient_restrictions before the local_recipient_maps, it will always accept the sendmail executable as it's local. No more rules will be checked..

Who would be using SquirrelMail apart from local users?
 
Old 01-23-2006, 04:29 PM   #5
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Original Poster
Rep: Reputation: 30
i use winbind users, this is what i have done if your interested

http://www.yourhowto.org/content/view/25/9/
 
  


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
local_recipient_maps & postfix & text file paul_mat Linux - Networking 1 01-11-2006 07:38 AM

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

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