LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-05-2012, 09:06 PM   #1
JATA01
Member
 
Registered: Nov 2007
Posts: 207

Rep: Reputation: 15
Question 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
 
Old 07-06-2012, 01:54 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
so the log there clearly states an LDAP issue, no such object looking for o=seb...
 
Old 07-06-2012, 02:34 AM   #3
JATA01
Member
 
Registered: Nov 2007
Posts: 207

Original Poster
Rep: Reputation: 15
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
 
Old 07-06-2012, 02:54 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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"?
 
Old 07-06-2012, 06:21 AM   #5
JATA01
Member
 
Registered: Nov 2007
Posts: 207

Original Poster
Rep: Reputation: 15
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,
 
Old 07-06-2012, 08:29 AM   #6
JATA01
Member
 
Registered: Nov 2007
Posts: 207

Original Poster
Rep: Reputation: 15
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,
 
Old 07-10-2012, 04:35 AM   #7
JATA01
Member
 
Registered: Nov 2007
Posts: 207

Original Poster
Rep: Reputation: 15
Hi I am facing issue with rh-mail.schema on rhel6.1 for openldap.
Can you please provide some tips.

Thanks,
Shankar
 
Old 07-10-2012, 04:46 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
schemas - you already opened a new thread for that.

Postfix - there is no error there.
 
Old 07-15-2012, 12:23 AM   #9
JATA01
Member
 
Registered: Nov 2007
Posts: 207

Original Poster
Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Not getting mails in INBOX, postfix with squirrelmail in rhel6.1 JATA01 Linux - Enterprise 14 08-01-2012 02:00 AM
RHEL6 sendmail & postfix can't use local user travischen Linux - Software 1 07-03-2011 08:09 PM
local postfix server not able to send mails to other domain subramanyabs1984 Linux - Server 1 03-13-2009 05:27 AM
can send mails, can't recive them (mailscanner+postfix+dovecot) chuck_cts Linux - Networking 2 04-05-2008 08:10 AM
postfix/dovecot imap - sent messages stay local yogaboy Linux - Software 1 02-07-2007 12:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration