LinuxQuestions.org
Visit Jeremy's Blog.
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 09-02-2016, 03:27 AM   #1
deva420patra
LQ Newbie
 
Registered: Apr 2016
Posts: 29

Rep: Reputation: Disabled
Connection Dropped by IMAP Server


Dear Team

I am getting above eeror using squirrel mail.
My mail servers are showing below error logs:

Sep 2 13:51:49 mailsrv4 postfix/trivial-rewrite[2914]: warning: dict_ldap_connect: Unable to bind to server ldap://MailWebSrv1:389 as cn=manager,dc=nabardmail,dc=co,dc=in: -5 (Timed out)
Sep 2 13:51:49 mailsrv4 postfix/trivial-rewrite[2914]: fatal: ldap:/etc/postfix/ldap-aliases.cf(0,lock|fold_fix): table lookup problem
Sep 2 13:51:49 mailsrv4 postfix/trivial-rewrite[2916]: warning: dict_ldap_connect: Unable to bind to server ldap://MailWebSrv1:389 as cn=manager,dc=nabardmail,dc=co,dc=in: -5 (Timed out)
Sep 2 13:51:49 mailsrv4 postfix/trivial-rewrite[2916]: fatal: ldap:/etc/postfix/ldap-aliases.cf(0,lock|fold_fix): table lookup problem
Sep 2 13:51:50 mailsrv4 postfix/master[7514]: warning: process /usr/libexec/postfix/trivial-rewrite pid 2914 exit status 1
Sep 2 13:51:50 mailsrv4 postfix/smtpd[32467]: warning: problem talking to service rewrite: Connection reset by peer
Sep 2 13:51:50 mailsrv4 postfix/smtpd[2349]: warning: problem talking to service rewrite: Success
Sep 2 13:51:50 mailsrv4 postfix/smtpd[32019]: warning: problem talking to service rewrite: Connection reset by peer
Sep 2 13:51:50 mailsrv4 postfix/master[7514]: warning: process /usr/libexec/postfix/trivial-rewrite pid 2916 exit status 1
Sep 2 13:51:50 mailsrv4 postfix/smtpd[32404]: warning: problem talking to service rewrite: Success
^C[debashish@mailsrv4 ~]$ sudo tail -f /var/log/maillog
Sep 2 13:53:43 mailsrv4 postfix/trivial-rewrite[3020]: fatal: ldap:/etc/postfix/ldap-aliases.cf(0,lock|fold_fix): table lookup problem
Sep 2 13:53:43 mailsrv4 postfix/trivial-rewrite[3019]: warning: dict_ldap_connect: Unable to bind to server ldap://MailWebSrv1:389 as cn=manager,dc=nabardmail,dc=co,dc=in: -5 (Timed out)
Sep 2 13:53:43 mailsrv4 postfix/trivial-rewrite[3019]: fatal: ldap:/etc/postfix/ldap-aliases.cf(0,lock|fold_fix): table lookup problem
Sep 2 13:53:44 mailsrv4 postfix/master[7514]: warning: process /usr/libexec/postfix/trivial-rewrite pid 3020 exit status 1
Sep 2 13:53:44 mailsrv4 postfix/smtpd[998]: warning: problem talking to service rewrite: Success
Sep 2 13:53:44 mailsrv4 postfix/smtpd[1462]: warning: problem talking to service rewrite: Connection reset by peer
Sep 2 13:53:44 mailsrv4 postfix/smtpd[2751]: warning: problem talking to service rewrite: Success
Sep 2 13:53:44 mailsrv4 postfix/smtpd[1126]: warning: problem talking to service rewrite: Connection reset by peer
Sep 2 13:53:44 mailsrv4 postfix/master[7514]: warning: process /usr/libexec/postfix/trivial-rewrite pid 3019 exit status 1
Sep 2 13:53:46 mailsrv4 authdaemond: ldap_simple_bind_s failed: Can't contact LDAP server
Sep 2 13:53:59 mailsrv4 postfix/trivial-rewrite[3021]: warning: dict_ldap_connect: Unable to bind to server ldap://MailWebSrv1:389 as cn=manager,dc=nabardmail,dc=co,dc=in: -5 (Timed out)

