OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: Unknown User

From: sam wun (sam.wunauthtec.com)
Date: Thu Jun 02 2005 - 00:41:31 CDT


sam wun wrote:

> sam wun wrote:
>
>>
>> Hi,
>>
>>
>>
>> I just setup postfix + openldap in freebsd.
>>
>> I m getting the following error when I tried to send an email from
>> yahoo to my local email server.
>>
>> Jun 2 11:21:44 mail02 postfix/virtual[787]: 668196180:
>> to=<xxx.yyymydomain.com>, relay=virtual, delay=1, status=bounced
>> (unknown user: "xxx.yyymydomain.com")
>> I have setup postfix with the following main.cf file:
>> alias_database = hash:/usr/local/etc/poastfix/aliases
>> alias_maps = hash:/usr/local/etc/postfix/aliases
>> broken_sasl_auth_clients = yes
>> command_directory = /usr/local/sbin
>> config_directory = /usr/local/etc/postfix
>> daemon_directory = /usr/local/libexec/postfix
>> home_mailbox = Maildir/
>> html_directory = no
>> local_recipient_maps =
>> local_transport = virtual
>> mail_owner = postfix
>> mailq_path = /usr/local/bin/mailq
>> manpage_directory = /usr/local/man
>> message_size_limit = 5242880
>> mydestination = $mydomain localhost.mydomain.com
>> mydomain = mydomain.com
>> myhostname = mail02.mydomain.com
>> mynetworks = 127.0.0.1, 10.8.0.0/16
>> newaliases_path = /usr/local/bin/newaliases
>> readme_directory = no
>> relay_domains = $myhostname
>> sample_directory = /usr/local/etc/postfix
>> sendmail_path = /usr/local/sbin/sendmail
>> setgid_group = maildrop
>> smtpd_client_restrictions = permit_sasl_authenticated
>> smtpd_recipient_restrictions = permit_sasl_authenticated
>> permit_auth_destination reject
>> smtpd_sasl_auth_enable = yes
>> smtpd_sasl_security_options = noanonymous
>> virtual_create_maildirsize = yes
>> virtual_gid_maps = static:80
>> virtual_mailbox_base = /usr/local/vmail
>> virtual_mailbox_limit_maps = ldap:mailquota
>> virtual_mailbox_limit_override = yes
>> virtual_mailbox_maps = ldap:mailuser
>> virtual_maildir_extended = yes
>> virtual_minimum_uid = 80
>> virtual_transport = virtual
>> virtual_uid_maps = static:80
>>
> Hi, I just added "local_recipient_maps = $virtual_mailbox_maps" in the
> main.cf file. Now it gets another error:
> 550 <xxx.yyymydomain.com>: Recipient address rejected: User unknown
> in local recipient table;
> from=<phpldapadmin-users-adminlists.sourceforge.net>
> to=<xxx.yyymydomain.com> proto=ESMTP
> helo=<lists-outbound.sourceforge.net>
> Jun 2 12:26:28 mail02 postfix/smtpd[1166]: disconnect from
> lists-outbound.sourceforge.net[66.35.250.225]
> Jun 2 12:26:37 mail02 postfix/smtpd[1166]: connect from
> bz4.apple.com[17.254.13.39]
> Jun 2 12:26:37 mail02 postfix/smtpd[1166]: NOQUEUE: reject: RCPT from
> bz4.apple.com[17.254.13.39]: 550 <xxx.yyymydomain.com>: Recipient
> address rejected: User unknown in local recipient table;
> from=<cocoa-dev-bounces+xxx.yyy=mydomain.comlists.apple.com>
> to=<xxx.yyymydomain.com> proto=ESMTP helo=<bz4.apple.com>
> Jun 2 12:26:40 mail02 postfix/smtpd[1166]: disconnect from
> bz4.apple.com[17.254.13.39]
>
When I looked at the ldap log file, I found the following error
indicating ldap failed to allocate the user:
Jun 2 13:39:48 mail02 slapd[482]: conn=70 op=6 SRCH attr=mailMessageStore
Jun 2 13:39:48 mail02 slapd[482]: <= bdb_equality_candidates: (mail)
index_param failed (18)
Jun 2 13:39:48 mail02 slapd[482]: <= bdb_equality_candidates:
(userStatus) index_param failed (18)
Jun 2 13:39:48 mail02 slapd[482]: conn=70 op=6 SEARCH RESULT tag=101
err=0 nentries=0 text=

I m really stuck now. How can I fix this error?
thanks
Sam

> Sam
>
>> The postfix/virtual file is empty.
>>
>> I had done some testing using local telnet to 110 and 25 and both
>> works fine.
>>
>> Your suggestion to solve this problem is highly regarded.
>>
>> Thanks
>> Sam
>>