>    -----Original Message-----
>    From: owner-postfix-us...@postfix.org [mailto:owner-postfix-
>    us...@postfix.org] On Behalf Of mouss
>    Sent: Sunday, August 15, 2010 3:53 PM
>    To: postfix-users@postfix.org
>    Subject: Re: Problem with Postfix and LDAP...
>    
>      Le 15/08/2010 20:09, Christopher Kurtis Koeber a écrit :
>    >>     [snip]
>    > [Christopher Kurtis Koeber]
>    >
>    > I turned on verbose debugging to pinpoint the error but what
>    logging level
>    > would you like me to use.
>    
>    no debugging. that is: no "-v" option and no debug_peer option.

[Christopher Kurtis Koeber] 

Ok, made the change and here is the output now:

------------------------------------------------------------------

Aug 15 16:32:13 WTS-ZIMBRA postfix/smtpd[18615]: warning: database
/etc/mail/aliases.db is older than source file /etc/mail/aliases
Aug 15 16:32:13 WTS-ZIMBRA postfix/smtpd[18615]: sql_select option missing
Aug 15 16:32:13 WTS-ZIMBRA postfix/smtpd[18615]: auxpropfunc error no
mechanism available
Aug 15 16:32:13 WTS-ZIMBRA postfix/smtpd[18615]: _sasl_plugin_load failed on
sasl_auxprop_plug_init for plugin: sql
Aug 15 16:32:13 WTS-ZIMBRA postfix/smtpd[18615]: auxpropfunc error invalid
parameter supplied
Aug 15 16:32:13 WTS-ZIMBRA postfix/smtpd[18615]: _sasl_plugin_load failed on
sasl_auxprop_plug_init for plugin: ldapdb
Aug 15 16:32:13 WTS-ZIMBRA postfix/smtpd[18615]: initializing the
server-side TLS engine
Aug 15 16:32:13 WTS-ZIMBRA postfix/smtpd[18615]: connect from
wts-termserver.wesleysem.edu[10.10.1.163]
Aug 15 16:32:46 WTS-ZIMBRA postfix/smtpd[18615]: 248B53220E2:
client=wts-termserver.wesleysem.edu[10.10.1.163]
Aug 15 16:32:57 WTS-ZIMBRA postfix/cleanup[18619]: 248B53220E2:
message-id=<>
Aug 15 16:32:57 WTS-ZIMBRA postfix/qmgr[18608]: 248B53220E2:
from=<ckoe...@wesleyseminary.edu>, size=288, nrcpt=1 (queue active)
Aug 15 16:32:57 WTS-ZIMBRA postfix/virtual[18620]: 248B53220E2:
to=<dbayasekara8...@wts-zimbra.wesleysem.edu>,
orig_to=<dbayasekara8...@students.wesleyseminary.edu>, relay=virtual,
delay=23, delays=23/0.03/0/0.08, dsn=5.1.1, status=bounced (unknown user:
"dbayasekara8...@wts-zimbra.wesleysem.edu")
Aug 15 16:32:57 WTS-ZIMBRA postfix/cleanup[18619]: A07D23220E3:
message-id=<20100815203257.a07d2322...@wts-zimbra.wesleysem.edu>
Aug 15 16:32:57 WTS-ZIMBRA postfix/qmgr[18608]: A07D23220E3: from=<>,
size=2380, nrcpt=1 (queue active)
Aug 15 16:32:57 WTS-ZIMBRA postfix/bounce[18621]: 248B53220E2: sender
non-delivery notification: A07D23220E3
Aug 15 16:32:57 WTS-ZIMBRA postfix/qmgr[18608]: 248B53220E2: removed
Aug 15 16:32:57 WTS-ZIMBRA postfix/smtp[18622]: A07D23220E3:
to=<ckoe...@wesleyseminary.edu>,
relay=mail.wesleyseminary.edu[10.10.1.154]:25, delay=0.32,
delays=0.02/0.03/0.01/0.26, dsn=2.6.0, status=sent (250 2.6.0
<20100815203257.a07d2322...@wts-zimbra.wesleysem.edu> Queued mail for
delivery)
Aug 15 16:32:57 WTS-ZIMBRA postfix/qmgr[18608]: A07D23220E3: removed
Aug 15 16:32:59 WTS-ZIMBRA postfix/smtpd[18615]: disconnect from
wts-termserver.wesleysem.edu[10.10.1.163]

------------------------------------------------------------------
 
>    
>    > In any case, I made the changes you suggested and the error has
>    reappeared.
>    > I attached the log. The
>    > log is verbose but if you tell me the level (or command that
>    should be used
>    > instead I will do so).
>    
>    run the following command (on a single line):
>    
>    postmap -q dbayasekara8...@wts-zimbra.wesleysem.edu
>    ldap:/etc/postfix/ldap-maps.cf
>    
>    if it returns nothing, then the user is not found in your ldap.
>    
>    

[Christopher Kurtis Koeber] 

OK, your original command shows nothing but I am tring to send mail to
"students.wesleyseminary.edu" which is defined in
my virtual_mailbox_domains.cf file. I will post the outputs of the command
and my postconf -n below:

postmap outputs:

------------------------------------------------------------------
# postmap -q dbayasekara8...@wts-zimbra.wesleysem.edu
ldap:/etc/postfix/ldap-maps.cf
# postmap -q dbayasekara8...@students.wesleyseminary.edu
ldap:/etc/postfix/ldap-maps.cf
/home/studentemail/students.wesleyseminary.edu/dbayasekara8469
------------------------------------------------------------------

Postconf -n:

------------------------------------------------------------------
alias_maps = hash:/etc/mail/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib64/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 20
home_mailbox = .Maildir/
html_directory = /usr/share/doc/postfix-2.6.6/html
inet_interfaces = all
local_destination_concurrency_limit = 2
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
local_transport = virtual
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination =
mydomain = wts-zimbra.wesleysem.edu
myhostname = wts-zimbra.wesleysem.edu
mynetworks_style = subnet
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/readme
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks,  reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_cert_file = /etc/postfix/newcert.pem
smtpd_tls_key_file = /etc/postfix/newkey.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps = ldap:/etc/postfix/ldap-aliases.cf
virtual_gid_maps = static:$studentemail-gid
virtual_mailbox_base = /home/studentemail/
virtual_mailbox_domains = /etc/postfix/virtual_domains.cf
virtual_mailbox_maps = ldap:/etc/postfix/ldap-maps.cf
virtual_minimum_uid = 1000
virtual_uid_maps = static:$studentemail-uid
------------------------------------------------------------------

So the questions I have are (1) what do I need to do to send mail to the
domains defined in virtual_domains.cf
and (2) how can I get get the lookups via LDAP working for the domains
defined in that file?

Thank you for your time.

>    
>    [snip]

Reply via email to