Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: Windowsák instaluje Ubuntu server - mailserver, roundcube  (Přečteno 15380 krát)

Thomas123

  • Aktivní člen
  • *
  • Příspěvků: 383
Zdravím, už jsem tu s podobným titulkem založil dříve několik témat, nyní jsem již po roce trochu znalejší. Sehnal jsem si počítač, nainstaloval Ubuntu server 8.04LTS, nastavil sources.list, obarvil si konzoli, nainstaloval LAMP, Webmin, ponastavoval, co mi šlo, odinstaloval Apparmor, ... (vše bez grafického prostředí  ;D).

Nyní bych měl opět několik otázek:

1.) Nějak efektivně si podepsat certifikát pro Webmin?
2.) Moje nejduležitější věc, pomohli byste mi tu dobří lidé na fóru s instalací poštovního serveru (asi postfix+courier, spamassian, clamav, uživatelé někde asi z db, pošta tříděná ve složkách s omezením na cca 250MB, doménový koš a aliasy)

Server instaluji doma, do ostrého provozu přijde jen zapojit typem go & plug (příjdu a zapojím), takže doma to provizorně moc testovat nebudu moci.


Co bych měl zapsat do MX záznamů o doméně?
A pokud mi pomůžete, tak čím bych měl začít?

Díky
« Poslední změna: 29 Dubna 2009, 07:13:13 od Thomas123 »
Ten Linux není špatná věc, jen se s tím naučit. Windowsák není zvyklý.

soudruh

  • Aktivní člen
  • *
  • Příspěvků: 458
  • Na Linuxu se stále učím...
Re: Windowsák instaluje Ubuntu server - pomoc
« Odpověď #1 kdy: 26 Dubna 2009, 13:05:39 »
1) Podepsat webadmin. Zřejmě myslíš SSL certifikát. Ten ti musí vystavit nějaká důveryhodná autorita.
Xubuntu 12.10@fermium; Ubuntu 12.04@mandelevium; Android 2.3.3@nobellum; Ubuntu 9.04@lawrencium; FreeNAS@rutherfordium; Xubuntu 12.04@dubnium

Thomas123

  • Aktivní člen
  • *
  • Příspěvků: 383
Re: Windowsák instaluje Ubuntu server - pomoc
« Odpověď #2 kdy: 26 Dubna 2009, 13:35:12 »
1.) Považuji se za důvěryhodného. Vím, musí to udělat třeba VeriSign, apod., ale mě by stačilo, kdybych si ho podepsal sám, nevíě, jak na to?
« Poslední změna: 26 Dubna 2009, 13:37:49 od Thomas123 »
Ten Linux není špatná věc, jen se s tím naučit. Windowsák není zvyklý.

Martin - ViPEr*CZ*

Re: Windowsák instaluje Ubuntu server - pomoc
« Odpověď #3 kdy: 26 Dubna 2009, 13:39:28 »
Ad 1) nedávno jsem zkoušel jak se pracuje s https zabezpečeným protokolem a na netu je toho spousta jak si vygenerovat podpis.
Ad 2) he he... to už se tam nedostanete... musíte přeinstalovat mysql nejlépe odebrat pomocí purge a pak znovu nainstalovat.
Open source is gold way... Mint 17.2, Debian 8.1 Jessie| Ubuntu Wiki (návody) | Google vyhledávač | Qt4 návody

Thomas123

  • Aktivní člen
  • *
  • Příspěvků: 383
Re: Windowsák instaluje Ubuntu server - pomoc
« Odpověď #4 kdy: 26 Dubna 2009, 16:59:37 »
1.) Dobrá, zkusím si lépe pohrát s Googlem.
2.) To jste asi odpovídal k tomu rootovskému heslu, o kterém jsem psal v předchozím příspěvku, pak jsem to z příspěvku oddělal, protože jsem to opravil bez reinstalace mysql.

Jinak bych byl opravdu rád, kdybyste mi pomohli s tím mail serverem, čím bych měl začít, nebo nenapsal by mi někdo v bodech, jak by mělo takové zprovoznění vypadat? Ty body si nepředstavuji jako návod step by step, ale na co bych si měl dát pozor a v jaké posloupnosti, pak bych se už ptal konkrétně třeba na nějaký problém.
Ten Linux není špatná věc, jen se s tím naučit. Windowsák není zvyklý.

stderr

  • Aktivní člen
  • *
  • Příspěvků: 275
  • globglob, Charliee, we're scuba diving Charlieee!
ad mail server: dobrý návody jsou na www.howtoforge.com (vetsinou dokonce copy & paste), namátkou: http://www.howtoforge.com/virtual-users-domains-postfix-courier-mysql-squirrelmail-ubuntu8.10 (verze ubntu se lisi minimalne, takze navod pro 8.10 nicemu nevadi).