please help
Please ask any details or anything require
 
Old 09-02-2016, 04:19 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Quote:
Originally Posted by deva420patra View Post
warning: dict_ldap_connect: Unable to bind to server ldap://MailWebSrv1:389 as cn=manager,dc=nabardmail,dc=co,dc=in: -5 (Timed out)
Your ldap server is not reachable.
 
Old 09-02-2016, 04:36 AM   #3
deva420patra
LQ Newbie
 
Registered: Apr 2016
Posts: 29

Original Poster
Rep: Reputation: Disabled
How to reconnect to it. Anything to check in LDAP server.
All services like slapd, httpd are working fine.
 
Old 09-02-2016, 04:48 AM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
What changed since it was last working?
 
Old 09-02-2016, 05:10 AM   #5
deva420patra
LQ Newbie
 
Registered: Apr 2016
Posts: 29

Original Poster
Rep: Reputation: Disabled
Backup team was taking backup of whole ldap server today morning, after that only issue raised.
Now we have stopped that backup. but still same issue
 
Old 09-02-2016, 05:12 AM   #6
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Investigate exactly what they did.

edit: In the mean time, have you tried turning it off, then on again

Last edited by descendant_command; 09-02-2016 at 05:21 AM.
 
Old 09-02-2016, 09:11 AM   #7
deva420patra
LQ Newbie
 
Registered: Apr 2016
Posts: 29

Original Poster
Rep: Reputation: Disabled
Still issue is not resolved, ldap connectivity is not happening with all my postfix servers.
restarted slapd services perfectly.
port 389 is also open

Please help, Your help is really appreciated.
 
Old 09-02-2016, 10:01 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by deva420patra View Post
Still issue is not resolved, ldap connectivity is not happening with all my postfix servers.
restarted slapd services perfectly. port 389 is also open

Please help, Your help is really appreciated.
Honestly, what do you expect us to be able to tell you??? We'd have to know EVERYTHING about your environment to even begin...this is a large-scale, systemic problem. If *NONE* of your postfix servers are working anymore, then something has changed on your LDAP server, or there has been a change in your network/firewalls between the postfix systems and the LDAP servers.

Have you done ANY basic troubleshooting??? Run an ldap query from the command line on the postfix servers, to see what you get? Looked at the logs? Asked any of your co-workers what they've done??? We can't guess as to EVERYTHING...tell us what you've done/tried/looked at, and we can go from there.
 
Old 09-03-2016, 05:00 AM   #9
deva420patra
LQ Newbie
 
Registered: Apr 2016
Posts: 29

Original Poster
Rep: Reputation: Disabled
My ldap search is successfully connected & showing result, but my ldaplogs are showing : -

