Подскажите, пож., где неисправность при настройке exim.
Аутлук при отправке почты ругвется:
Код: Выделить всё
The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'ee@domain.ru'. Subject 'Read: 2', Account: 'user.domauin.ru', Server: 'user.domauin.ru', Protocol: SMTP, Server Response: '550 relay not permitted', Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC79
Код: Выделить всё
local_interfaces = 0.0.0.0
domainlist local_domains = ${lookup mysql{SELECT domainname FROM domains \
WHERE domainname='${domain}' AND \
(type='LOCAL' OR type='VIRTUAL')}}
domainlist relay_to_domains = ${lookup mysql{SELECT domainname FROM domains \
WHERE domainname='${domain}' AND type='RELAY'}}
hostlist relay_from_hosts = 127.0.0.1 : localhost : mudomain.ru
acl_smtp_rcpt = acl_check_rcpt
acl_smtp_data = acl_check_data
exim_user = mailnull
exim_group = mail
never_users = root
host_lookup = *
rfc1413_hosts = *
rfc1413_query_timeout = 30s
ignore_bounce_errors_after = 2d
timeout_frozen_after = 7d
hide mysql_servers = localhost/exim/exim/pass
begin acl
acl_check_rcpt:
accept hosts = :
deny message = Restricted characters in address
domains = +local_domains
local_parts = ^[.] : ^.*[@%!/|]
deny message = Restricted characters in address
domains = !+local_domains
local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
accept local_parts = postmaster
domains = +local_domains
require verify = sender
accept domains = +local_domains
endpass
verify = recipient
accept domains = +relay_to_domains
endpass
verify = recipient
accept hosts = +relay_from_hosts
accept authenticated = *
deny message = relay not permitted
acl_check_data:
accept
begin routers
dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more
mysqluser:
driver = accept
condition = ${if eq{} {${lookup mysql{SELECT home FROM users \
WHERE id='${quote_mysql:$local_part@$domain}' OR \
id='${quote_mysql:@$domain}'}}}{no}{yes}}
transport = mysql_delivery
system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/aliases}}
user = mailnull
group = mail
file_transport = address_file
pipe_transport = address_pipe
procmail:
driver=accept
transport=procmail_pipe
userforward:
driver = redirect
check_local_user
file = $home/.forward
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
condition = ${if exists{$home/.forward} {yes} {no} }
localuser:
driver = accept
check_local_user
transport = local_delivery
cannot_route_message = Unknown user
begin transports
remote_smtp:
driver = smtp
procmail_pipe:
driver = pipe
command = /usr/local/bin/procmail -d $local_part
return_path_add
delivery_date_add
envelope_to_add
check_string = "From "
escape_string = ">From "
user = $local_part
group=mail
mysql_delivery:
driver = appendfile
check_string = ""
create_directory
delivery_date_add
directory = ${lookup mysql{SELECT CONCAT(home, '${local_part}@${domain}')\
FROM users WHERE id='${local_part}@${domain}'}}
directory_mode = 770
envelope_to_add
group = mail
maildir_format
maildir_tag = ,S=$message_size
message_prefix = ""
message_suffix = ""
mode = 0600
local_delivery:
driver = appendfile
file = /var/mail/$local_part
delivery_date_add
envelope_to_add
return_path_add
group = mail
user = $local_part
mode = 0660
no_mode_fail_narrower
address_pipe:
driver = pipe
return_output
address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
address_reply:
driver = autoreply
begin retry
* * F,2h,15m; G,16h,1h,1.5; F,4d,6h
begin rewrite
begin authenticators
auth_plain:
driver = plaintext
public_name = PLAIN
server_condition = ${lookup mysql{SELECT id FROM users \
WHERE id = '${quote_mysql:$1}' \
AND passwd = '${quote_mysql:$3}' \
AND active = 'Y'}{yes}{no}}
server_prompts = :
server_set_id = $2
auth_login:
driver = plaintext
public_name = LOGIN
server_condition = ${lookup mysql{SELECT id FROM users \
WHERE id = '${quote_mysql:$1}' \
AND passwd = '${quote_mysql:$3}' \
AND active = 'Y'}{yes}{no}}
server_prompts = Username:: : Password::
server_set_id = $1
auth_cram_md5:
driver = cram_md5
public_name = CRAM-MD5
server_secret = ${lookup mysql{SELECT passwd FROM users \
WHERE id = '${quote_mysql:$1}' \
AND active = 'Y'}{$value}fail}
server_set_id = $1
Код: Выделить всё
sudo exim -bd -d+all
11:07:04 42819 Exim version 4.67 (FreeBSD 6.1) uid=0 gid=0 pid=42819 D=fffdffff
Probably Berkeley DB version 1.8x (native mode)
Support for: crypteq iconv() use_setclassresources PAM Perl Expand_dlfunc OpenSS L Content_Scanning Old_Demime
Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch mysql nis nis0 passwd
Authenticators: cram_md5 dovecot plaintext spa
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Size of off_t: 8
11:07:04 42819 changed uid/gid: forcing real = effective
11:07:04 42819 uid=0 gid=0 pid=42819
11:07:04 42819 auxiliary group list: 0
11:07:04 42819 seeking password data for user "mailnull": using cached result
11:07:04 42819 getpwnam() succeeded uid=26 gid=26
11:07:04 42819 seeking password data for user "root": cache not available
11:07:04 42819 getpwnam() succeeded uid=0 gid=0
11:07:04 42819 configuration file is /usr/local/etc/exim/configure
11:07:04 42819 log selectors = 00000ffc 00212001
11:07:04 42819 cwd=/usr/home/el 3 args: exim -bd -d+all
11:07:04 42819 trusted user
11:07:04 42819 admin user
11:07:04 42819 seeking password data for user "mailnull": cache not available
11:07:04 42819 getpwnam() succeeded uid=26 gid=26
11:07:04 42819 originator: uid=0 gid=0 login=root name=Charlie Root
11:07:04 42819 LOG: MAIN
11:07:04 42819 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (9 more tries)
11:07:34 42819 LOG: MAIN
11:07:34 42819 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (8 more tries)
11:08:04 42819 LOG: MAIN
11:08:04 42819 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (7 more tries)
11:08:34 42819 LOG: MAIN
11:08:34 42819 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (6 more tries)
11:09:04 42819 LOG: MAIN
11:09:04 42819 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (5 more tries)
11:09:34 42819 LOG: MAIN
11:09:34 42819 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (4 more tries)
11:10:04 42819 LOG: MAIN
11:10:04 42819 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (3 more tries)
11:10:34 42819 LOG: MAIN
11:10:34 42819 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (2 more tries)
11:11:04 42819 LOG: MAIN
11:11:04 42819 socket bind() to port 25 for address (any IPv4) failed: Address already in use: waiting 30s before trying again (1 more try)
11:11:34 42819 LOG: MAIN PANIC DIE
11:11:34 42819 socket bind() to port 25 for address (any IPv4) failed: Address already in use: daemon abandoned
11:11:34 42819 search_tidyup called
11:11:34 42819 >>>>>>>>>>>>>>>> Exim pid=42819 terminating with rc=1 >>>>>>>>>>>>>>>>