ad certifikat: nevim, jak to presne vyzaduje webmin, ale zase navodů jsou na netu sposty, např.: http://www.akadia.com/services/ssh_test_certificate.html . Certifikat bude self-signed, takze Te na nej budou prohlizece upozornovat, jako na neduveryhodny. Pokud nebudes provozovat nejaky super navstevovany server, kde by to lidi obtezovalo a bude to jen pro zabezpeceni Tve aplikace, pak neni problem..

ad DNS: doporucuji vetsinou nastaveni:
A zaznam: mail.domena.cz -> <IP>
MX zaznam domena.cz -> mail.domena.cz.
Jeste bych pak myslel na nastaveni reverzni DNS (nastavuje spravce IP adresy)

Ad 2) he he... to už se tam nedostanete... musíte přeinstalovat mysql nejlépe odebrat pomocí purge a pak znovu nainstalovat.
tolik příspěvků, moderátor a takový mystifikace ;)
« Poslední změna: 26 Dubna 2009, 21:28:18 od kubiis »
Fedora & CentOS (RHEL) user ... co tu vlastně dělám?
Blog /dev/stderr & twitr

Thomas123

  • Aktivní člen
  • *
  • Příspěvků: 383
Prolézal jsem to howtoforge dříve než jsem se zeptal a tohle jsem opravdu nenašel, našel jsem něco na archlinux.
Pochopil jsem správně, že veškeré https (tedy spojení s SSL certifikátem) bude podepsáno (tedy nejen pro webmin, ale pro vše ostatní běžící na apache2)?

Jinak myslíte si, že to v tom návodu na mailserver je dostačující a bezpečné?

Ještě k tomu DNS, mám nastavit mail.domena.cz, to "mail" je subdoména nebo se mi to v průběhu toho návodu vytvoří?
Jinak to o tom reverzním záznamu jsem nějak nepochytil z vysvětlení na netu. A záznam, MX záznam a CNAME nastavím u registrátora domény (Active 24), ale co s tím reverzním DNS?
« Poslední změna: 26 Dubna 2009, 22:24:20 od Thomas123 »
Ten Linux není špatná věc, jen se s tím naučit. Windowsák není zvyklý.

Martin Kiklhorn

  • Člen občanského sdružení Ubuntu ČR a placené komunitní podpory
  • Administrátor fóra
  • Závislák
  • ******
  • Příspěvků: 4807
  • グーグル!ご存知ですか?
    • HEJ
ale co s tím reverzním DNS?
Nastaví ten od koho máte přidělenou IP adresu.
Jsou ve vašem dotazu OPRAVDU VŠECHNY vám dostupné informace o problému?
Linux user since 2007-10-11, Registered #456007
Virtual
| Distribuce
~/slozka znamená /home/"vase jmeno"/slozka
6521 69DE 0F34 FCBC FB1D  DE76 360E 52B2 F71A B8E8

Thomas123

  • Aktivní člen
  • *
  • Příspěvků: 383
Tak s tím Webminem mi to nejde. Postupoval jsem přesně podle tohoto http://www.virtualmin.com/faq/cat/webmin/68/#faq6 , ale nikam jsem se nedobral. Poslední "service webmin restart" jsem změnil rovnou na restart serveru. IE8 mi stále hází chybný certifikát a netuším, jak ho mám donutit, aby mi sebral alespoň ten mnou podepsaný.
edit: Asi jsem našel chybu, tím, že to testuji na mé LAN, tak mám přidělené místo jména IP a to se s tou adresou v certifikátu neshoduje. Asi to bude tím, ale nejsem si jist.

A ještě bych se chtěl zeptat kolem DNS. V záznamu u registrátora mám:
A záznam :
xxx.net ip.ip.ip.ip
www.xxx.net ip.ip.ip

CNAME:
*.xxx.net www.xxx.net

Preferuji doménu bez www, podle mě by se mělo dát to nějak nastavit přímo v DNS, ale nevím jak. Je tedy nějaká možnost to utvořit? Dostal jsem v podstatě jen takovýhle nápad:

A záznam :
xxx.net ip.ip.ip.ip
*.xxx.net ip.ip.ip.ip

CNAME:
žádný

Myslíte si, že je to reálný způsob? Nebo by se dalo např. s tím mým stávajícím zápisem v DNS nějak donutit můj server, aby automaticky vše s www, ww a w přesměrovával na adresu xxx.net (tedy na adresu bez www)?

K tomu reverznímu DNS jsem se již dobádal, že to tedy překládá IP --> doménové jméno, tady jsem se dozvěděl, že to musím nechat zřídit u toho, kdo mi IP přidělil. Ještě bych se ale chtěl zeptat, co mám tomu, kdo mi IP přidělil říct k tomu reverznímu DNS, co se tam zaznamenává, je potřeba akorát sdělit doménové jméno (xxx.net) nebo můj hostname (server.xxx.net) nebo něco, co nastavím v postfixu?

