Настроил почтовый сервер Exim + dovecot + PgSQL по отличной статье DNK http://www.lissyara.su/articles/freebsd ... ot_+_pgsql
Проверил Outlook письма принимает и отправляет наружу.
Причем при установке скрипта тестовые письма наружу уходили если пользователь задавался в виде "юзер", если "юзер@домен" - облом.
После этого столкнулся с тем, что через roundcube не уходят письма.
Вот что в логе /var/log/exim/mainlog
Код: Выделить всё
lookup_cram authenticator failed for mx.test.ru [192.168.52.5]: 535 Incorrect authentication data (set_id='retest@test.ru')
login authenticator failed for mx.test.ru [192.168.52.5]: 535 Incorrect authentication data (set_id='retest@test.ru')
Код: Выделить всё
Invalid response code received from server (535):
[05-Nov-2011 23:09:16 +0400]: SMTP Error: SMTP error: Authentication failure: Invalid response code received from server (Code: 535)
Код: Выделить всё
// ----------------------------------
// SMTP
// ----------------------------------
// SMTP server host (for sending mails).
// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
// If left blank, the PHP mail() function is used
// Supported replacement variables:
// %h - user's IMAP hostname
// %n - http hostname ($_SERVER['SERVER_NAME'])
// %d - domain (http hostname without the first part)
// %z - IMAP domain (IMAP hostname without the first part)
// For example %n = mail.domain.tld, %d = domain.tld
$rcmail_config['smtp_server'] = 'mx.test.ru';
// 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'] = LOGIN;
// Optional SMTP authentication identifier to be used as authorization proxy
$rcmail_config['smtp_auth_cid'] = NULL;
// Optional SMTP authentication password to be used for smtp_auth_cid
$rcmail_config['smtp_auth_pw'] = NULL;
// 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'] = 'mx.test.ru';
// SMTP connection timeout, in seconds. Default: 0 (no limit)
$rcmail_config['smtp_timeout'] = 0;
