Показаны различия между двумя версиями страницы.
| Предыдущая версия справа и слева Предыдущая версия Следующая версия | Предыдущая версия | ||
|
электронная_почта_freebsd [2013/07/23 15:10] kirill |
электронная_почта_freebsd [2013/07/24 23:03] (текущий) |
||
|---|---|---|---|
| Строка 28: | Строка 28: | ||
| cd / | cd / | ||
| + | |||
| + | make install clean | ||
| + | |||
| + | cd / | ||
| make install clean | make install clean | ||
| Строка 197: | Строка 201: | ||
| '' | '' | ||
| + | ee / | ||
| + | |||
| + | '' | ||
| + | log_level: 3 \\ | ||
| + | mech_list: PLAIN LOGIN CRAM-MD5 \\ | ||
| + | auxprop_plugin: | ||
| + | sql_usessl: yes\\ | ||
| + | sql_engine: mysql\\ | ||
| + | sql_hostnames: | ||
| + | sql_user: postfix\\ | ||
| + | sql_passwd: postfix\\ | ||
| + | sql_database: | ||
| + | sql_select: select password from mailbox where username = ' | ||
| + | '' | ||
| + | |||
| + | cd / | ||
| + | |||
| + | mkdir mysqlLookupMaps | ||
| + | |||
| + | touch hello_access | ||
| + | |||
| + | touch client_access | ||
| + | |||
| + | touch sender_access | ||
| + | |||
| + | touch recipient_access | ||
| + | |||
| + | |||
| + | |||
| + | postmap hello_access | ||
| + | |||
| + | postmap sender_access | ||
| + | |||
| + | postmap recipient_access | ||
| + | |||
| + | postmap client_access | ||
| + | |||
| + | |||
| + | cd mysqlLookupMaps/ | ||
| + | |||
| + | |||
| + | touch alias.conf | ||
| + | touch domain.conf | ||
| + | touch mailbox.conf | ||
| + | touch quota.conf | ||
| + | touch sender.conf | ||
| + | |||
| + | |||
| + | ee alias.conf | ||
| + | |||
| + | '' | ||
| + | |||
| + | user = postfix\\ | ||
| + | password = postfix\\ | ||
| + | hosts = localhost\\ | ||
| + | |||
| + | dbname = postfix\\ | ||
| + | |||
| + | table = alias\\ | ||
| + | |||
| + | select_field = goto\\ | ||
| + | |||
| + | where_field = address\\ | ||
| + | |||
| + | '' | ||
| + | |||
| + | |||
| + | ee domain.conf | ||
| + | |||
| + | |||
| + | '' | ||
| + | user = postfix \\ | ||
| + | password = postfix\\ | ||
| + | hosts = localhost\\ | ||
| + | |||
| + | dbname = postfix\\ | ||
| + | |||
| + | table = domain\\ | ||
| + | |||
| + | select_field = domain \\ | ||
| + | |||
| + | where_field = domain \\ | ||
| + | |||
| + | additional_conditions = and active = ' | ||
| + | '' | ||
| + | |||
| + | ee mailbox.conf | ||
| + | |||
| + | '' | ||
| + | user = postfix | ||
| + | password = postfix | ||
| + | hosts = localhost | ||
| + | |||
| + | dbname = postfix | ||
| + | |||
| + | table = mailbox | ||
| + | |||
| + | select_field = mailbox | ||
| + | |||
| + | where_field = username | ||
| + | |||
| + | additional_conditions = and active = ' | ||
| + | '' | ||
| + | |||
| + | ee quota.conf | ||
| + | |||
| + | '' | ||
| + | user = postfix \\ | ||
| + | password = postfix\\ | ||
| + | hosts = localhost\\ | ||
| + | |||
| + | dbname = postfix\\ | ||
| + | |||
| + | table = mailbox\\ | ||
| + | |||
| + | select_field = quota\\ | ||
| + | |||
| + | where_field = username\\ | ||
| + | |||
| + | additional_conditions = and active = ' | ||
| + | '' | ||
| + | |||
| + | ee sender.conf | ||
| + | |||
| + | '' | ||
| + | user = postfix \\ | ||
| + | password = postfix\\ | ||
| + | hosts = localhost\\ | ||
| + | |||
| + | dbname = postfix \\ | ||
| + | |||
| + | table = mailbox\\ | ||
| + | |||
| + | select_field = username \\ | ||
| + | |||
| + | where_field = username\\ | ||
| + | |||
| + | additional_conditions = and active = ' | ||
| + | '' | ||
| + | |||
| + | Создадим пользователя virtual | ||
| + | |||
| + | pw group add virtual - g 5555 | ||
| + | pw user add virtual -g virtual -s / | ||
| + | mkdir / | ||
| + | chown virtual: | ||
| + | |||
| + | chown -R root: | ||
| + | |||
| + | chmod 440 / | ||
| + | |||
| + | chmod 550 / | ||
| + | |||
| + | Установим веб интерфейс управления - PostfixAdmin | ||
| + | |||
| + | cd / | ||
| + | |||
| + | make install clean | ||
| + | |||
| + | после этого в конфиг апача дописываем | ||
| + | |||
| + | ''< | ||
| + | AllowOverride Limit \\ | ||
| + | Options None | ||
| + | Order allow, | ||
| + | Allow from all \\ | ||
| + | </ | ||
| + | '' | ||