Ještě bych se chtěl zeptat, v tom návodu z howtoforge, který je postnutý výše, tak tam mám používat (místo server1.example.com) můj hostname (server.xxx.net) nebo si můžu vymyslet třeba (mail.xxx.net)?

Děkuji všem, kteří se mi tu věnují.
« Poslední změna: 27 Dubna 2009, 16:56:08 od Thomas123 »
Ten Linux není špatná věc, jen se s tím naučit. Windowsák není zvyklý.

stderr

  • Aktivní člen
  • *
  • Příspěvků: 275
  • globglob, Charliee, we're scuba diving Charlieee!
ad DNS:
nevím jestli chápu správně.. Chceš, aby vsechny domeny 3. radu (<toto>.domena.net) ukazovaly na domena.net? Nebo jen některé? Jestli všechny, tak stačí A záznam @ domena.net (bez domeny 3. řádu) a *.domena.net (všechny domény 3. řádu) nasměrovat na stejnou IP a potom v configu webserveru nastavit ServerName domena.net a ServerAlias *.domena.net.

ad rDNS:
asi nejlepší bude nastavit to, co máš (budeš mít) v postfixu jako "myhostname" (jak se postfix hlásí, když odesílá mejl)

ad howtoforge:
můžeš používat co Tě napadne..jen si pak podle toho nezapoměň nastavit DNS.

ad certifikát:
nevím, co Ti přesně IE píše, ale jak jsem psal výš: Tvůj certifikát je self-signed, takže ho prohlížeče berou jako nedůvěryhodný. Buď si jej v prohlížeči ulož, pak Ti dá pokoj a nebo si ho nech podepsat od důvěryhodné certifikační autority, kterou prohlížeče berou (to samozřejmě něco stojí)
Fedora & CentOS (RHEL) user ... co tu vlastně dělám?
Blog /dev/stderr & twitr

Thomas123

  • Aktivní člen
  • *
  • Příspěvků: 383
DNS:
Zeptám se ještě jinak, ten tvůj postup jsem pochopil, ale potřeboval bych udělat jednu věc, aby se blog.xxx.net přesměrovalo na xxx.net/blog/. Pokud to jde udělat nějak jinak než vytvořením virtual hostu a php scriptu s přesměrováním 301?

rDNS: Dobrá, zítra kontaktuji zítra svého poskytovatele o zapsání mail.xxx.net

certifikát: IE vypíše normálně takovou tu chybu zabezpečení, červená stránka s upozornění, že doporučují zavřít to okno nebo pokračovat na vlastní riziko. Jak si mám ten certifikát v IE uložit?
Ten Linux není špatná věc, jen se s tím naučit. Windowsák není zvyklý.

Martin - ViPEr*CZ*

DNS:
Zeptám se ještě jinak, ten tvůj postup jsem pochopil, ale potřeboval bych udělat jednu věc, aby se blog.xxx.net přesměrovalo na xxx.net/blog/. Pokud to jde udělat nějak jinak než vytvořením virtual hostu a php scriptu s přesměrováním 301?
.htaccess
certifikát: IE vypíše normálně takovou tu chybu zabezpečení, červená stránka s upozornění, že doporučují zavřít to okno nebo pokračovat na vlastní riziko. Jak si mám ten certifikát v IE uložit?
Tady všichni používáme FF přinejmenším  ;D
Open source is gold way... Mint 17.2, Debian 8.1 Jessie| Ubuntu Wiki (návody) | Google vyhledávač | Qt4 návody

Thomas123

  • Aktivní člen
  • *
  • Příspěvků: 383
Kód: [Vybrat]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^blog\.xxx\.net [NC]
RewriteRule (.*) http://xxx.net/$1 [R=301,L]

Takhle by měl vypadat soubor .htaccess a mám ho umístit do rootu webu (/var/www/)? Bude fungovat i tam, i když subdoména v podstatě neexistuje?
Ten Linux není špatná věc, jen se s tím naučit. Windowsák není zvyklý.

Martin - ViPEr*CZ*

Jestli http://xxx.net/ ukazuje do /var/www/ tak umístit tam ;)
Open source is gold way... Mint 17.2, Debian 8.1 Jessie| Ubuntu Wiki (návody) | Google vyhledávač | Qt4 návody

Thomas123

  • Aktivní člen
  • *
  • Příspěvků: 383
Ano, xxx.net má root v /var/www/. Takže super, tohle by bylo vyřešené, půjdu nastavit to DNS a začnu si hrát s mailem.