sudo tail -f /var/log/maillog
Sep 3 15:05:21 MailWebSrv1 postfix/smtpd[29524]: disconnect from localhost[127.0.0.1]
Sep 3 15:05:54 MailWebSrv1 sendmail[9844]: u839ZsqP009844: from=user@localhost, size=9376, class=0, nrcpts=1, msgid=<57ca997a.fyMWb3QBk7ppc9MX%user@localhost>, relay=root@localhost
Sep 3 15:05:54 MailWebSrv1 postfix/smtpd[29524]: connect from localhost[127.0.0.1]
Sep 3 15:05:54 MailWebSrv1 postfix/smtpd[29524]: A6FCD403FE6: client=localhost[127.0.0.1]
Sep 3 15:05:54 MailWebSrv1 postfix/cleanup[29527]: A6FCD403FE6: message-id=<57ca997a.fyMWb3QBk7ppc9MX%user@localhost>
Sep 3 15:05:54 MailWebSrv1 sendmail[9844]: u839ZsqP009844: to=root@localhost, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=39376, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as A6FCD403FE6)
Sep 3 15:05:54 MailWebSrv1 postfix/qmgr[11964]: A6FCD403FE6: from=<user@localhost.localdomain>, size=9914, nrcpt=1 (queue active)
Sep 3 15:05:54 MailWebSrv1 postfix/local[29528]: A6FCD403FE6: to=<root@localhost.localdomain>, relay=local, delay=0.23, delays=0.2/0/0/0.03, dsn=2.0.0, status=sent (delivered to mailbox)
Sep 3 15:05:54 MailWebSrv1 postfix/qmgr[11964]: A6FCD403FE6: removed
Sep 3 15:05:54 MailWebSrv1 postfix/smtpd[29524]: disconnect from localhost[127.0.0.1]
Sep 3 15:06:35 MailWebSrv1 sendmail[10735]: u839aZT7010735: from=user@localhost, size=9376, class=0, nrcpts=1, msgid=<57ca99a3.aKZehAzosJ8xzVOT%user@localhost>, relay=root@localhost
Sep 3 15:06:35 MailWebSrv1 postfix/smtpd[29524]: connect from localhost[127.0.0.1]
Sep 3 15:06:35 MailWebSrv1 postfix/smtpd[29524]: BD21D403FE6: client=localhost[127.0.0.1]
Sep 3 15:06:35 MailWebSrv1 postfix/cleanup[29527]: BD21D403FE6: message-id=<57ca99a3.aKZehAzosJ8xzVOT%user@localhost>
Sep 3 15:06:35 MailWebSrv1 sendmail[10735]: u839aZT7010735: to=root@localhost, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=39376, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as BD21D403FE6)
Sep 3 15:06:35 MailWebSrv1 postfix/qmgr[11964]: BD21D403FE6: from=<user@localhost.localdomain>, size=9914, nrcpt=1 (queue active)
Sep 3 15:06:35 MailWebSrv1 postfix/local[29528]: BD21D403FE6: to=<root@localhost.localdomain>, relay=local, delay=0.13, delays=0.09/0/0/0.04, dsn=2.0.0, status=sent (delivered to mailbox)
Sep 3 15:06:35 MailWebSrv1 postfix/qmgr[11964]: BD21D403FE6: removed
Sep 3 15:06:35 MailWebSrv1 postfix/smtpd[29524]: disconnect from localhost[127.0.0.1]
^C[debashish@MailWebSrv1 ratnagiri]$ sudo tail -f /var/log/maillog
Sep 3 15:05:54 MailWebSrv1 postfix/smtpd[29524]: disconnect from localhost[127.0.0.1]
Sep 3 15:06:35 MailWebSrv1 sendmail[10735]: u839aZT7010735: from=user@localhost, size=9376, class=0, nrcpts=1, msgid=<57ca99a3.aKZehAzosJ8xzVOT%user@localhost>, relay=root@localhost
Sep 3 15:06:35 MailWebSrv1 postfix/smtpd[29524]: connect from localhost[127.0.0.1]
Sep 3 15:06:35 MailWebSrv1 postfix/smtpd[29524]: BD21D403FE6: client=localhost[127.0.0.1]
Sep 3 15:06:35 MailWebSrv1 postfix/cleanup[29527]: BD21D403FE6: message-id=<57ca99a3.aKZehAzosJ8xzVOT%user@localhost>
Sep 3 15:06:35 MailWebSrv1 sendmail[10735]: u839aZT7010735: to=root@localhost, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=39376, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as BD21D403FE6)
Sep 3 15:06:35 MailWebSrv1 postfix/qmgr[11964]: BD21D403FE6: from=<user@localhost.localdomain>, size=9914, nrcpt=1 (queue active)
Sep 3 15:06:35 MailWebSrv1 postfix/local[29528]: BD21D403FE6: to=<root@localhost.localdomain>, relay=local, delay=0.13, delays=0.09/0/0/0.04, dsn=2.0.0, status=sent (delivered to mailbox)
Sep 3 15:06:35 MailWebSrv1 postfix/qmgr[11964]: BD21D403FE6: removed
Sep 3 15:06:35 MailWebSrv1 postfix/smtpd[29524]: disconnect from localhost[127.0.0.1]


