|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Postfix LDAP all
domain trouble
From: Anders Bruun Olsen (anders
bruun-olsen.net)
Date: Tue May 20 2003 - 05:51:21 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
I have setup a server with Postfix and OpenLDAP which so far seems to
work. I do however need an all
mydomain.tld address which is delivered
to all addresses at the domain.
I have a mail attribute in my ldap directory which can be defined
multiple times so that one account can have multiple addresses attached
to it. That works nicely, except when multiple accounts have the same
address defined for them - which is how I had hoped to make the
all
mydomain.tld address. When more than one account has
all
mydomain.tld defined in their mail attributes the emails sent to
that address disappear completely. The logfiles tells me that they are
delivered, but they aren't in any of the accounts.
How can I define an all
mydomain.tld address so that it works?
Part of my main.cf:
myhostname = host.mydomain.tld
mydomain = mydomain.tld
myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain, $mydomain
# aliases and virtual stuff
virtual_alias_maps = ldap:ldapaliases
virtual_alias_domains = ldap:ldapaliases
alias_maps = ldap:ldapaliases
virtual_minimum_uid = 1
virtual_uid_maps = static:8
virtual_gid_maps = static:100
virtual_mailbox_base = /var/spool/mail
virtual_result_attribute = mailbox
virtual_mailbox_maps = ldap:ldapsource
virtual_maildir_extended = yes
virtual_recipient_maps = ldap:ldapsource
# mails from the old main mailserver are forwarded to this one, be
# verbose when mails arrive from that one.
debug_peer_level = 2
debug_peer_list = mail.mydomain.tld
delay_warning_time = 4
ldapaliases_timeout = 10
ldapaliases_server_host = ldap.mydomain.tld
ldapaliases_server_port = 389
ldapaliases_search_base = ou=accounts,dc=mydomain,dc=tld
ldapaliases_query_filter = (mail=%s)
ldapaliases_domain = mydomain.tld
ldapaliases_result_attribute = mailForwardingAddress
ldapaliases_bind = yes
ldapaliases_bind_dn = cn=postfix,ou=daemons,dc=mydomain,dc=tld
ldapaliases_bind_pw = skummel
ldapsource_timeout = 10
ldapsource_server_host = ldap.mydomain.tld
ldapsource_search_base = ou=accounts,dc=mydomain,dc=tld
ldapsource_server_port = 389
ldapsource_domain = dsl.dk
ldapsource_query_filter = (mail=%s)
ldapsource_result_attribute = mailbox
ldapsource_bind = yes
ldapsource_bind_dn = cn=postfix,ou=daemons,dc=mydomain,dc=tld
ldapsource_bind_pw = skummel
Example of an LDAP entry:
dn: uid=abo,ou=accounts,dc=mydomain,dc=tld
objectClass: top
objectClass: qmailUser
objectClass: CourierMailAccount
objectClass: hordePerson
objectClass: sambaAccount
uid: abo
mailMessageStore: /var/spool/mail/abo/Maildir
homeDirectory: /var/spool/mail/abo
mailQuota: 200000000S, 20000C
mailHost: mail.mydomain.tld
uidNumber: 8
gidNumber: 100
mailbox: abo/Maildir/
cn: Anders Bruun Olsen
rid: 23666
mail: abo
host.mydomain.tld
mail: abo
mydomain.tld
mail: all
host.mydomain.tld
mail: all
mydomain.tld
--
Anders
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/O d--
s:+ a-- C++ $UL+++ P++ L+++ E- W+ N(+) o K? w O- M-- V
PS+ PE
Y+ PGP+ t 5 X R+ tv+ b+ DI+++ D+ G e- h !r y?
------END GEEK CODE BLOCK------
PGPKey: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8BFECB41
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]