Edit:: DNS změněno, stávající server upraven, nový taktéž upraven. Uvidíme, jestli to pak v reálu bude fungovat  ;)

Já trouba si spletl to s tím htaccess.
Kód: [Vybrat]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^blog\.xxx\.net [NC]
RewriteRule (.*) http://xxx.net/blog/$1 [R=301,L]
Tenhle .htaccess mám umístit kam? Ten první neplatí, to jsem si spletl.
« Poslední změna: 27 Dubna 2009, 21:14:01 od Thomas123 »
Ten Linux není špatná věc, jen se s tím naučit. Windowsák není zvyklý.

Martin - ViPEr*CZ*

No pořád do rootu ;)
Open source is gold way... Mint 17.2, Debian 8.1 Jessie| Ubuntu Wiki (návody) | Google vyhledávač | Qt4 návody

Thomas123

  • Aktivní člen
  • *
  • Příspěvků: 383
Ano, než jsem to tu stačil opravit, tak jsem na to také přišel.
Ten Linux není špatná věc, jen se s tím naučit. Windowsák není zvyklý.

Thomas123

  • Aktivní člen
  • *
  • Příspěvků: 383
Více méně jsem postupoval podle tohoto návodu, co mě napadlo jsem si ještě trochu upravil. Vše vypadá, že jsem udělal správně, jen jsem ještě nedal žádná data do MySQL, nezkusil mailx a nenainstaloval SquirrelMail.

Ten SquirrelMail se mi absolutně nelíbí, ten tam ani instalovat nebudu. Chtěl bych se zeptat, zda bude těžké nainstalovat RoundCube, zda si myslíte, že je bezpečný? Jinak, půjde RoundCube nainstalovat do xxx.net/mail/? Mělo by vše fungovat? Bude asi lepší, když RoundCube nainstaluji apt-get install roundcube a pak použiji webový instalátor?
Ten Linux není špatná věc, jen se s tím naučit. Windowsák není zvyklý.

Thomas123

  • Aktivní člen
  • *
  • Příspěvků: 383
Re: Windowsák instaluje Ubuntu server - mailserver, roundcube
« Odpověď #18 kdy: 29 Dubna 2009, 12:03:54 »
Tak jsem nainstaloval RoundCube, webový "doinstalátor" nefungoval, tak jsem stáhl a uploadl roundcube ke stažení, konfiguráky jsem pak překopíroval do /etc/roundcube/.

Chci se zeptat, jak mám nastavit, aby se RC nezadával pod http, ale pod https - na to jsem nikde nepřišel.

Jinak tu je můj konfigurák main.inc.php, ale nevím, jak mám udělat, aby to spolupracovalo s uživatelema v databázi. Mám ten konfigurák vůbec správně?

Kód: [Vybrat]
<?php

/*
 +-----------------------------------------------------------------------+
 | Main configuration file                                               |
 |                                                                       |
 | This file is part of the RoundCube Webmail client                     |
 | Copyright (C) 2005-2009, RoundCube Dev. - Switzerland                 |
 | Licensed under the GNU GPL                                            |
 |                                                                       |
 +-----------------------------------------------------------------------+

*/

$rcmail_config = array();


// system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace
$rcmail_config['debug_level'] = 1;

// log driver:  'syslog' or 'file'.
$rcmail_config['log_driver'] = 'file';

// Syslog ident string to use, if using the 'syslog' log driver.
$rcmail_config['syslog_id'] = 'roundcube';

// Syslog facility to use, if using the 'syslog' log driver.
// For possible values see installer or http://php.net/manual/en/function.openlog.php
$rcmail_config['syslog_facility'] = LOG_USER;

// use this folder to store log files (must be writeable for apache user)
// This is used by the 'file' log driver.
$rcmail_config['log_dir'] = 'logs/roundcube';

// use this folder to store temp files (must be writeable for apache user)
$rcmail_config['temp_dir'] = 'temp/';

// enable caching of messages and mailbox data in the local database.
// this is recommended if the IMAP server does not run on the same machine
$rcmail_config['enable_caching'] = false;

// lifetime of message cache
// possible units: s, m, h, d, w
$rcmail_config['message_cache_lifetime'] = '10d';

// automatically create a new RoundCube user when log-in the first time.
// a new user will be created once the IMAP login succeeds.
// set to false if only registered users can use this service
$rcmail_config['auto_create_user'] = false;

// the mail host chosen to perform the log-in
// leave blank to show a textbox at login, give a list of hosts
// to display a pulldown menu or set one host as string.
// To use SSL connection, enter ssl://hostname:993
$rcmail_config['default_host'] = 'ssl://localhost';

// TCP port used for IMAP connections
$rcmail_config['default_port'] = 143;

