Sei sulla pagina 1di 4

How to use Microsoft Active Directory with postfix : redflo.

de

http://redflo.de/tiki-index.php?page=How+to+use+Microsoft+Active+D...

User:

Password:

Login

Register

1 sur 4

01/05/2013 01:34

How to use Microsoft Active Directory with postfix : redflo.de

http://redflo.de/tiki-index.php?page=How+to+use+Microsoft+Active+D...

Login
Login as1 User: Password:

UNIX

How to use Microsoft Active Directory with postfix


Some of you might know: Microsoft AD is a LDAP ser er! So we can use it to erify if a emai" address e#ists! $his is es%ecia""y usefu" for mai"gateways! &irst we ha e to create a account for %ostfi#' (ecause the ADS does not a""ow anonymous (inds! I ca""ed it )%ostfi#) with %assword )*mai")! In this e#am%"e i assume that the AD Domainname is redf"o!de and that i created a oganisationa" unit +ou, )misc) where the %ostfi# user is "ocated! &urther i on"y want to acce%t mai" for the ou )staff)! in the -etc-%ostfi#-main!cf add-edit:
relay_recipient_maps = hash:/etc /postfix/relay_recipients, ldap:/etc/postfix/ldaprelay_recipients.cf

Flattr me!

Login

Register

Menu
2ome 3ontact Us Stats 3ategories

[-] Wiki [+]


4iki 2ome Last 3hanges Rankings List Pages 5r%han Pages Mu"ti%"e Print Structures

[-] Image Galleries [+] [-] File Galleries [+]

Last changes
7! 3ut 2D$6 8! Disa("e $hunder(ird Autoconfiguration 9! 2omePage *! 5rac"e :dk r%m on 5%ensuse ;! Linu# 6DR $i%s =! Linu# on De"" <=;9> @! $urn off System ?ee% on Linu# A! 4asserrakete B! 4hoIsRedf"o 7>! <rrors %rinting with cu%s !!!more

.ou can then add s%ecia" accounts in the "oca" ta("e -etc-%ostfi# -re"ay/reci%ients and a"so do "da% searches against your ADS! In the fi"e -etc-%ostfi#-"da%0 re"ay/reci%ients!cf you %ut something "ike this:
server_host = ads-server.redflo.de version = 3 search_base = ou=staff,dc=redflo,dc=de query_filter = (&(objectClass=user)(mail=%s)) result_attribute = mail bind_dn = cn=postfix,ou=misc,dc=redflo,dc=de bind_pw = 4mail

$est your %ostfi# ser er:


telnet postfix-server.redflo.de 25

220 postfix-server.redflo.de ESMTP Postfix

2 sur 4

01/05/2013 01:34

How to use Microsoft Active Directory with postfix : redflo.de

http://redflo.de/tiki-index.php?page=How+to+use+Microsoft+Active+D...

ehlo bla.de 250-postfix-server.redflo.de 250-PIPELINING 250-SIZE 102400000 250-VRFY 250-ETRN 250 8BITMIME

mail from: <test@bla.de> 250 Ok

rcpt to: <someone@redflo.de> 250 Ok

rcpt to: <noone@redflo.de> 550 <noone@redflo.de>: Recipient address rejected: User unknown in relay recipient table

<rrors shou"d go to - ar-"og-mai" or simi"ar! .ou can a"so use a secure connection to your ADS Ser er! See )man "da%/ta("e)

3reated (y admin! Last Modification: 4ednesday 7* of Decem(er' 8>>; 7;:>=:9@ U$3 (y admin! 3ategory: UNIX Wiki Page: How To Use Microsoft Active irector! Wit" Postfi# I$serti$g T"e First %&'ect I$ (o)r *+a, irector! I$stalli$g T"e Mails!stem Packages I$tegrati$g * AP I$ (o)r U$i# -!stem I$tro+)ctio$ .er&eri/i$g .a+mi$ .er&eri/i$g -s"+ .er&eros -et), * AP * AP -c"ema Files *oggi$g Motivatio$ 0ss1l+a, -ec)rit! %,e$* AP 2o$fig Files %t"er oc)me$tatio$ Performi$g A First *+a, 3)er! PerfParse Po,)lati$g T"e irector! Postfi# A$+ 2!r)s Ima,+ A$+ .er&eros A$+ * AP -etti$g U, A .er&eros 2lie$t Mac"i$e -etti$g U, (o)r .er&eros -ervers -I$gle -ig$ %$ 4--%5 First Tr! --% A$+ 2e$tral

3 sur 4

01/05/2013 01:34

How to use Microsoft Active Directory with postfix : redflo.de

http://redflo.de/tiki-index.php?page=How+to+use+Microsoft+Active+D...

A+mi$istratio$ Wit" .er&eros A$+ * AP -tart T"e .er&eros -ervers T"e 2o$fig)ratio$ Files T"e 0ame -ervice -witc" Tweak Pam U$+ersta$+i$g .er&eros U$+ersta$+i$g .er&eros Pt6 7 We&server -tress Test Tools W"at Is * AP8 W"at T"e Heck Is Pam8 W"at We 0ee+ W"at We Wa$t A)+ie$ce A)t"e$ticati$g 9as" -cri,t Wit" Timeo)t F)$ctio$ 2"eck Processes 2"eck (o)r I$stallatio$ 2"oosi$g A :ealm 2o$fig)re (o)r Mail 2lie$t 2o$fig)ri$g A$+ U$+ersta$+i$g Pam 2o$fig)ri$g 2!r)s Ima,+ 2o$fig)ri$g Postfi# 2o$$ect To .a+mi$+ A$+ Have A *ook I$to T"e ata&ase 2reati$g T"e .er&eros ata&ase ;+it T"e .er&eros A+mi$ -erver A2* 2o$fig ;+it T"e .er&eros 2lie$t 2o$fig File ;+it T"e .er&eros -erver 2o$fig File ;#c)rs)s To Pri$ci,als ;#,lori$g -c"emas Fig"t Image -,am Fig"t -,am 9est Practice A++i$g A Gro), A++i$g Pri$ci,als A$+ A)t"e$ticati$g A$ot"er Pri$ci,al 0ss Wit" -olaris <= -erial2o$sole

4iki

Image Ca""eries

&i"e Ca""eries

Powered (y $iki4iki 3MS-Crou%ware D $heme: Strasa E <#ecution time: >!7* secs F E Memory usage: *!A8M? F E 9; data(ase Gueries used in >!> secs F E Ser er "oad: >!>; F

4 sur 4

01/05/2013 01:34

Potrebbero piacerti anche