LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   postfix+dovecot in rhel6.1 not getting local mails (http://www.linuxquestions.org/questions/linux-server-73/postfix-dovecot-in-rhel6-1-not-getting-local-mails-4175415154/)

JATA01 07-05-2012 09:06 PM

postfix+dovecot in rhel6.1 not getting local mails
 
Hi,
I am trying to configure postfix+dovecot+squirrelmail and user will get authenticated with openldap. I am not able to send mails even locally.

[root@mail ~]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases, ldap:/etc/postfix/ldap-aliases.cf
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = 172.16.23.0/24, 127.0.0.0/8, $myhostname, localhost.$mydomain, localhost, $mydomain, mail.cseb.gov.in
mydomain = cseb.gov.in
myhostname = mail.cseb.gov.in
mynetworks = 172.16.23.0/24, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $banner
smtpd_sasl_type = dovecot
unknown_local_recipient_reject_code = 550
==================

Jul 6 07:23:13 mail postfix/qmgr[4464]: 1CD298008D1: from=<root@cseb.gov.in>, si ze=426, nrcpt=1 (queue active)
Jul 6 07:23:13 mail postfix/local[22357]: warning: dict_ldap_lookup: /etc/postfi x/ldap-aliases.cf: Search base 'o=cseb' not found: 32: No such object
Jul 6 07:23:13 mail postfix/local[22357]: 1CD298008D1: to=<root@cseb.gov.in>, re lay=local, delay=0.09, delays=0.07/0.01/0/0.01, dsn=4.3.0, status=deferred (alias database unavailable)


Expert advice required to come out this issue.

Thanks,
Shanakr

acid_kewpie 07-06-2012 01:54 AM

so the log there clearly states an LDAP issue, no such object looking for o=seb...

JATA01 07-06-2012 02:34 AM

Hi Chris,

[root@mail ~]# ldapsearch -x -b "cn=Manager,o=cseb"
# extended LDIF
#
# LDAPv3
# base <cn=Manager,o=cseb> with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# search result
search: 2
result: 32 No such object

# numResponses: 1

user will get authenticate via openldap. I am not able to find the exact issue in ldap.

Thanks,
Shankar

acid_kewpie 07-06-2012 02:54 AM

well you haven't set up openldap... notably I can't see a domain, should you not be looking for "cn=Manager,o=seb,dc=example,dc=com"?

JATA01 07-06-2012 06:21 AM

Hi,

Now I can find the 2 entries but how can I add users with attributes?


[root@mail openldap]# ldapsearch -x
# extended LDIF
#
# LDAPv3
# base <ou=people,o=cseb> (default) with scope subtree
# filter: (objectclass=*)
# requesting: ALL
#

# people, cseb
dn: ou=people,o=cseb
ou: people
description: Email Users
objectClass: organizationalUnit

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1
[root@mail openldap]# cat Usertest.ldif
dn: o=cseb
objectclass: organization
o: cseb

dn: ou=people,o=cseb
ou: people
description: Email Users
objectclass: organizationalUnit

[root@mail openldap]# slapcat
dn: o=cseb
objectClass: organization
o: cseb
structuralObjectClass: organization
entryUUID: f879f97c-5ba3-1031-9f39-194e6ee19cc0
creatorsName: cn=Manager,o=cseb
createTimestamp: 20120706104914Z
entryCSN: 20120706104914.036226Z#000000#000#000000
modifiersName: cn=Manager,o=cseb
modifyTimestamp: 20120706104914Z

dn: ou=people,o=cseb
ou: people
description: Email Users
objectClass: organizationalUnit
structuralObjectClass: organizationalUnit
entryUUID: f882c868-5ba3-1031-9f3a-194e6ee19cc0
creatorsName: cn=Manager,o=cseb
createTimestamp: 20120706104914Z
entryCSN: 20120706104914.093953Z#000000#000#000000
modifiersName: cn=Manager,o=cseb
modifyTimestamp: 20120706104914Z

[root@mail openldap]#


Thanks,

JATA01 07-06-2012 08:29 AM

Hi,


Now I have created one ldapuser and try to send mail but getting below error.

Jul 6 17:34:32 mail postfix/local[28245]: 80BE81A000284: to=<root@cseb.gov.in>, relay=local, delay=0.11, delays=0.01/0.09/0/0.02, dsn=2.0.0, status=sent (delivered to maildir)
Jul 6 17:34:32 mail postfix/qmgr[8525]: 80BE81A000284: removed
Jul 6 17:38:20 mail postfix/pickup[28496]: 33F26670001D8: uid=0 from=<root>
Jul 6 17:38:20 mail postfix/cleanup[547]: 33F26670001D8: message-id=<20120706120820.33F26670001D8@mail.cseb.gov.in>
Jul 6 17:38:20 mail postfix/cleanup[547]: warning: file system clock is 23 seconds ahead of local clock
Jul 6 17:38:20 mail postfix/cleanup[547]: warning: resetting file time stamps - this hurts performance
Jul 6 17:38:20 mail postfix/qmgr[8525]: 33F26670001D8: from=<root@cseb.gov.in>, size=431, nrcpt=1 (queue active)
Jul 6 17:38:20 mail postfix/local[549]: 33F26670001D8: to=<jhajata@cseb.gov.in>, relay=local, delay=0.13, delays=0.07/0.01/0/0.05, dsn=2.0.0, status=sent (delivered to maildir)
Jul 6 17:38:20 mail postfix/qmgr[8525]: 33F26670001D8: removed


Kindly advice.

Thanks,

JATA01 07-10-2012 04:35 AM

Hi I am facing issue with rh-mail.schema on rhel6.1 for openldap.
Can you please provide some tips.

Thanks,
Shankar

acid_kewpie 07-10-2012 04:46 AM

schemas - you already opened a new thread for that.

Postfix - there is no error there.

JATA01 07-15-2012 12:23 AM

Hi,

Openldap schema has been resolved, but when trying to login with ldapuser on squirrelmail getting below error.

ERROR:
ERROR: Connection dropped by IMAP server.


and /var/log/maillog

Jul 15 09:44:00 mail postfix/cleanup[9000]: 1DE084E0008EB: message-id=<20120715041400.1DE084E0008EB@mail.c seb.gov.in>
Jul 15 09:44:00 mail postfix/cleanup[9000]: warning: dict_ldap_lookup: virtualforward: Search base '' not found: 32: No such object
Jul 15 09:44:00 mail postfix/cleanup[9000]: warning: 1DE084E0008EB: virtual_alias_maps map lookup problem for root@cseb.gov.in
Jul 15 09:44:00 mail postfix/cleanup[9000]: warning: 1DE084E0008EB: virtual_alias_maps map lookup problem for root@cseb.gov.in
Jul 15 09:44:26 mail dovecot: imap-login: Error: Timeout waiting for handshake from auth server. my pid=31 376, input bytes=0
Jul 15 09:44:26 mail dovecot: auth: Fatal: LDAP: No base given
Jul 15 09:44:26 mail dovecot: master: Error: service(auth): command startup failed, throttling
Jul 15 09:45:00 mail postfix/pickup[7558]: 1F7D84E8008EB: uid=0 from=<root>
Jul 15 09:45:00 mail postfix/cleanup[9000]: 1F7D84E8008EB: message-id=<20120715041500.1F7D84E8008EB@mail.cseb.gov.in>
Jul 15 09:45:00 mail postfix/cleanup[9000]: warning: dict_ldap_lookup: virtualforward: Search base '' not found: 32: No such object
Jul 15 09:45:00 mail postfix/cleanup[9000]: warning: 1F7D84E8008EB: virtual_alias_maps map lookup problem for root@cseb.gov.in
Jul 15 09:45:01 mail dovecot: imap-login: Error: Timeout waiting for handshake from auth server. my pid=31 376, input bytes=0

Thanks,
Shankar


All times are GMT -5. The time now is 12:44 PM.