// IMAP auth type. Can be "auth" (CRAM-MD5), "plain" (PLAIN) or "check" to auto detect.
// Optional, defaults to "check"
$rcmail_config['imap_auth_type'] = null;

// If you know your imap's root directory and its folder delimiter,
// you can specify them here. Otherwise they will be determined automatically.
$rcmail_config['imap_root'] = null;
$rcmail_config['imap_delimiter'] = null;

// Automatically add this domain to user names for login
// Only for IMAP servers that require full e-mail addresses for login
// Specify an array with 'host' => 'domain' values to support multiple hosts
$rcmail_config['username_domain'] = '';

// This domain will be used to form e-mail addresses of new users
// Specify an array with 'host' => 'domain' values to support multiple hosts
$rcmail_config['mail_domain'] = '';

// Path to a virtuser table file to resolve user names and e-mail addresses
$rcmail_config['virtuser_file'] = '';

// Query to resolve user names and e-mail addresses from the database
// %u will be replaced with the current username for login.
// The query should select the user's e-mail address as first col
$rcmail_config['virtuser_query'] = '';

// use this host for sending mails.
// to use SSL connection, set ssl://smtp.host.com
// if left blank, the PHP mail() function is used
$rcmail_config['smtp_server'] = 'ssl://localhost/';

// SMTP port (default is 25; 465 for SSL)
$rcmail_config['smtp_port'] = 25;

// SMTP username (if required) if you use %u as the username RoundCube
// will use the current username for login
$rcmail_config['smtp_user'] = '%u';

// SMTP password (if required) if you use %p as the password RoundCube
// will use the current user's password for login
$rcmail_config['smtp_pass'] = '%p';

// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
// best server supported one)
$rcmail_config['smtp_auth_type'] = '';

// SMTP HELO host 
// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages 
// Leave this blank and you will get the server variable 'server_name' or 
// localhost if that isn't defined. 
$rcmail_config['smtp_helo_host'] = '';

// Log sent messages
$rcmail_config['smtp_log'] = TRUE;

// How many seconds must pass between emails sent by a user
$rcmail_config['sendmail_delay'] = 0;

// These cols are shown in the message list. Available cols are:
// subject, from, to, cc, replyto, date, size, flag, attachment
$rcmail_config['list_cols'] = array('subject''from''date''size''flag''attachment');

// Includes should be interpreted as PHP files
$rcmail_config['skin_include_php'] = FALSE;

// Session lifetime in minutes
// must be greater than 'keep_alive'/60
$rcmail_config['session_lifetime'] = 10;

// check client IP in session athorization
$rcmail_config['ip_check'] = true;

// Use an additional frequently changing cookie to athenticate user sessions.
// There have been problems reported with this feature.
$rcmail_config['double_auth'] = false;

// this key is used to encrypt the users imap password which is stored
// in the session record (and the client cookie if remember password is enabled).
// please provide a string of exactly 24 chars.
$rcmail_config['des_key'] = '&bgYP1Q1gDljFIBLRkrTNtHS';

// the default locale setting (leave empty for auto-detection)
// RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
$rcmail_config['language'] = 'cs_CZ';

// use this format for short date display
$rcmail_config['date_short'] = 'D H:i';

// use this format for detailed date/time formatting
$rcmail_config['date_long'] = 'd.m.Y H:i';

// use this format for today's date display
$rcmail_config['date_today'] = 'H:i';

// add this user-agent to message headers when sending
$rcmail_config['useragent'] = 'RoundCube Webmail/0.2.1';

// use this name to compose page titles
$rcmail_config['product_name'] = 'ProfiWeb.net Webmail';

// store draft message is this mailbox
// leave blank if draft messages should not be stored
$rcmail_config['drafts_mbox'] = 'Koncepty';

// store spam messages in this mailbox
$rcmail_config['junk_mbox'] = 'Nevy~ádaná poata';

// store sent message is this mailbox
// leave blank if sent messages should not be stored
$rcmail_config['sent_mbox'] = 'Odeslané';

// move messages to this folder when deleting them
// leave blank if they should be deleted directly
$rcmail_config['trash_mbox'] = 'Koa';

// display these folders separately in the mailbox list.
// these folders will also be displayed with localized names
$rcmail_config['default_imap_folders'] = array('INBOX''Drafts''Sent''Junk''Trash');

// automatically create the above listed default folders on login
$rcmail_config['create_default_folders'] = FALSE;

// protect the default folders from renames, deletes, and subscription changes
$rcmail_config['protect_default_folders'] = TRUE;

// if in your system 0 quota means no limit set this option to TRUE 
$rcmail_config['quota_zero_as_unlimited'] = FALSE;

// Behavior if a received message requests a message delivery notification (read receipt)
// 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask)
$rcmail_config['mdn_requests'] = 0;

