[Postfixbuch-users] Postfix und LDAP: Ich bin am Verzweifeln
Roland Kaeser
roli8200 at yahoo.de
Di Sep 27 12:23:12 CEST 2005
Hallo
Ich versuche nun schon seit Tagen (mit Hilfe des Buches und zahlreichen Beispielen)
postfix mit LDAP zum laufen zu bringen. OHNE JEGLICHEN ERFOLG. Kann mir jemand
helfen? Ich kriege immer Fehlermeldungen mit access problem:
///Services/Internet/intersoft-networks.ch/users/ISNAdmin/MailDir/,/Services/Internet/intersoft-networks.ch/users/ISNroland/MailDir/tmp/1127728748.P10049.jerusalem.intersoft-networks.ch:
Permission denied)
Sep 26 11:59:08 jerusalem postfix/virtual[10049]: warning: maildir access problem
for UID/GID=600/220: create
///Services/Internet/intersoft-networks.ch/users/ISNAdmin/MailDir/,/Services/Internet/intersoft-networks.ch/users/ISNroland/MailDir/tmp/1127728748.P10049.jerusalem.intersoft-networks.ch:
Permission denied
Der Clou dabei sollte sein, dass es mehrere Benutzer mit den selben
mailAlternateAddress gibt welche als Mail Gruppe zusammenarbeiten.
Bitte nicht schreiben dass ich das ändern müsste, denn ich arbeite jetzt schon
monate an einem web basierenden Administrationsfrontend welches diese Vorgehensweise
vorsieht.
Vielen Dank
Roland Kaeser
Hier die Konfiguration:
LDAP LDIF EINTRÄGE -----------------------------------------------------
dn: uid=ISNroland,ou=users,ou=isn,dc=intersoft-networks,dc=ch
cn: Roland Kaeser
sn: Roland
uid: ISNRoland
gecos: Roland Kaeser
mail: tadmin at intersoft-networks.ch
mailAlternateAddress: roland.kaeser at intersoft-networks.ch
mailAlternateAddress: info at intersoft-networks.ch
mailAlternateAddress: postmaster at intersoft-networks.ch
uidNumber: 660
homeDirectory: /Services/Internet/intersoft-networks.ch/users/ISNroland
mailMessageStore: /Services/Internet/intersoft-networks.ch/users/ISNroland/MailDir/
gidNumber: 200
shadowMax: 99999
shadowWarning: 7
shadowLastChange: 12416
loginShell: /bin/bash
ou: People
o: Sample Company
accountStatus: active
mailQuota: 2480000S
physicalDeliveryOfficeName: 101 College Parkway
employeeNumber: 12345
telephoneNumber: 410-555-1212
title: Not a Real Person
homePostalAddress: 1 Unix Way or the Hwy.
homePhone: 410-555-1212
userPassword: {md5}Xr4ilOzQ4PCOq3aQ0qbuaQ==
objectClass: top
objectClass: posixAccount
objectClass: shadowAccount
objectClass: account
objectClass: qmailuser
objectClass: couriermailaccount
objectClass: Person
objectClass: OrganizationalPerson
objectClass: inetOrgPerson
dn: uid=ISNAdmin,ou=users,ou=isn,dc=intersoft-networks,dc=ch
cn: ISN Admin
sn: ISN Admin
uid: ISN Admin
gecos: Roland Kaeser
mail: admin at intersoft-networks.ch
mailAlternateAddress: roland.kaeser at intersoft-networks.ch
mailAlternateAddress: info at intersoft-networks.ch
mailAlternateAddress: postmaster at intersoft-networks.ch
uidNumber: 660
homeDirectory: /Services/Internet/intersoft-networks.ch/users/ISNAdmin
mailMessageStore: /Services/Internet/intersoft-networks.ch/users/ISNAdmin/MailDir/
gidNumber: 200
shadowMax: 99999
shadowWarning: 7
shadowLastChange: 12416
loginShell: /bin/bash
ou: People
o: Sample Company
accountStatus: active
mailQuota: 2480000S
physicalDeliveryOfficeName: 101 College Parkway
employeeNumber: 12345
telephoneNumber: 410-555-1212
title: Not a Real Person
homePostalAddress: 1 Unix Way or the Hwy.
homePhone: 410-555-1212
userPassword: {md5}Xr4ilOzQ4PCOq3aQ0qbuaQ==
objectClass: top
objectClass: posixAccount
objectClass: shadowAccount
objectClass: account
objectClass: qmailuser
objectClass: couriermailaccount
objectClass: Person
objectClass: OrganizationalPerson
objectClass: inetOrgPerson
[BEISPIEL EINTRAG]
MAIN.CF--------------------------------------
# POSTFIX CONFIGURATION FILE
smtpd_banner = InterSoft Networks Mailserver, Version 2.0 ESMTP $mail_name
#Soft Bounce
soft_bounce = yes
# DIRECTORIES
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
sendmail_path = /usr/sbin/sendmail.postfix
mailq_path = /usr/bin/mailq.postfix
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.1.5/samples
readme_directory = /usr/share/doc/postfix-2.1.5/README_FILES
# MAIL OWNER
mail_owner = postfix
default_privs = nobody
setgid_group = postdrop
recipient_delimiter = ,
# INTERNET HOST AND DOMAIN NAMES
myhostname = www.intersoft-networks.ch
mydomain = intersoft-networks.ch
myorigin = $mydomain
mydestination = $myhostname, localhost, $mydomain, ldap:acceptdomains
mynetworks_style = subnet
mynetworks = 192.168.0.0/16,127.0.0.0/8
# Accept Domains
acceptdomains_server_host = localhost
acceptdomains_server_port = 389
acceptdomains_bind = yes
acceptdomains_version = 3
acceptdomains_bind_dn = uid=admin,dc=intersoft-networks,dc=ch
acceptdomains_bind_pw = secret
acceptdomains_base = dc=intersoft-networks,dc=ch
acceptdomains_search_base = dc=intersoft-networks,dc=ch
acceptdomains_scope = sub
acceptdomains_query_filter = (dns-domain=%s)
acceptdomains_result_attribute = dns-domain
# INTERFACES
inet_interfaces = all
#proxy_interfaces =
#proxy_interfaces = 1.2.3.4
# RELAY
relay_domains = $mydestination
relayhost = mail.shlink.ch
# SPAM CONTROL
header_checks = regexp:/etc/postfix/header_checks
body_checks = regexp:/etc/postfix/body_checks
smtpd_recipient_restrictions = permit_mynetworks
#smtpd_recipient_restrictions =
# permit_mynetworks,
# check_relay_domains,
# reject_unknown_sender_domain,
# reject_non_fqdn_sender,
# permit_mx_backup,
# reject_unauth_destination,
# reject_rbl_client relays.ordb.org,
# reject_rbl_client cbl.abuseat.org,
# reject_rbl_client list.dsbl.org,
# reject_rbl_client opm.blitzed.org,
# reject_rbl_client sbl.spamhaus.org,
# permit
smtpd_sasl_application_name = smtpd
smtpd_recipient_restrictions =
permit_mynetworks,check_relay_domains,permit_sasl_authenticated,reject_maps_rbl
smtpd_etrn_restrictions = permit_mynetworks
default_destination_concurrency_limit = 1
local_destination_concurrency_limit = 1
mailbox_transport = virtual:
mailbox_command = /usr/bin/procmail
mailbox_command_maps = ldap:accounts
local_recipient_maps = $alias_maps $virtual_mailbox_maps
# local_recipient_maps =
# VIRTUAL CONFIGURATION
virtual_maps = ldap:accountsmap
virtual_mailbox_base = /
virtual_mailbox_maps = ldap:accounts
virtual_maildir_extended = yes
accountsmap_server_host = localhost
accountsmap_bind_dn = uid=admin,dc=intersoft-networks,dc=ch
accountsmap_bind_pw = secret
accountsmap_version = 3
accountsmap_search_base = dc=intersoft-networks,dc=ch
accountsmap_query_filter = (&(objectClass=qmailUser)(mailAlternateAddress=%s))
accountsmap_result_attribute = mail
accountsmap_bind = yes
accounts_server_host = localhost
accounts_bind_dn = uid=admin,dc=intersoft-networks,dc=ch
accounts_version = 3
accounts_bind_pw = secret
accounts_search_base = dc=intersoft-networks,dc=ch
accounts_query_filter = (&(objectClass=qmailUser)(mail=%s))
accounts_result_attribute = mailMessageStore
accounts_bind = yes
# UID MAPPING
virtual_uid_maps = ldap:ldapuidnumber
ldapuidnumber_server_host = localhost
ldapuidnumber_server_port = 389
ldapuidnumber_bind = yes
ldapuidnumber_base = dc=intersoft-networks,dc=ch
ldapuidnumber_bind_dn = uid=admin,dc=intersoft-networks,dc=ch
ldapuidnumber_bind_pw = secret
ldapuidnumber_version = 3
ldapuidnumber_search_base = dc=intersoft-networks,dc=ch
ldapuidnumber_scope = sub
ldapuidnumber_query_filter = (&(|(mail=%s)(mailAlternateAddress=%s)))
ldapuidnumber_result_attribute = uidNumber
# GID MAPPING
virtual_gid_maps = ldap:ldapgidnumber
ldapgidnumber_server_host = localhost
ldapgidnumber_server_port = 389
ldapgidnumber_bind = yes
ldapgidnumber_base = dc=intersoft-networks,dc=ch
ldapgidnumber_bind_dn = uid=admin,dc=intersoft-networks,dc=ch
ldapgidnumber_bind_pw = secret
ldapgidnumber_version = 3
ldapgidnumber_search_base = dc=intersoft-networks,dc=ch
ldapgidnumber_scope = sub
ldapgidnumber_query_filter = (& (|(mail=%s)(mailAlternateAddress=%s)))
ldapgidnumber_result_attribute = gidNumber
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
Mehr Informationen über die Mailingliste Postfixbuch-users