* [Comm] вся почта в базе sql @ 2004-06-23 16:26 Maxim 2004-06-24 6:02 ` Klimchev Konstantin 2004-06-24 7:11 ` Alexey S. Kuznetsov 0 siblings, 2 replies; 13+ messages in thread From: Maxim @ 2004-06-23 16:26 UTC (permalink / raw) To: ALT Linux Mail List народ, а я так понял, что при все приколах постфикса цируса и курьера, сама база писем хранится в файле, и никак ее нельзя запихать в например postgres. Я прочитал в описании цируса, что там при компиляции можно выбрать базу для хранения, но как это сделать и что потом делать ни слова. Если есть опыт поделитесь. -- Maxim mailto:max_conf@e-foto.ru 23 июня 2004 г. 20:23 ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Comm] вся почта в базе sql 2004-06-23 16:26 [Comm] вся почта в базе sql Maxim @ 2004-06-24 6:02 ` Klimchev Konstantin 2004-06-24 10:23 ` Re[2]: " php-coder 2004-06-24 11:31 ` Maxim Tyurin 2004-06-24 7:11 ` Alexey S. Kuznetsov 1 sibling, 2 replies; 13+ messages in thread From: Klimchev Konstantin @ 2004-06-24 6:02 UTC (permalink / raw) To: community On Wed, 23 Jun 2004 20:26:04 +0400 Maxim <max_conf@e-foto.ru> wrote: > народ, а я так понял, что при все приколах постфикса цируса и курьера, сама база > писем хранится в файле, и никак ее нельзя запихать в например postgres. Если нужно хранить почту в SQL - посмотрите dbmail (http://dbmail.org) - может быть это то, что вы ищите. -- Best Regards, Konstantin Klimchev (mailto:koka@atvc.ru jabber:koka@jabber.atvc.ru) ATK-Internet ISP, Arkhangelsk, Russia ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re[2]: [Comm] вся почта в базе sql 2004-06-24 6:02 ` Klimchev Konstantin @ 2004-06-24 10:23 ` php-coder 2004-06-24 11:31 ` Maxim Tyurin 1 sibling, 0 replies; 13+ messages in thread From: php-coder @ 2004-06-24 10:23 UTC (permalink / raw) To: Klimchev Konstantin 0000100101011110100100101::24.06.2004::0110001001001000100111100100010 Здравствуйте, Klimchev! Отвечаю на Ваше письмо: > Если нужно хранить почту в SQL - посмотрите dbmail (http://dbmail.org) > - может быть это то, что вы ищите. "Создание почтовой системы на базе exim, dbmail, amavisd-new и postgresql" - http://www.ezh.msk.ru/article/mailsystem/ -- С уважением, php-coder (mailto:php-coder[at]ngs[dot]ru) Registered Linux User #327594 ALT Linux Master 2.2 010010010010010001010101100::Linux RuleZz!::100010010001000100010001110 ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Comm] вся почта в базе sql 2004-06-24 6:02 ` Klimchev Konstantin 2004-06-24 10:23 ` Re[2]: " php-coder @ 2004-06-24 11:31 ` Maxim Tyurin 1 sibling, 0 replies; 13+ messages in thread From: Maxim Tyurin @ 2004-06-24 11:31 UTC (permalink / raw) To: community Klimchev Konstantin <koka@atvc.ru> writes: > On Wed, 23 Jun 2004 20:26:04 +0400 > Maxim <max_conf@e-foto.ru> wrote: > >> народ, а я так понял, что при все приколах постфикса цируса и курьера, сама база >> писем хранится в файле, и никак ее нельзя запихать в например postgres. > > Если нужно хранить почту в SQL - посмотрите dbmail > (http://dbmail.org) - может быть это то, что вы ищите. Этому dbmail еще бы поддержку shared folders была бы рулезная вещь. А пока у них shared в нестабильной ветке и написано что сильно экспериментально. -- With Best Regards, Maxim Tyurin JID: MrKooll@jabber.pibhe.com ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [Comm] вся почта в базе sql 2004-06-23 16:26 [Comm] вся почта в базе sql Maxim 2004-06-24 6:02 ` Klimchev Konstantin @ 2004-06-24 7:11 ` Alexey S. Kuznetsov 2004-06-24 8:06 ` Re[2]: " Maxim 1 sibling, 1 reply; 13+ messages in thread From: Alexey S. Kuznetsov @ 2004-06-24 7:11 UTC (permalink / raw) To: Maxim Hello Maxim, Wednesday, June 23, 2004, 7:26:04 PM, you wrote: M> народ, а я так понял, что при все приколах постфикса цируса и курьера, сама база M> писем хранится в файле, и никак ее нельзя запихать в например postgres. M> Я прочитал в описании цируса, что там при компиляции можно выбрать базу для M> хранения, но как это сделать и что потом делать ни слова. M> Если есть опыт поделитесь. M> -- M> Maxim mailto:max_conf@e-foto.ru M> 23 июня 2004 г. 20:23 а зачем тебе все письма хранить в базе? чем тебя файлы не устраивают? -- Sincerely, Alexey S. Kuznetsov AK2351-RIPE ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re[2]: [Comm] вся почта в базе sql 2004-06-24 7:11 ` Alexey S. Kuznetsov @ 2004-06-24 8:06 ` Maxim 2004-06-24 8:18 ` Alex Gorbachenko ` (2 more replies) 0 siblings, 3 replies; 13+ messages in thread From: Maxim @ 2004-06-24 8:06 UTC (permalink / raw) To: Alexey S. Kuznetsov Здравствуйте, Alexey. Вы писали 24 июня 2004 г., 11:11:00: ASK> Hello Maxim, ASK> Wednesday, June 23, 2004, 7:26:04 PM, you wrote: M>> народ, а я так понял, что при все приколах постфикса цируса и курьера, сама база M>> писем хранится в файле, и никак ее нельзя запихать в например postgres. M>> Я прочитал в описании цируса, что там при компиляции можно выбрать базу для M>> хранения, но как это сделать и что потом делать ни слова. M>> Если есть опыт поделитесь. ASK> а зачем тебе все письма хранить в базе? ASK> чем тебя файлы не устраивают? а когда у вас почтовые ящики по двести мегабайт и в них скапливается больше тысячи писем, что эффективнее, файл или база данных? на самом деле просто я считаю что база почты это данные, а данные должны храниться в базах данных. Например вам не придется шерстить весь файл почтового ящика для получения заголовков для передачи по IMAP протоколу, простой SQL запрос это сделает за пару секунд. Думаю что если поглубже вникнуть, то можно найти еще кучу преимуществ. А вот кстати противопоказаний практически нет. Разве что одно, добавляется новый пакет для работы почты. Если раньше хватало только постфикса и простейшего имап сервера, то тут еще нужна будет база данных. -- С уважением, Maxim mailto:max_conf@e-foto.ru ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re[2]: [Comm] вся почта в базе sql 2004-06-24 8:06 ` Re[2]: " Maxim @ 2004-06-24 8:18 ` Alex Gorbachenko 2004-06-24 10:44 ` Re[4]: " Maxim 2004-06-24 8:51 ` Re[2]: " Владимир Гусев 2004-06-24 8:52 ` Re[3]: " Alexey S. Kuznetsov 2 siblings, 1 reply; 13+ messages in thread From: Alex Gorbachenko @ 2004-06-24 8:18 UTC (permalink / raw) To: community [-- Attachment #1: Type: text/plain, Size: 274 bytes --] On Thu, 24 Jun 2004 12:06:07 +0400 Maxim <max_conf@e-foto.ru> wrote: > а когда у вас почтовые ящики по двести мегабайт и в них скапливается больше > тысячи писем, что эффективнее, файл или база данных? Maildir. --- Sylpheed 0.9.10 * Origin: Низведение плюшками. [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re[4]: [Comm] вся почта в базе sql 2004-06-24 8:18 ` Alex Gorbachenko @ 2004-06-24 10:44 ` Maxim 0 siblings, 0 replies; 13+ messages in thread From: Maxim @ 2004-06-24 10:44 UTC (permalink / raw) To: Alex Gorbachenko Здравствуйте, Alex. Вы писали 24 июня 2004 г., 12:18:06: AG> On Thu, 24 Jun 2004 12:06:07 +0400 AG> Maxim <max_conf@e-foto.ru> wrote: >> а когда у вас почтовые ящики по двести мегабайт и в них скапливается больше >> тысячи писем, что эффективнее, файл или база данных? AG> Maildir. все равно, любая система управления базами данных даст фору в скорости обработки данных практически любой файловой системе. Простой пример, надо получить две тысячи заголовков "от кого", "кому", "тема". Для любой SQL системы две выбрать две тысячи записей это 1-3 секунды. Больше времени уйдет на передачу их по сети. При том выборка не зависит от размера самих писем, потому что поля базы данных строго сегментированы и система знает откуда что считывать, плюс индексация, плюс сортировка (о сортировке вообще молчу, в системах управления баз данных реализованы самые лучшие алгоритмы сортировки, вряд ли хоть каком-нибудь сервер сделано что то подобное), и это все вы получаете за секунды. Будет ли хоть какая то не база данных реализовывать такую скорость? Очень сомневаюсь. А если писем будет не две тысячи а миллион? Например суммирование столбца целых чисел в таблице с 831000 записями занимает 49 секунд. Это в лоб без оптимизации, при достаточно большой нагрузке сервера другими задачами. -- С уважением, Maxim mailto:max_conf@e-foto.ru ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re[2]: [Comm] вся почта в базе sql 2004-06-24 8:06 ` Re[2]: " Maxim 2004-06-24 8:18 ` Alex Gorbachenko @ 2004-06-24 8:51 ` Владимир Гусев 2004-06-24 8:54 ` Re[4]: " Alexey S. Kuznetsov 2004-06-24 8:52 ` Re[3]: " Alexey S. Kuznetsov 2 siblings, 1 reply; 13+ messages in thread From: Владимир Гусев @ 2004-06-24 8:51 UTC (permalink / raw) To: community On Thu, 24 Jun 2004 12:06:07 +0400, Maxim <max_conf@e-foto.ru> wrote: > Здравствуйте, Alexey. > > Вы писали 24 июня 2004 г., 11:11:00: > > > ASK> Hello Maxim, > > ASK> Wednesday, June 23, 2004, 7:26:04 PM, you wrote: > > > M>> народ, а я так понял, что при все приколах постфикса цируса и > курьера, сама база > M>> писем хранится в файле, и никак ее нельзя запихать в например > postgres. > > M>> Я прочитал в описании цируса, что там при компиляции можно выбрать > базу для > M>> хранения, но как это сделать и что потом делать ни слова. > > M>> Если есть опыт поделитесь. > > ASK> а зачем тебе все письма хранить в базе? > ASK> чем тебя файлы не устраивают? > > а когда у вас почтовые ящики по двести мегабайт и в них скапливается > больше > тысячи писем, что эффективнее, файл или база данных? > > на самом деле просто я считаю что база почты это данные, а данные должны > храниться в базах данных. Например вам не придется шерстить весь файл > почтового > ящика для получения заголовков для передачи по IMAP протоколу, простой > SQL > запрос это сделает за пару секунд. > Думаю что если поглубже вникнуть, то можно найти еще кучу преимуществ. > А вот кстати противопоказаний практически нет. Разве что одно, > добавляется новый > пакет для работы почты. Если раньше хватало только постфикса и > простейшего имап > сервера, то тут еще нужна будет база данных. > > тут очень сильно выигрывает почтовик Оперы 7 - М2... В нем как раз реализована своя встроенная база данных, индексирующая письма.. так что у меня поиск слова в теле письма среди моих 125000 писем занимает пару-тройку секунд.. Да и виртуальные папки и фильтры там довольно неплохие... И все работает... -- С уважением, Владимир Гусев ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re[4]: [Comm] вся почта в базе sql 2004-06-24 8:51 ` Re[2]: " Владимир Гусев @ 2004-06-24 8:54 ` Alexey S. Kuznetsov 2004-06-24 9:30 ` Владимир Гусев 0 siblings, 1 reply; 13+ messages in thread From: Alexey S. Kuznetsov @ 2004-06-24 8:54 UTC (permalink / raw) To: Владимир Гусев Hello Владимир, Thursday, June 24, 2004, 11:51:52 AM, you wrote: ВГ> On Thu, 24 Jun 2004 12:06:07 +0400, Maxim <max_conf@e-foto.ru> wrote: >> Здравствуйте, Alexey. >> >> Вы писали 24 июня 2004 г., 11:11:00: >> >> >> ASK> Hello Maxim, >> >> ASK> Wednesday, June 23, 2004, 7:26:04 PM, you wrote: >> >> >> M>> народ, а я так понял, что при все приколах постфикса цируса и >> курьера, сама база >> M>> писем хранится в файле, и никак ее нельзя запихать в например >> postgres. >> >> M>> Я прочитал в описании цируса, что там при компиляции можно выбрать >> базу для >> M>> хранения, но как это сделать и что потом делать ни слова. >> >> M>> Если есть опыт поделитесь. >> >> ASK> а зачем тебе все письма хранить в базе? >> ASK> чем тебя файлы не устраивают? >> >> а когда у вас почтовые ящики по двести мегабайт и в них скапливается >> больше >> тысячи писем, что эффективнее, файл или база данных? >> >> на самом деле просто я считаю что база почты это данные, а данные должны >> храниться в базах данных. Например вам не придется шерстить весь файл >> почтового >> ящика для получения заголовков для передачи по IMAP протоколу, простой >> SQL >> запрос это сделает за пару секунд. >> Думаю что если поглубже вникнуть, то можно найти еще кучу преимуществ. >> А вот кстати противопоказаний практически нет. Разве что одно, >> добавляется новый >> пакет для работы почты. Если раньше хватало только постфикса и >> простейшего имап >> сервера, то тут еще нужна будет база данных. >> >> ВГ> тут очень сильно выигрывает почтовик Оперы 7 - М2... В нем как раз ВГ> реализована своя встроенная база данных, индексирующая письма.. так что у ВГ> меня поиск слова в теле письма среди моих 125000 писем занимает ВГ> пару-тройку секунд.. ВГ> Да и виртуальные папки и фильтры там довольно неплохие... И все ВГ> работает... тут речь идёт не о клиентах, а о сервере. -- Sincerely, Alexey S. Kuznetsov AK2351-RIPE ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Re[4]: [Comm] вся почта в базе sql 2004-06-24 8:54 ` Re[4]: " Alexey S. Kuznetsov @ 2004-06-24 9:30 ` Владимир Гусев 0 siblings, 0 replies; 13+ messages in thread From: Владимир Гусев @ 2004-06-24 9:30 UTC (permalink / raw) To: community On Thu, 24 Jun 2004 11:54:37 +0300, Alexey S. Kuznetsov <buster@vostok.net.ua> wrote: > Hello Владимир, > > Thursday, June 24, 2004, 11:51:52 AM, you wrote: > > ВГ> On Thu, 24 Jun 2004 12:06:07 +0400, Maxim <max_conf@e-foto.ru> wrote: > >>> Здравствуйте, Alexey. >>> >>> Вы писали 24 июня 2004 г., 11:11:00: >>> >>> >>> ASK> Hello Maxim, >>> >>> ASK> Wednesday, June 23, 2004, 7:26:04 PM, you wrote: >>> >>> >>> M>> народ, а я так понял, что при все приколах постфикса цируса и >>> курьера, сама база >>> M>> писем хранится в файле, и никак ее нельзя запихать в например >>> postgres. >>> >>> M>> Я прочитал в описании цируса, что там при компиляции можно выбрать >>> базу для >>> M>> хранения, но как это сделать и что потом делать ни слова. >>> >>> M>> Если есть опыт поделитесь. >>> >>> ASK> а зачем тебе все письма хранить в базе? >>> ASK> чем тебя файлы не устраивают? >>> >>> а когда у вас почтовые ящики по двести мегабайт и в них скапливается >>> больше >>> тысячи писем, что эффективнее, файл или база данных? >>> >>> на самом деле просто я считаю что база почты это данные, а данные >>> должны >>> храниться в базах данных. Например вам не придется шерстить весь файл >>> почтового >>> ящика для получения заголовков для передачи по IMAP протоколу, простой >>> SQL >>> запрос это сделает за пару секунд. >>> Думаю что если поглубже вникнуть, то можно найти еще кучу преимуществ. >>> А вот кстати противопоказаний практически нет. Разве что одно, >>> добавляется новый >>> пакет для работы почты. Если раньше хватало только постфикса и >>> простейшего имап >>> сервера, то тут еще нужна будет база данных. >>> >>> > ВГ> тут очень сильно выигрывает почтовик Оперы 7 - М2... В нем как раз > ВГ> реализована своя встроенная база данных, индексирующая письма.. так > что у > ВГ> меня поиск слова в теле письма среди моих 125000 писем занимает > ВГ> пару-тройку секунд.. > ВГ> Да и виртуальные папки и фильтры там довольно неплохие... И все > ВГ> работает... > > тут речь идёт не о клиентах, а о сервере. > Это понятно.. но в Опере есть довольно неплохие заделы для создания доступа большого кол-ва клиентов к такой базе данных... но это пока заделы на будущее.. Хотя это поначалу кажется несолидным - использовать не СУБД, а такой почтовик с элементами СУБД.. но для небольшой конторы вполне сошло бы.. -- С уважением, Владимир Гусев ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re[3]: [Comm] вся почта в базе sql 2004-06-24 8:06 ` Re[2]: " Maxim 2004-06-24 8:18 ` Alex Gorbachenko 2004-06-24 8:51 ` Re[2]: " Владимир Гусев @ 2004-06-24 8:52 ` Alexey S. Kuznetsov 2004-06-24 9:29 ` Re[4]: " Maxim 2 siblings, 1 reply; 13+ messages in thread From: Alexey S. Kuznetsov @ 2004-06-24 8:52 UTC (permalink / raw) To: Maxim Hello Maxim, Thursday, June 24, 2004, 11:06:07 AM, you wrote: M> Здравствуйте, Alexey. M> Вы писали 24 июня 2004 г., 11:11:00: ASK>> Hello Maxim, ASK>> Wednesday, June 23, 2004, 7:26:04 PM, you wrote: M>>> народ, а я так понял, что при все приколах постфикса цируса и курьера, сама база M>>> писем хранится в файле, и никак ее нельзя запихать в например postgres. M>>> Я прочитал в описании цируса, что там при компиляции можно выбрать базу для M>>> хранения, но как это сделать и что потом делать ни слова. M>>> Если есть опыт поделитесь. ASK>> а зачем тебе все письма хранить в базе? ASK>> чем тебя файлы не устраивают? M> а когда у вас почтовые ящики по двести мегабайт и в них скапливается больше M> тысячи писем, что эффективнее, файл или база данных? M> на самом деле просто я считаю что база почты это данные, а данные должны M> храниться в базах данных. Например вам не придется шерстить весь файл почтового M> ящика для получения заголовков для передачи по IMAP протоколу, простой SQL M> запрос это сделает за пару секунд. M> Думаю что если поглубже вникнуть, то можно найти еще кучу преимуществ. M> А вот кстати противопоказаний практически нет. Разве что одно, добавляется новый M> пакет для работы почты. Если раньше хватало только постфикса и простейшего имап M> сервера, то тут еще нужна будет база данных. А эффективно хранить почту в базе? Если в базе будет несколько гигабайт крутиться, то будет ли нормально работать СУБД? И сколько она будет занимать памяти, если постоянно к ней будут обращаться клиенты? -- Sincerely, Alexey S. Kuznetsov AK2351-RIPE ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re[4]: [Comm] вся почта в базе sql 2004-06-24 8:52 ` Re[3]: " Alexey S. Kuznetsov @ 2004-06-24 9:29 ` Maxim 0 siblings, 0 replies; 13+ messages in thread From: Maxim @ 2004-06-24 9:29 UTC (permalink / raw) To: Alexey S. Kuznetsov Здравствуйте, Alexey. Вы писали 24 июня 2004 г., 12:52:39: M>> на самом деле просто я считаю что база почты это данные, а данные должны M>> храниться в базах данных. Например вам не придется шерстить весь файл почтового M>> ящика для получения заголовков для передачи по IMAP протоколу, простой SQL M>> запрос это сделает за пару секунд. M>> Думаю что если поглубже вникнуть, то можно найти еще кучу преимуществ. M>> А вот кстати противопоказаний практически нет. Разве что одно, добавляется новый M>> пакет для работы почты. Если раньше хватало только постфикса и простейшего имап M>> сервера, то тут еще нужна будет база данных. ASK> А эффективно хранить почту в базе? Если в базе будет несколько ASK> гигабайт крутиться, то будет ли нормально работать СУБД? ASK> И сколько она будет занимать памяти, если постоянно к ней будут ASK> обращаться клиенты? эффективнее чем файловая система. Если вы имеете представление о базах данных, то сами можете сравнить. -- С уважением, Maxim mailto:max_conf@e-foto.ru ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2004-06-24 11:31 UTC | newest] Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-06-23 16:26 [Comm] вся почта в базе sql Maxim 2004-06-24 6:02 ` Klimchev Konstantin 2004-06-24 10:23 ` Re[2]: " php-coder 2004-06-24 11:31 ` Maxim Tyurin 2004-06-24 7:11 ` Alexey S. Kuznetsov 2004-06-24 8:06 ` Re[2]: " Maxim 2004-06-24 8:18 ` Alex Gorbachenko 2004-06-24 10:44 ` Re[4]: " Maxim 2004-06-24 8:51 ` Re[2]: " Владимир Гусев 2004-06-24 8:54 ` Re[4]: " Alexey S. Kuznetsov 2004-06-24 9:30 ` Владимир Гусев 2004-06-24 8:52 ` Re[3]: " Alexey S. Kuznetsov 2004-06-24 9:29 ` Re[4]: " Maxim
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git