// Use this charset as fallback for message decoding
$rcmail_config['default_charset'] = 'ISO-8859-1';

// Make use of the built-in spell checker. It is based on GoogieSpell.
// Since Google only accepts connections over https your PHP installatation
// requires to be compiled with Open SSL support
$rcmail_config['enable_spellcheck'] = TRUE;

// Set the spell checking engine. 'googie' is the default. 'pspell' is also available,
// but requires the Pspell extensions. When using Nox Spell Server, also set 'googie' here.
$rcmail_config['spellcheck_engine'] = 'googie';

// For a locally installed Nox Spell Server, please specify the URI to call it.
// Get Nox Spell Server from http://orangoo.com/labs/?page_id=72
// Leave empty to use the Google spell checking service, what means
// that the message content will be sent to Google in order to check spelling
$rcmail_config['spellcheck_uri'] = '';

// These languages can be selected for spell checking.
// Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
// Leave empty for default set of Google spell check languages, should be defined
// when using local Pspell extension
$rcmail_config['spellcheck_languages'] = NULL;

// path to a text file which will be added to each sent message
// paths are relative to the RoundCube root folder
$rcmail_config['generic_message_footer'] = '';

// add a received header to outgoing mails containing the creators IP and hostname
$rcmail_config['http_received_header'] = false;

// this string is used as a delimiter for message headers when sending
// leave empty for auto-detection
$rcmail_config['mail_header_delimiter'] = NULL;

// session domain: .example.org
$rcmail_config['session_domain'] = '';

// This indicates which type of address book to use. Possible choises:
// 'sql' (default) and 'ldap'.
// If set to 'ldap' then it will look at using the first writable LDAP
// address book as the primary address book and it will not display the
// SQL address book in the 'Address Book' view.
$rcmail_config['address_book_type'] = 'sql';

// In order to enable public ldap search, configure an array like the Verisign
// example further below. if you would like to test, simply uncomment the example.
$rcmail_config['ldap_public'] = array();

//
// If you are going to use LDAP for individual address books, you will need to 
// set 'user_specific' to true and use the variables to generate the appropriate DNs to access it.
//
// The recommended directory structure for LDAP is to store all the address book entries
// under the users main entry, e.g.:
//
//  o=root
//   ou=people
//    uid=user@domain
//  mail=contact@contactdomain
//
// So the base_dn would be uid=%fu,ou=people,o=root
// The bind_dn would be the same as based_dn or some super user login.
/* 
 * example config for Verisign directory
 *
$rcmail_config['ldap_public']['Verisign'] = array(
  'name'          => 'Verisign.com',
  'hosts'         => array('directory.verisign.com'),
  'port'          => 389,
  'use_tls'     => false,
  'user_specific' => false,   // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.
  // %fu - The full username provided, assumes the username is an email
  //       address, uses the username_domain value if not an email address.
  // %u  - The username prior to the '@'.
  // %d  - The domain name after the '@'.
  'base_dn'       => '',
  'bind_dn'       => '',
  'bind_pass'     => '',
  'writable'      => false,   // Indicates if we can write to the LDAP directory or not.
  // If writable is true then these fields need to be populated:
  // LDAP_Object_Classes, required_fields, LDAP_rdn
  'LDAP_Object_Classes' => array("top", "inetOrgPerson"), // To create a new contact these are the object classes to specify (or any other classes you wish to use).
  'required_fields'     => array("cn", "sn", "mail"),     // The required fields needed to build a new contact as required by the object classes (can include additional fields not required by the object classes).
  'LDAP_rdn'      => 'mail', // The RDN field that is used for new entries, this field needs to be one of the search_fields, the base of base_dn is appended to the RDN to insert into the LDAP directory.
  'ldap_version'  => 3,       // using LDAPv3
  'search_fields' => array('mail', 'cn'),  // fields to search in
  'name_field'    => 'cn',    // this field represents the contact's name
  'email_field'   => 'mail',  // this field represents the contact's e-mail
  'surname_field' => 'sn',    // this field represents the contact's last name
  'firstname_field' => 'gn',  // this field represents the contact's first name
  'sort'          => 'cn',    // The field to sort the listing by.
  'scope'         => 'sub',   // search mode: sub|base|list
  'filter'        => '',      // used for basic listing (if not empty) and will be &'d with search queries. example: status=act
  'fuzzy_search'  => true);   // server allows wildcard search
*/

// An ordered array of the ids of the addressbooks that should be searched
// when populating address autocomplete fields server-side. ex: array('sql','Verisign');
$rcmail_config['autocomplete_addressbooks'] = array('sql');

// don't allow these settings to be overriden by the user
$rcmail_config['dont_override'] = array();