Earlier it was showing not FQDN : Sleeping retry error
so i update the /etc/hosts file as required.
Some usera are access to mails but it takes more than 20-4o minutes to reach, & showing connection dropped error
postfix server logs:

Sep 3 15:26:57 mailsrv3 postfix/trivial-rewrite[13493]: warning: dict_ldap_lookup: Search error -5: Timed out
Sep 3 15:26:57 mailsrv3 postfix/trivial-rewrite[13493]: fatal: ldap:/etc/postfix/groups.cf(0,lock|fold_fix): table lookup problem
Sep 3 15:26:58 mailsrv3 postfix/master[8706]: warning: process /usr/libexec/postfix/trivial-rewrite pid 13493 exit status 1
Sep 3 15:26:58 mailsrv3 postfix/smtpd[13528]: warning: problem talking to service rewrite: Connection reset by peer

There has not been any changes in firewall or network. Just the bandwidth link is increased from 1MB to 2 MB.
 
Old 09-03-2016, 05:41 AM   #10
deva420patra
LQ Newbie
 
Registered: Apr 2016
Posts: 29

Original Poster
Rep: Reputation: Disabled
sudo postmap -q rajchand@chandigarh.scbindia.co.in ldap:/etc/postfix/ldap-aliases.cf
[sudo] password for debashish:
postmap: warning: dict_ldap_connect: Unable to bind to server ldap://MailWebSrv1:389 as cn=manager,dc=nabardmail,dc=co,dc=in: -5 (Timed out)

now users am able to login but mails not delivered..
 
Old 09-06-2016, 01:05 AM   #11
deva420patra
LQ Newbie
 
Registered: Apr 2016
Posts: 29

Original Poster
Rep: Reputation: Disabled
No is having any solution for this issue
 
Old 09-06-2016, 09:22 AM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,622

Rep: Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963Reputation: 7963
Quote:
Originally Posted by deva420patra View Post
No is having any solution for this issue
Don't bump your own threads, unless you're providing more information.

And based on what you've posted...this makes ABSOLUTELY NO SENSE at all. You say that Postfix and LDAP were all working *TOTALLY FINE*...until you took a BACKUP? Copying file(s) doesn't change LDAP services, or postfix configurations. Then you add:
Quote:
Originally Posted by deva420patra
There has not been any changes in firewall or network. Just the bandwidth link is increased from 1MB to 2 MB.
...this, which indicates that there WERE changes in the network configurations...how, exactly, did you increase this link? What version/distro of Linux are you using?? You also indicate that you edited /etc/hosts, talk about your FQDN, etc....all these things indicate that you've changed quite a bit.

Again, roll back whatever changes were made, and see if that makes a difference. Just an increase in bandwidth won't affect postfix/ldap configurations.
 
Old 02-06-2017, 06:13 AM   #13
deva420patra
LQ Newbie
 
Registered: Apr 2016
Posts: 29

Original Poster
Rep: Reputation: Disabled
Smile

Thanks for all the support, The issue has been resolved.
Don't know how in my ldap server the ldif file permissions changed to root:root, changed it to ldap:ldap solved my issue

cd /MailWebData/etc/openldap/

drwxr-xr-x. 15 ldap ldap 4096 Dec 30 18:29 ldif
 
  


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
[SOLVED] ERROR: Connection dropped by IMAP server. rewards Linux - Server 8 06-20-2013 12:16 PM
ERROR: Connection dropped by IMAP server. qsk73 Linux - Server 1 07-13-2009 12:11 AM
ERROR: Connection dropped by IMAP server satimis Linux - Server 2 02-14-2008 11:00 PM
Connection Dropped by IMAP Server Chiragrs Linux - Networking 2 05-14-2007 03:36 PM
Connection dropped by imap-server max_tcs Linux - Software 0 03-29-2005 01:05 PM

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

All times are GMT -5. The time now is 09:43 AM.

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