Hi, i have followed "Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 14.04LTS)" tutorial by srijan.. everything looks like ok, both telnet test works great but when i try to login to squirrel they told me "ERROR: Connection dropped by IMAP server." in mail.log i can see Sep 27 21:35:45 UbuntuServer imapd: chdir mydomain.cz/info/: No such file or directory Sep 27 21:35:45 UbuntuServer imapd: [email protected]: No such file or directory and yes i have send mail to that adress.. but in /home/vmail isnt any directory.. when i set up just mail forwarding it works well... ive check every step 2times and hope all is ok.. can anyone help please? thanks a lot and sorry for my english
The problem is that the maildir does not exist yet.. postfix creates the maildir when the first email arrives for that mailbox. send a test email to the mailbox as described in the tutorial first, then the maildir should exist and you can login with imap.
i dont know if i wrote this sentence correct but the real meaning was -> yes, i send mail to [email protected] and it doesnt help any another idea? thanks
Check your mail.log for errors. if you sent the message and the mailbox got not created, then you have to check why it did not created as you imap login will not work until the mailbox exist.
there is no errors i can see.. when i send email: Code: mailx [email protected] Subject: test test [CTRL+D] EOT log just add Code: Sep 28 12:13:37 UbuntuServer postfix/pickup[19106]: AE04D23201A9: uid=0 from=<root> Sep 28 12:13:37 UbuntuServer postfix/cleanup[19740]: AE04D23201A9: message-id=<[email protected]> Sep 28 12:13:37 UbuntuServer postfix/qmgr[6923]: AE04D23201A9: from=<[email protected]>, size=446, nrcpt=1 (queue active) Sep 27 09:25:16 UbuntuServer postfix/trivial-rewrite[19793]: message repeated 2 times: [ warning: do not list domain mydomain.cz in BOTH mydestination and virtual_mailbox_domains] Sep 28 12:13:52 UbuntuServer postfix/smtpd[19793]: connect from localhost[127.0.0.1] Sep 28 12:13:52 UbuntuServer postfix/smtpd[19793]: E875B2320240: client=localhost[127.0.0.1] Sep 28 12:13:52 UbuntuServer postfix/cleanup[19740]: E875B2320240: message-id=<[email protected]> Sep 28 12:13:52 UbuntuServer postfix/qmgr[6923]: E875B2320240: from=<[email protected]>, size=888, nrcpt=1 (queue active) Sep 28 12:13:52 UbuntuServer amavis[19773]: (19773-01) Passed CLEAN {RelayedInbound}, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: GU6eLiBLgVWg, Hits: 0, size: 446, queued_as: E875B2320240, 15254 ms Sep 28 12:13:53 UbuntuServer postfix/smtp[19744]: AE04D23201A9: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=15, delays=0.08/0/0.01/15, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as E875B2320240) Sep 28 12:13:53 UbuntuServer postfix/qmgr[6923]: AE04D23201A9: removed Sep 28 12:13:53 UbuntuServer postfix/local[19763]: E875B2320240: to=<[email protected]>, relay=local, delay=0.06, delays=0.03/0/0/0.03, dsn=2.0.0, status=sent (delivered to mailbox) Sep 28 12:13:53 UbuntuServer postfix/qmgr[6923]: E875B2320240: removed Sep 28 12:15:01 UbuntuServer postfix/pickup[19106]: 89BE32320240: uid=0 from=<root> Sep 28 12:15:01 UbuntuServer postfix/cleanup[19740]: 89BE32320240: message-id=<[email protected]> Sep 28 12:15:01 UbuntuServer postfix/qmgr[6923]: 89BE32320240: from=<[email protected]>, size=545, nrcpt=1 (queue active) Sep 28 12:15:16 UbuntuServer postfix/smtpd[19761]: B778423201A9: client=localhost[127.0.0.1] Sep 28 12:15:16 UbuntuServer postfix/cleanup[19740]: B778423201A9: message-id=<[email protected]> Sep 28 12:15:16 UbuntuServer postfix/smtpd[19761]: disconnect from localhost[127.0.0.1] Sep 28 12:15:16 UbuntuServer postfix/qmgr[6923]: B778423201A9: from=<[email protected]>, size=987, nrcpt=1 (queue active) Sep 28 12:15:16 UbuntuServer amavis[19764]: (19764-02) Passed CLEAN {RelayedInbound}, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: F-z0EGy1xa2Z, Hits: -0.001, size: 545, queued_as: B778423201A9, 15202 ms Sep 28 12:15:16 UbuntuServer postfix/smtp[19744]: 89BE32320240: to=<[email protected]>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=15, delays=0.07/0/0/15, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as B778423201A9) Sep 28 12:15:16 UbuntuServer postfix/qmgr[6923]: 89BE32320240: removed Sep 28 12:15:16 UbuntuServer postfix/local[19763]: B778423201A9: to=<[email protected]>, orig_to=<[email protected]>, relay=local, delay=0.08, delays=0.04/0.01/0/0.03, dsn=2.0.0, status=sent (delivered to mailbox) Sep 28 12:15:16 UbuntuServer postfix/qmgr[6923]: B778423201A9: removed Sep 28 12:18:53 UbuntuServer postfix/smtpd[19793]: timeout after END-OF-MESSAGE from localhost[127.0.0.1] Sep 28 12:18:53 UbuntuServer postfix/smtpd[19793]: disconnect from localhost[127.0.0.1] can you see any problem? its quite interesting there is nothing about imap/courier..
Th emessage has been delivered but maybe to a wrong mailbox if the hostname of your server is mydomain.cz or if you have mydomain.cz listed in mydomain or myhostname in main.cf please post the output of: grep mydomain.cz /etc/postfix/main.cf courier is not involved in delivering a invoming message to the mailbox.
so.. Code: grep mydomain.cz /etc/postfix/main.cf gives me-> Code: myhostname = mydomain.cz mydestination = mydomain.cz, localhost, localhost.localdomain
ok, thats the problem. mydomain.cz may not be listed in these two places. In these places you must use the hostname of the server and this hostname has to be a subdomain like server1.example.com and not example.com.
Nice! email works now... (by using thunderbird) but when i log in to squirrel there is just blank page.. /etc/squirrelmail/config.php Code: <?php /** * SquirrelMail Configuration File * Created using the configure script, conf.pl */ global $version; $config_version = '1.4.0'; $config_use_color = 2; $org_name = "VOLF systems"; $org_logo = SM_PATH . 'images/sm_logo.png'; $org_logo_width = '308'; $org_logo_height = '111'; $org_title = "SquirrelMail $version"; $signout_page = ''; $frame_top = '_top'; $provider_uri = 'http://mydomain.cz/'; $provider_name = 'VOLF systems'; $motd = ""; $squirrelmail_default_language = 'en_US'; $default_charset = 'iso-8859-1'; $lossy_encoding = false; $domain = trim(implode('', file('/etc/'.(file_exists('/etc/mailname')?'mail':'host').'name'))); $imapServerAddress = 'localhost'; $imapPort = 143; $useSendmail = false; $smtpServerAddress = 'localhost'; $smtpPort = 25; $sendmail_path = '/usr/sbin/sendmail'; $sendmail_args = '-i -t'; $pop_before_smtp = false; $pop_before_smtp_host = ''; $imap_server_type = 'courier'; $invert_time = false; $optional_delimiter = '.'; $encode_header_key = ''; $default_folder_prefix = 'INBOX.'; $trash_folder = 'Trash'; $sent_folder = 'Sent'; $draft_folder = 'Drafts'; $default_move_to_trash = true; $default_move_to_sent = true; $default_save_as_draft = true; $show_prefix_option = false; $list_special_folders_first = true; $use_special_folder_color = true; $auto_expunge = true; $default_sub_of_inbox = true; $show_contain_subfolders_option = false; $default_unseen_notify = 2; $default_unseen_type = 1; $auto_create_special = true; $delete_folder = true; $noselect_fix_enable = false; $data_dir = '/var/lib/squirrelmail/data/'; $attachment_dir = '/var/spool/squirrelmail/attach/'; $dir_hash_level = 0; $default_left_size = '150'; $force_username_lowercase = false; $default_use_priority = true; $hide_sm_attributions = false; $default_use_mdn = true; $edit_identity = true; $edit_name = true; $hide_auth_header = false; $allow_thread_sort = false; $allow_server_sort = false; $allow_charset_search = true; $uid_support = true; $plugins[0] = 'view_as_html'; $plugins[1] = 'compatibility'; $plugins[2] = 'change_sqlpass'; $theme_css = ''; $theme_default = 0; $theme[0]['PATH'] = SM_PATH . 'themes/default_theme.php'; $theme[0]['NAME'] = 'Default'; $theme[1]['PATH'] = SM_PATH . 'themes/plain_blue_theme.php'; ............ $default_use_javascript_addr_book = false; $abook_global_file = ''; $abook_global_file_writeable = false; $abook_global_file_listing = true; $abook_file_line_length = 2048; $addrbook_dsn = ''; $addrbook_table = 'address'; [CODE] $prefs_dsn = ''; $prefs_table = 'userprefs'; $prefs_user_field = 'user'; $prefs_key_field = 'prefkey'; $prefs_val_field = 'prefval'; $addrbook_global_dsn = ''; $addrbook_global_table = 'global_abook'; $addrbook_global_writeable = false; $addrbook_global_listing = false; $no_list_for_subscribe = false; $smtp_auth_mech = 'none'; $imap_auth_mech = 'login'; $smtp_sitewide_user = ''; $smtp_sitewide_pass = ''; $use_imap_tls = false; $use_smtp_tls = false; $session_name = 'SQMSESSID'; $only_secure_cookies = true; $disable_security_tokens = false; $check_referrer = ''; $browser_rendering_mode = 'quirks'; $config_location_base = ''; @include SM_PATH . 'config/config_local.php'; [/CODE] mail log Code: Sep 28 15:35:02 UbuntuServer imapd: Connection, ip=[::1] Sep 28 15:35:02 UbuntuServer imapd: LOGIN, [email protected], ip=[::1], port=[36282], protocol=IMAP Sep 28 15:35:02 UbuntuServer imapd: LOGOUT, [email protected], ip=[::1], headers=0, body=0, rcvd=30, sent=238, time=0 Sep 28 15:35:16 UbuntuServer postfix/smtpd[21289]: connect from localhost[127.0.0.1] Sep 28 15:35:16 UbuntuServer postfix/smtpd[21289]: F3F8B23201A5: client=localhost[127.0.0.1] Sep 28 15:35:17 UbuntuServer postfix/cleanup[21279]: F3F8B23201A5: message-id=<[email protected]> Sep 28 15:35:17 UbuntuServer postfix/qmgr[20998]: F3F8B23201A5: from=<[email protected]>, size=1006, nrcpt=1 (queue active) Sep 28 15:35:17 UbuntuServer postfix/smtpd[21289]: disconnect from localhost[127.0.0.1] Sep 28 15:35:17 UbuntuServer amavis[21026]: (21026-04) Passed CLEAN {RelayedInbound}, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: mJxUJ0ON6WDo, Hits: -0.001, size: 554, queued_as: F3F8B23201A5, 15221 ms Sep 28 15:35:17 UbuntuServer postfix/smtp[21283]: BCEE92320244: to=<[email protected]>, orig_to=<root>, relay=127.0.0.1[127.0.0.1]:10024, delay=15, delays=0.19/0.01/0/15, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as F3F8B23201A5) Sep 28 15:35:17 UbuntuServer postfix/qmgr[20998]: BCEE92320244: removed Sep 28 15:35:17 UbuntuServer postfix/virtual[21291]: F3F8B23201A5: to=<[email protected]>, relay=virtual, delay=0.09, delays=0.04/0.02/0/0.03, dsn=5.1.1, status=bounced (unknown user: "[email protected]") Sep 28 15:35:17 UbuntuServer postfix/cleanup[21279]: 157192320245: message-id=<[email protected]> Sep 28 15:35:17 UbuntuServer postfix/bounce[21292]: F3F8B23201A5: sender non-delivery notification: 157192320245 Sep 28 15:35:17 UbuntuServer postfix/qmgr[20998]: 157192320245: from=<>, size=2899, nrcpt=1 (queue active) Sep 28 15:35:17 UbuntuServer postfix/qmgr[20998]: F3F8B23201A5: removed Sep 28 15:35:17 UbuntuServer postfix/virtual[21291]: 157192320245: to=<[email protected]>, relay=virtual, delay=0.08, delays=0.04/0/0/0.03, dsn=5.1.1, status=bounced (unknown user: "[email protected]") Sep 28 15:35:17 UbuntuServer postfix/qmgr[20998]: 157192320245: removed if you can help one more please
is that problem? Code: [Sun Sep 28 17:42:04.271844 2014] [alias:warn] [pid 22237] AH00671: The Alias directive in /etc/apache2/sites-enabled/squirrelmail.conf at line 1 will probably never match because it overlaps an earlier Alias. [Sun Sep 28 17:42:14.357401 2014] [mpm_prefork:notice] [pid 22237] AH00163: Apache/2.4.7 (Ubuntu) SVN/1.8.8 PHP/5.5.9-1ubuntu4.4 configured -- resuming normal operations [Sun Sep 28 17:42:14.357432 2014] [core:notice] [pid 22237] AH00094: Command line: '/usr/sbin/apache2' and sqirr.../mail.conf Code: Alias /squirrelmail /usr/share/squirrelmail <Directory /usr/share/squirrelmail> Options FollowSymLinks <IfModule mod_php5.c> php_flag register_globals off </IfModule> <IfModule mod_dir.c> DirectoryIndex index.php </IfModule> # access to configtest is limited by default to prevent information leak <Files configtest.php> order deny,allow deny from all allow from 127.0.0.1 </Files> </Directory>