// Set identities access level:
// 0 - many identities with possibility to edit all params
// 1 - many identities with possibility to edit all params but not email address
// 2 - one identity with possibility to edit all params
// 3 - one identity with possibility to edit all params but not email address
$rcmail_config['identities_level'] = 3;

// try to load host-specific configuration
// see http://trac.roundcube.net/wiki/Howto_Config for more details
$rcmail_config['include_host_config'] = false;

// don't let users set pagesize to more than this value if set
$rcmail_config['max_pagesize'] = 200;

// mime magic database
$rcmail_config['mime_magic'] = '/usr/share/misc/magic';

// default sort col
$rcmail_config['message_sort_col'] = 'date';

// default sort order
$rcmail_config['message_sort_order'] = 'DESC';

// THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA.
// ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
$rcmail_config['enable_installer'] = false;

// Log successful logins
$rcmail_config['log_logins'] = false;

/**
 * 'Delete always'
 * This setting reflects if mail should be always marked as deleted,
 * even if moving to "Trash" fails. This is necessary in some setups
 * because a) people may not have a Trash folder or b) they are over
 * quota (and Trash is included in the quota).
 *
 * This is a failover setting for iil_C_Move when a message is moved
 * to the Trash.
 */
$rcmail_config['delete_always'] = false;

// Minimal value of user's 'keep_alive' setting (in seconds)
// Must be less than 'session_lifetime'
$rcmail_config['min_keep_alive'] = 60;

/***** these settings can be overwritten by user's preferences *****/

// skin name: folder from skins/
$rcmail_config['skin'] = 'default';

// show up to X items in list view
$rcmail_config['pagesize'] = 40;

// use this timezone to display date/time
$rcmail_config['timezone'] = 'auto';

// is daylight saving On?
$rcmail_config['dst_active'] = (bool)date('I');

// prefer displaying HTML messages
$rcmail_config['prefer_html'] = TRUE;

// display remote inline images
// 0 - Never, always ask
// 1 - Ask if sender is not in address book
// 2 - Always show inline images
$rcmail_config['show_images'] = 0;

// compose html formatted messages by default
$rcmail_config['htmleditor'] = FALSE;

// show pretty dates as standard
$rcmail_config['prettydate'] = TRUE;

// save compose message every 300 seconds (5min)
$rcmail_config['draft_autosave'] = 300;

// default setting if preview pane is enabled
$rcmail_config['preview_pane'] = FALSE;

// focus new window if new message arrives
$rcmail_config['focus_on_new_message'] = true;

// Clear Trash on logout
$rcmail_config['logout_purge'] = FALSE;

// Compact INBOX on logout
$rcmail_config['logout_expunge'] = FALSE;

// Display attached images below the message body 
$rcmail_config['inline_images'] = TRUE;

// Encoding of long/non-ascii attachment names:
// 0 - Full RFC 2231 compatible
// 1 - RFC 2047 for 'name' and RFC 2231 for 'filename' parameter (Thunderbird's default)
// 2 - Full 2047 compatible
$rcmail_config['mime_param_folding'] = 0;

// Set TRUE if deleted messages should not be displayed
// This will make the application run slower
$rcmail_config['skip_deleted'] = FALSE;

// Set true to Mark deleted messages as read as well as deleted
// False means that a message's read status is not affected by marking it as deleted
$rcmail_config['read_when_deleted'] = TRUE;

// When a Trash folder is not present and a message is deleted, flag 
// the message for deletion rather than deleting it immediately.  Setting this to 
// false causes deleted messages to be permanantly removed if there is no Trash folder
$rcmail_config['flag_for_deletion'] = FALSE;

// Default interval for keep-alive/check-recent requests (in seconds)
// Must be greater than or equal to 'min_keep_alive' and less than 'session_lifetime'
$rcmail_config['keep_alive'] = 60;

// If true all folders will be checked for recent messages
$rcmail_config['check_all_folders'] = FALSE;

// end of config file
?>
« Poslední změna: 29 Dubna 2009, 15:14:51 od Thomas123 »
Ten Linux není špatná věc, jen se s tím naučit. Windowsák není zvyklý.

Thomas123

  • Aktivní člen
  • *
  • Příspěvků: 383
Re: Windowsák instaluje Ubuntu server - mailserver, roundcube
« Odpověď #19 kdy: 29 Dubna 2009, 17:01:02 »
Tak jsem dle návodu nainstaloval squirrelmail a když se přihlásím, tak mi vyskočí jen toto:

ERROR: Connection dropped by IMAP server.

Kde dělám chybu?
Ten Linux není špatná věc, jen se s tím naučit. Windowsák není zvyklý.

stderr

  • Aktivní člen
  • *
  • Příspěvků: 275
  • globglob, Charliee, we're scuba diving Charlieee!
