HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   connection to imap server failed (http://www.howtoforge.com/forums/showthread.php?t=61889)

marksman 19th May 2013 11:26

connection to imap server failed
 
hi for all and thanks for falko

i was implementing this artical
http://www.howtoforge.com/perfect-se...ot-ispconfig-3

and all work fine except the mail server gives me on roundcube and SquirrelMail

i already create from ispconfig users and mail boxes but cant connect to mail server and i cant login

this is example webmail account to my mail server
https://sadgull.com/webmail/
user:rami@sadgull.org
pass:P@ssw0rd

marksman 21st May 2013 08:44

hi all

its more than 60 views and no reply is there any problem????


help please

marksman 25th May 2013 14:17

OMG no support here

vincej97 27th May 2013 23:23

I'm having that same problem an came across this posting to get help.. I will check back later.

monkfish 28th May 2013 01:12

Have a look in /var/log/maillog see if you can spot any errors.

What port is your imap server running on? Is it running?

"netstat -A inet -nlp" or similar might show you if your imap server is running.

In roundcube main.inc.php config file, what do you have $rcmail_config['default_host'] and $rcmail_config['default_port'] set to?

Does roundcube config match your imap config?

I have dovecot listening on ports 143 and 993. However, my firewall rules dicate that outside users can only access IMAPS on 993. Roundcube running on the same machine is set to connect on 143.

oldretiredman 28th May 2013 02:11

http://www.howtoforge.com/virtual-users-and-domains-with-postfix-courier-mysql-and-sq
 
I'm having this issue also, made a lot of changes so I'm going to have to go through the tutorial again and try to cross and dot everything again.

It's when I log in correctly, if I don't log in correctly, it works as expected, ~"You have failed to login,etc."

The issue certainly starts at the email not being sent correctly.

Quote:

[root@server1 ~]# telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 example.com ESMTP Postfix
ehlo localhost
250-example.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit
221 2.0.0 Bye
Connection closed by foreign host.
[root@server1 ~]#
/etc/aliases:
Quote:

postmaster: root
root: postmaster@example.com
(newaliases was run)

/var/log/maillog when trying to mailx sales@example.com:
Quote:

May 27 19:05:27 server1 postfix/smtp[3584]: 5CD4422853: to=<sales@example.com>, relay=none, delay=0.22, delays=0.02/0.01/0.2/0, dsn=5.4.4, status=bounced (unable to look up host mail.example.com: Name or service not known)
May 27 19:05:27 server1 postfix/cleanup[3566]: 969B722855: message-id=<20130528000527.969B722855@example.com>
May 27 19:05:27 server1 postfix/bounce[3585]: 5CD4422853: sender non-delivery notification: 969B722855
May 27 19:05:27 server1 postfix/qmgr[3402]: 969B722855: from=<>, size=2694, nrcpt=1 (queue active)
May 27 19:05:27 server1 postfix/qmgr[3402]: 5CD4422853: removed
May 27 19:05:27 server1 postfix/smtp[3584]: 969B722855: to=<root@example.com>, relay=none, delay=0.08, delays=0/0/0.07/0, dsn=5.4.4, status=bounced (unable to look up host mail.example.com: Name or service not known)
May 27 19:05:27 server1 postfix/qmgr[3402]: 969B722855: removed
Quote:

[root@server1 ~]# netstat -A inet -nlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3310 0.0.0.0:* LISTEN 2110/clamd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1215/sshd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 3399/master
tcp 0 0 127.0.0.1:10024 0.0.0.0:* LISTEN 2135/amavisd (maste
tcp 0 0 127.0.0.1:10025 0.0.0.0:* LISTEN 3399/master
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1353/mysqld
udp 0 0 0.0.0.0:636 0.0.0.0:* 1046/portreserve
udp 0 0 0.0.0.0:783 0.0.0.0:* 1046/portreserve
[root@server1 ~]#

vincej97 3rd June 2013 21:18

Mail Server help
 
I've done all the checks for making sure the imap, smtp and all the ports are open and process are running. Still I can not configure my mail server or login to Squirrelmail. I installed my server using the The Perfect Server - Fedora 15 x86_64 [ISPConfig 3] and followed all the steps and it works great. but when i came to putting my username and password in the Squirrelmail "Webmail" page I could not get in. Is there a "step-by-step configuration tutorial on how to setup squirrelmail after installing and configuring the server from using The Perfect Server - Fedora 15 x86_64 [ISPConfig 3]? I would certainly appreciate al help in this area. :-)

Thanks in advance!

monkfish 3rd June 2013 22:47

vincej97

Watch the mail log file see if you get any errors when you attempt a login to squirrelmal. "tail -f /var/log/maillog" in your console should do it.

You could also try a "tail -f /var/log/httpd/error.log" or "tail -f /var/www/<domain>/log/error.log and watch to see if you get any errors from apache when you login in.

Is there any particular reason why you chose Fedora 15? According to Redhat site, official support for that ended 26JUN12. If its a Redhat derivative you're most comfortable with, perhaps look at CentOS 6.4 instead? Of course that won't automatically get your mail working but just something to consider.

monkfish 3rd June 2013 22:50

oldretiredman,

Code:

unable to look up host mail.example.com: Name or service not known
is most likely to be a dns lookup error.

Your "netstat" output does not appear to show any listening dns server, did you configure dns at all? Or are you using name resolution external to that machine?

Do a "cat /etc/resolv.conf" and find out your nameservers. The error above is likely due to the dns servers you are using cannot resolve the name.


All times are GMT +2. The time now is 05:15.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.