On Fri May 8 2009 10:03:05 Hemanth Gopal wrote: > Any help will be appreciated.
First, please do not top-post your replies, as it makes the list archives much harder to follow. Consider your readers' time and convenience to be much more important than your own. Second, "Urgent" in the subject is IMO rather poor etiquette as per above, because it implies that your problem is more important than the time and expertise you are seeking here, without compensation. Third, your question was already answered ... > >> On Fri, May 08, 2009 at 06:55:03PM +0530, Hemanth Gopal wrote: > >>> I am facing issue with postfix -ldap implementation that even if > >>> i can search through ldap search given in the ldap login > >>> credentials provided in vaccounts.cf valias.cf vdomain.cf. > >>> Postfix still rejecting mails saying > >>> > >>> May 8 15:22:22 hydra postfix/smtpd[26744]: NOQUEUE: reject: RCPT > >>> from adsl147-187.lsf.forthnet.gr[79.103.78.187]: 550 5.1.1 > >>> <ven...@***.com>: Recipient address rejected: User unknown in > >>> local recipient table; ... to which was replied by Geert: > >> You have LDAP configured for virtual domains. The above user > >> unknown error message is for a local domain. > >> > >> Local domains are listed in "mydestination", virtual domains in > >> "virtual_mailbox_domains", check whether those lists are correct. > >> > >> This is documented in ADDRESS_CLASS_README. Hemanth: > >>> I am pasting my main.cf contents for your reference Geert: > >> PS: you should post complete `postconf -n` output rather than just > >> snippets from your main.cf file. And see, the snippet you showed us did not contain the relevant "mydestination" setting. main.cf: > >>> smtpd_helo_required = yes > >>> strict_rfc821_envelopes = yes > >>> smtpd_recipient_restrictions = permit_mynetworks, > >>> permit_sasl_authenticated,reject_unauth_destination > >>> smtpd_sasl_auth_enable = yes > >>> virtual_mailbox_base = /var/mail/vmail > >>> virtual_mailbox_limit = 1073741824 > >>> virtual_mailbox_domains = ldap:/etc/postfix/vdomain.cf > >>> virtual_mailbox_maps = ldap:/etc/postfix/vaccounts.cf > >>> virtual_alias_maps = ldap:/etc/postfix/valias.cf > >>> virtual_uid_maps = static:1001 > >>> virtual_gid_maps = static:1001 > >>> #relayhost = 0.0.0.0 The post with postconf(1) output: > On Fri, May 8, 2009 at 7:09 PM, Hemanth Gopal > <hemanthgo...@gmail.com> wrote: > > Thanks Geert > > > > Jamm+postfix implementation, I can search through mailboxes as per > > ldap details in the vdomain.cf, vaccounts.cf > > > > r...@hydra:/etc/postfix# postconf -n > > alias_database = hash:/etc/aliases > > alias_maps = hash:/etc/aliases > > append_dot_mydomain = no > > biff = no > > config_directory = /etc/postfix > > delay_warning_time = 4h > > inet_interfaces = all > > mailbox_size_limit = 1073741824 > > mydestination = hydra.domain.com, domain.com, localhost > > myhostname = hydra.domain.com > > mynetworks = 127.0.0.0/8, 192.168.200.0/24 > > myorigin = /etc/mailname > > recipient_delimiter = + > > smtp_tls_session_cache_database = > > btree:${queue_directory}/smtp_scache > > smtpd_banner = $myhostname > > smtpd_helo_required = yes > > smtpd_recipient_restrictions = permit_mynetworks, > > permit_sasl_authenticated,reject_unauth_destination > > smtpd_sasl_auth_enable = yes > > smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem > > smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key > > smtpd_tls_session_cache_database = > > btree:${queue_directory}/smtpd_scache smtpd_use_tls = yes > > strict_rfc821_envelopes = yes > > virtual_alias_maps = ldap:/etc/postfix/valias.cf > > virtual_gid_maps = static:1001 > > virtual_mailbox_base = /var/mail/vmail > > virtual_mailbox_domains = ldap:/etc/postfix/vdomain.cf > > virtual_mailbox_limit = 1073741824 > > virtual_mailbox_maps = ldap:/etc/postfix/vaccounts.cf > > virtual_uid_maps = static:1001 -- Offlist mail to this address is discarded unless "/dev/rob0" or "not-spam" is in Subject: header