Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th April 2009, 03:03
CarbonCopy CarbonCopy is offline
Member
 
Join Date: Apr 2009
Posts: 52
Thanks: 1
Thanked 1 Time in 1 Post
Default Courier IMAP Connects but does not recieve

I followed the guide located here: http://www.howtoforge.com/virtual_po..._quota_courier except for a few places where files were in different places etc. I am now able to authenticate and login, and see my inbox, however, emails don't appear to be going through. I have no idea what to do now. I also found out that I had to use

./maildirmake /home/vmail/domain.com/user
chown -R vmail:vmail /home/vmail/domain.com/user

If there are files or info you need let me know and I'll post it. I also get a few errors about "Unable to connect to your IMAP server. You may have exceeded the maximum number of connections to this server." (Mozilla Thunderbird on Windows). Anyone of upping the connection limit?

-Brandon

Last edited by CarbonCopy; 17th April 2009 at 05:29.
Reply With Quote
Sponsored Links
  #2  
Old 17th April 2009, 17:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by CarbonCopy View Post
however, emails don't appear to be going through. I have no idea what to do now.
Please check your mail log.

Quote:
Originally Posted by CarbonCopy View Post
I also found out that I had to use

./maildirmake /home/vmail/domain.com/user
chown -R vmail:vmail /home/vmail/domain.com/user
Maildir is created automatically once the first email arrives.

Which distribution are you using?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 17th April 2009, 20:51
CarbonCopy CarbonCopy is offline
Member
 
Join Date: Apr 2009
Posts: 52
Thanks: 1
Thanked 1 Time in 1 Post
Default Thanks

Well thanks for letting me know about the maildir being created. I however had to create it because when I logged into IMAP I just got an error about the maildir not existing.

I am using the most recent version of CentOS 64bit, based off RHEL as you probably know.

Not sure if it helps, but I just copied 4 emails to my inbox using thunderbird, marked them as unread, then checked my email with http://pingability.com/ and they show up.

Would I need to setup a mx record or something for imap?

And

Code:
[root]~ # netstat -tulp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
tcp        0      0 *:mysql                     *:*                         LISTEN      16965/mysqld
tcp        0      0 cl-t112-271cl.privated:pop3 *:*                         LISTEN      17163/couriertcpd
tcp        0      0 cl-t112-271cl.privated:imap *:*                         LISTEN      17564/couriertcpd
tcp        0      0 cl-t112-271cl.privated:http *:*                         LISTEN      16603/httpd
tcp        0      0 *:ftp                       *:*                         LISTEN      32568/proftpd: (acc
tcp        0      0 *:smtp                      *:*                         LISTEN      2258/master
tcp        0      0 *:ssh                       *:*                         LISTEN      32744/sshd
And I have ADDRESS set in my imapd file to my server's ip address. Courier imap is installed to /usr/lib/courier-imap/

And I have SELinux enabled, and would prefer to leave it that way, but if I must I can disable it, also, my /var/log/debug and /var/log/maillog files are empty (I cleared them after I fixed the last problem).

Last edited by CarbonCopy; 17th April 2009 at 21:34.
Reply With Quote
  #4  
Old 18th April 2009, 15:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Make sure that the MX records for your domains point to your server.

Quote:
And I have SELinux enabled, and would prefer to leave it that way
You should turn it off, at least until you get everything working (so that we can rule out SELinux as a source of errors). Afterwards you can try to enable it again.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 21st April 2009, 22:31
CarbonCopy CarbonCopy is offline
Member
 
Join Date: Apr 2009
Posts: 52
Thanks: 1
Thanked 1 Time in 1 Post
Default

I just got the rest of my server features working, apache, postfix, mysql, etc. I also reinstall courier, and I got it to authenticate against a mysql database properly. Like I had before, I can see emails I manually transfer, AND I receive local mail. Just no emails from the outside.

SELinux and the native firewall is disabled

My SQL usertable looks like this:

Code:
email 	            home 	password        passwordcrypt 	 quota
brandon@sabotix.com /home/vmail <password_md5>  <password_crypt> 10485760
Configuration Files:

/usr/lib/courier-imap/imapd
http://www.sabotix.com/imapd.txt

/usr/local/etc/authlib/authdaemonrc
http://www.sabotix.com/authdaemonrc.txt

/usr/local/etc/authlib/authmysqlrc
http://www.sabotix.com/authmysqlrc.txt

Earlier when I tried sending with gmail I received an email a day later saying this:
DNS Error: DNS server returned answer with no data

I've reinstall courier since then, but it may still be the problem
Reply With Quote
  #6  
Old 21st April 2009, 23:09
tebokkel tebokkel is offline
Member
 
Join Date: Feb 2007
Location: The Netherlands
Posts: 96
Thanks: 0
Thanked 9 Times in 9 Posts
Default

Assuming sabotix.com is your domain, I just was able to lookup your DNS (A-record x.x.11.102) and (manually) send you an email.
There was no problem, not with DNS, not with sending the mail.

Did it arrive?

Paul
Reply With Quote
  #7  
Old 21st April 2009, 23:18
CarbonCopy CarbonCopy is offline
Member
 
Join Date: Apr 2009
Posts: 52
Thanks: 1
Thanked 1 Time in 1 Post
 
Default

Yeah, it was a problem with my a record. I just had added it properly. I had @ and I put sabotix.com instead and it works fine. Got your mail.

Thanks
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Courier IMAP and Squirrelmail issue with Maildir raymonvdm Installation/Configuration 2 4th April 2009 05:26
Courier IMAP won't start atjensen11 HOWTO-Related Questions 2 28th May 2008 18:28
Help on migrate from courier to imap atrus HOWTO-Related Questions 0 16th March 2008 10:33
SUSE: Courier Imap missing authdaemond.mysql yellen Server Operation 8 9th February 2006 14:39
Courier IMAP - when does it delete deleted messages?? hagel Server Operation 3 18th August 2005 23:52


All times are GMT +2. The time now is 10:38.


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