Re: Windowsák instaluje Ubuntu server - mailserver, roundcube
« Odpověď #20 kdy: 29 Dubna 2009, 17:06:01 »
buď je špatně konfigurák Squirrelu (připojení k imapú nebo neběží imap server ( :) ) nebo špatný jméno a heslo...? Určitě jsou další možnosti, teď mě jen nenapadají :)
Fedora & CentOS (RHEL) user ... co tu vlastně dělám?
Blog /dev/stderr & twitr

Thomas123

  • Aktivní člen
  • *
  • Příspěvků: 383
Re: Windowsák instaluje Ubuntu server - mailserver, roundcube
« Odpověď #21 kdy: 29 Dubna 2009, 17:11:09 »
Tady to mi vypsal config test:

Kód: [Vybrat]
SquirrelMail configtest
This script will try to check some aspects of your SquirrelMail configuration and point you to errors whereever it can find them. You need to go run conf.pl in the config/ directory first before you run this script.

SquirrelMail version: 1.4.13
Config file version: 1.4.0
Config file last modified: 29 April 2009 16:50:42


Checking PHP configuration...
    PHP version 5.2.4-2ubuntu5.6 OK.
    display_errors: 1
    error_reporting: 6135
    variables_order OK: EGPCS.
    PHP extensions OK.

    ERROR: You have enabled any one of magic_quotes_runtime, magic_quotes_gpc or magic_quotes_sybase in your PHP configuration. We recommend all those settings to be off. SquirrelMail may work with them on, but when experiencing stray backslashes in your mail or other strange behaviour, it may be advisable to turn them off.

Checking paths...
    Data dir OK.
    Attachment dir OK.
    Plugins OK.
    Themes OK.
    Default language OK.
    Base URL detected as: http://10.10.10.102/webmail/src (location base autodetected)
Checking outgoing mail service....
    SMTP server OK (220 mail.xxx.net ESMTP Postfix (Ubuntu))
Checking IMAP service....
    IMAP server ready (* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2005 Double Precision, Inc. See COPYING for distribution information.)
    Capabilities: * CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS
Checking internationalization (i18n) settings...
     gettext - Gettext functions are available. On some systems you must have appropriate system locales compiled.
     mbstring - Mbstring functions are available.
     recode - Recode functions are unavailable.
     iconv - Iconv functions are available.
     timezone - Webmail users can change their time zone settings.
Checking database functions...
    not using database functionality.

Congratulations, your SquirrelMail setup looks fine to me!


Takže na konfigurák squirrelu bych to netipoval, ten mi píše fine.Já bych to spíše asi viděl z těch tvých možností na připojení k imapu... Kde to mohu zkontrolovat?
Ten Linux není špatná věc, jen se s tím naučit. Windowsák není zvyklý.

soudruh

  • Aktivní člen
  • *
  • Příspěvků: 458
  • Na Linuxu se stále učím...
Re: Windowsák instaluje Ubuntu server - mailserver, roundcube
« Odpověď #22 kdy: 29 Dubna 2009, 17:16:19 »
k RC, tak ten nemusíš konfigurovat aby bral uživatele z DB, protože on to kontroluje podle IMAP serveru, takže ty musíš nastavit ten IMAP aby to bral z DB.
Xubuntu 12.10@fermium; Ubuntu 12.04@mandelevium; Android 2.3.3@nobellum; Ubuntu 9.04@lawrencium; FreeNAS@rutherfordium; Xubuntu 12.04@dubnium

Thomas123

  • Aktivní člen
  • *
  • Příspěvků: 383
Re: Windowsák instaluje Ubuntu server - mailserver, roundcube
« Odpověď #23 kdy: 29 Dubna 2009, 17:20:31 »
Jak mám nastavit ten IMAP?
Ten Linux není špatná věc, jen se s tím naučit. Windowsák není zvyklý.

Martin - ViPEr*CZ*

Re: Windowsák instaluje Ubuntu server - mailserver, roundcube
« Odpověď #24 kdy: 29 Dubna 2009, 17:20:38 »
k RC, tak ten nemusíš konfigurovat aby bral uživatele z DB, protože on to kontroluje podle IMAP serveru, takže ty musíš nastavit ten IMAP aby to bral z DB.
Přesně... SQuirrell hned po instalaci se řídí podle imap serveru. Pokud se ti nejde přihlásit je někde chyba v imap serveru. Každopádně v logu ti to ukazuje jestli se ti to pokouší přihlašovat přes imap a jak to proběhne ;) I když se přiznám, že radi používám RoundCube ;)
Open source is gold way... Mint 17.2, Debian 8.1 Jessie| Ubuntu Wiki (návody) | Google vyhledávač | Qt4 návody

 

Provoz zaštiťuje spolek OpenAlt.