Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th December 2012, 06:21
danstinebaugh danstinebaugh is offline
Junior Member
 
Join Date: Apr 2009
Location: Bay Area California
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Virtual Users & Domains With Postfix, [...] SquirrelMail Conn. dropped by IMAP ubuntu

Just finished going through the Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 12.10) post and again I'm amazed at the thoroughness of your guides. Thank you for all that you do!

However I'm getting stuck so close to the end, and I'm not sure what could be causing the error.

I've gotten to the end where I'm trying to login as the test user created to squirrelmail but am getting the error "ERROR: Connection dropped by IMAP server.
"



Here is the results from a netstat -tap:
Code:
root@mail1:/var/log# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:http                  *:*                     LISTEN      4319/apache2
tcp        0      0 *:ssh                   *:*                     LISTEN      2519/sshd
tcp        0      0 *:smtp                  *:*                     LISTEN      27367/master
tcp        0      0 localhost.localdo:10024 *:*                     LISTEN      1660/amavisd-new (m
tcp        0      0 localhost.localdo:10025 *:*                     LISTEN      27367/master
tcp        0      0 localhost.localdo:mysql *:*                     LISTEN      7930/mysqld
tcp       59      0 localhost.localdo:40045 localhost.localdo:10025 CLOSE_WAIT  1665/amavisd-new (c
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      2519/sshd
tcp6       0      0 [::]:smtp               [::]:*                  LISTEN      27367/master
tcp6       0      0 [::]:imaps              [::]:*                  LISTEN      21734/couriertcpd
tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN      21802/couriertcpd
tcp6       0      0 [::]:pop3               [::]:*                  LISTEN      21765/couriertcpd
tcp6       0      0 [::]:imap2              [::]:*                  LISTEN      21697/couriertcpd
I've made sure to replace the mail_user_password in all of the references in the walkthrough (At least I'm pretty sure I did!) and everything seems to be working correctly,

telnet results:
Code:
root@mail1:/var/log# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 my.hidden.host ESMTP Postfix (Ubuntu)
ehlo localhost
250-my.hidden.host
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit
221 2.0.0 Bye
Connection closed by foreign host.
Anyone have any ideas on where I should start troubleshooting this? imap I'm guessing, but could use some guidance.

Also I have sent each of the test account's I've created a test email using the mailx command as stated in the guide.

Thanks in advance!

Last edited by danstinebaugh; 27th December 2012 at 06:27. Reason: added info.
Reply With Quote
Sponsored Links
  #2  
Old 28th December 2012, 12:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Are there any errors in your mail log (in the /var/log/ directory)?
__________________
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 29th December 2012, 05:31
danstinebaugh danstinebaugh is offline
Junior Member
 
Join Date: Apr 2009
Location: Bay Area California
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The only error's I've got in my mail.err file is the following:

Code:
root@mail1:/var/log# cat mail.err
Dec 26 19:46:46 mail1 imapd: sales@example.com: No such file or directory
Dec 26 19:47:33 mail1 imapd: sales@example.com: No such file or directory
Dec 26 19:51:17 mail1 imapd: sales@example.com: No such file or directory
Dec 26 19:54:38 mail1 imapd: sales@example.com: No such file or directory
Dec 26 19:55:09 mail1 imapd: daniel@example.com: No such file or directory
Dec 26 19:58:25 mail1 imapd: sales@example.com: No such file or directory
Dec 26 20:26:54 mail1 imapd: sales@example.com: No such file or directory
I created the daniel@example.com from phpmyadmin just to test on a second account, with the same result.
Here is a link to my mail.log pastebin. http://pastebin.com/ckFxnfDr

Last edited by danstinebaugh; 29th December 2012 at 23:54. Reason: added the mail.log file output as well.
Reply With Quote
  #4  
Old 31st December 2012, 14:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Please post your /etc/postfix/main.cf.
__________________
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 6th June 2013, 11:12
DuaBeo35 DuaBeo35 is offline
Junior Member
 
Join Date: Aug 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default i have same error. This is my main.cf

# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = /usr/share/doc/postfix

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = mail.hactech.vn
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = mail.hactech.vn, localhost, localhost.localdomain
mydestination = localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_maildir_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
Reply With Quote
  #6  
Old 6th June 2013, 11:27
DuaBeo35 DuaBeo35 is offline
Junior Member
 
Join Date: Aug 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

my mail.log
Jun 6 12:05:50 hactech imapd: (null): TOO MANY CONSECUTIVE PROTOCOL VIOLATIONS
Jun 6 12:06:04 hactech postfix/qmgr[2408]: 4CE9242872: from=<root@mail.hactech.vn>, size=786, nrcpt=1 (queue active)
Jun 6 12:06:40 hactech postfix/smtp[2642]: connect to mail.hactech.vn[203.119.8.111]:25: Connection refused
Jun 6 12:06:40 hactech postfix/smtp[2642]: 4CE9242872: to=<sales@hactech.vn>, relay=none, delay=1542, delays=1505/0/36/0, dsn=4.4.1, status=deferred (connect to mail.hactech.vn[203.119.8.111]:25: Connection refused)
Jun 6 12:10:46 hactech imapd: Connection, ip=[::ffff:127.0.0.1]
Jun 6 12:10:46 hactech imapd: chdir hactech.vn/lxthanh/: No such file or directory
Jun 6 12:10:46 hactech imapd: lxthanh@hactech.vn: No such file or directory
Jun 6 12:11:04 hactech postfix/qmgr[2408]: ADACE428C3: from=<root@mail.hactech.vn>, size=771, nrcpt=1 (queue active)
Jun 6 12:12:02 hactech postfix/smtp[2719]: connect to mail.hactech.vn[203.119.8.111]:25: Connection refused
Jun 6 12:12:02 hactech postfix/smtp[2719]: ADACE428C3: to=<sales@hactech.vn>, relay=none, delay=445, delays=387/0.05/58/0, dsn=4.4.1, status=deferred (connect to mail.hactech.vn[203.119.8.111]:25: Connection refused)
Reply With Quote
  #7  
Old 8th June 2013, 11:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
 
Default

Quote:
Jun 6 12:12:02 hactech postfix/smtp[2719]: ADACE428C3: to=<sales@hactech.vn>, relay=none, delay=445, delays=387/0.05/58/0, dsn=4.4.1, status=deferred (connect to mail.hactech.vn[203.119.8.111]:25: Connection refused)
Is Postfix listening on all interfaces? What's the output of
Code:
netstat -tap
?
__________________
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
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
Getting Email Working ISPConfig3 Squirrelmail and Courier etc Ian Wilson Installation/Configuration 17 19th June 2013 23:58
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail-Problema jz_ HOWTO-Related Questions 9 14th September 2011 14:31
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 9.10) mickey78 HOWTO-Related Questions 1 1st January 2010 13:11
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 12:14
Extending Virtual Users And Domains With Postfix, Courier, And SquirrelMail Ubuntu 8. atjensen11 HOWTO-Related Questions 5 8th June 2008 13:09


All times are GMT +2. The time now is 09:17.


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