LINUX.ORG.RU

проблема с exim

 , ,


0

1

сервер centos 7, поставил vestacp, при добавлении нового домена в панели vestacp, добавил

DNS Support
Mail Support

конфиг exim дефолтный

mx запись для домена на google, пытаюсь отправить почту с сервера, пишет

info@domain.com
Unrouteable address

продебажил и понял, что он ищет почтовый ящик локально, отключил Mail и почта заработала, что надо поправить в exim, что бы он отправлял почту с включенным Mail?


exim -d+all -bt info@domain.com

17:41:13  6160 Exim version 4.89 uid=0 gid=0 pid=6160 D=fffdffff
Berkeley DB: Berkeley DB 5.3.21: (May 11, 2012)
Support for: crypteq iconv() IPv6 PAM Perl Expand_dlfunc TCPwrappers OpenSSL Content_Scanning DKIM DNSSEC Event OCSP PRDR TCP_Fast_Open
Lookups (built-in): lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmjz dbmnz dnsdb dsearch ldap ldapdn ldapm nis nis0 nisplus passwd sqlite
Authenticators: cram_md5 cyrus_sasl dovecot gsasl plaintext spa tls
Routers: accept dnslookup ipliteral manualroute queryprogram redirect
Transports: appendfile/maildir/mailstore/mbx autoreply lmtp pipe smtp
Fixed never_users: 0
Configure owner: 0:0
Size of off_t: 8
Compiler: GCC [4.8.5 20150623 (Red Hat 4.8.5-16)]
Library version: Glibc: Compile: 2.17
                        Runtime: 2.17
Library version: OpenSSL: Compile: OpenSSL 1.0.2k-fips  26 Jan 2017
                          Runtime: OpenSSL 1.0.2k-fips  26 Jan 2017
                                 : built on: reproducible build, date unspecified
Library version: Cyrus SASL: Compile: 2.1.26
                             Runtime: 2.1.26 [Cyrus SASL]
Library version: GNU SASL: Compile: 1.8.0
                           Runtime: 1.8.0
Library version: PCRE: Compile: 8.32
                       Runtime: 8.32 2012-11-30
17:41:13  6160 Loading lookup modules from /usr/lib64/exim/4.89-2.el7/lookups
17:41:13  6160 Loaded 0 lookup modules
17:41:13  6160 Total 18 lookups  
Library version: SQLite: Compile: 3.7.17
                         Runtime: 3.7.17
WHITELIST_D_MACROS unset
TRUSTED_CONFIG_LIST: "/etc/exim/trusted-configs"
17:41:13  6160 changed uid/gid: forcing real = effective
17:41:13  6160   uid=0 gid=0 pid=6160
17:41:13  6160   auxiliary group list: <none>
17:41:13  6160 seeking password data for user "root": cache not available
17:41:13  6160 getpwnam() succeeded uid=0 gid=0
17:41:13  6161 changed uid/gid: calling tls_validate_require_cipher
17:41:13  6161   uid=93 gid=93 pid=6161
17:41:13  6161   auxiliary group list: <none>
17:41:13  6160 tls_validate_require_cipher child 6161 ended: status=0x0
17:41:13  6160 configuration file is /etc/exim/exim.conf
17:41:13  6160 log selectors = 00000ffc 06320202
17:41:13  6160 trusted user
17:41:13  6160 admin user
17:41:13  6160 DSN: dnslookup propagating DSN
17:41:13  6160 DSN: userforward propagating DSN
17:41:13  6160 DSN: procmail propagating DSN
17:41:13  6160 DSN: autoreplay propagating DSN
17:41:13  6160 DSN: aliases propagating DSN
17:41:13  6160 DSN: localuser_fwd_only propagating DSN
17:41:13  6160 DSN: localuser_spam propagating DSN
17:41:13  6160 DSN: localuser propagating DSN
17:41:13  6160 DSN: catchall propagating DSN
17:41:13  6160 DSN: terminate_alias propagating DSN
17:41:13  6160 originator: uid=0 gid=0 login=root name=root
17:41:13  6160 sender address = root@server
17:41:13  6160 Address testing: uid=0 gid=93 euid=0 egid=93
17:41:13  6160 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
17:41:13  6160 Testing info@domain.com
17:41:13  6160 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
17:41:13  6160 Considering info@domain.com
17:41:13  6160 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
17:41:13  6160 routing info@domain.com
17:41:13  6160 --------> dnslookup router <--------
17:41:13  6160 local_part=info domain=domain.com
17:41:13  6160 checking domains  
17:41:13  6160 search_open: dsearch "/etc/exim/domains/"
17:41:13  6160 search_find: file="/etc/exim/domains/"
17:41:13  6160   key="domain.com" partial=-1 affix=NULL starflags=0
17:41:13  6160 LRU list:
17:41:13  6160   5/etc/exim/domains/
17:41:13  6160   End
17:41:13  6160 internal_search_find: file="/etc/exim/domains/"
17:41:13  6160   type=dsearch key="domain.com"
17:41:13  6160 file lookup required for domain.com
17:41:13  6160   in /etc/exim/domains/
17:41:13  6160 lookup yielded: domain.com
17:41:13  6160 domain.com in "dsearch;/etc/exim/domains/"? yes (matched "dsearch;/etc/exim/domains/")
17:41:13  6160 data from lookup saved for cache for +local_domains: domain.com
17:41:13  6160 domain.com in "!+local_domains"? no (matched "!+local_domains")
17:41:13  6160 dnslookup router skipped: domains mismatch
17:41:13  6160 local_part=info domain=domain.com
17:41:13  6160 checking "condition" "${lookup{$local_part@$domain}lsearch{/etc/exim/domains/$domain/aliases}{true}{fa"...
 17:41:13  6160 /considering: ${lookup{$local_part@$domain}lsearch{/etc/exim/domains/$domain/aliases}{true}{false}}
  17:41:13  6160 /considering: $local_part@$domain}lsearch{/etc/exim/domains/$domain/aliases}{true}{false}}
  17:41:13  6160 |__expanding: $local_part@$domain
  17:41:13  6160 \_____result: info@domain.com
  17:41:13  6160 /considering: /etc/exim/domains/$domain/aliases}{true}{false}}
  17:41:13  6160 |__expanding: /etc/exim/domains/$domain/aliases
  17:41:13  6160 \_____result: /etc/exim/domains/domain.com/aliases
17:41:13  6160 search_open: lsearch "/etc/exim/domains/domain.com/aliases"
17:41:13  6160   cached open
17:41:13  6160 search_find: file="/etc/exim/domains/domain.com/aliases"
17:41:13  6160   key="info@domain.com" partial=-1 affix=NULL starflags=0
17:41:13  6160 LRU list:
17:41:13  6160   :/etc/exim/domains/domain.com/aliases
17:41:13  6160   :/etc/exim/domains/domain.com/passwd
17:41:13  6160   :/etc/exim/domains/domain.com/fwd_only
17:41:13  6160   5/etc/exim/domains/
17:41:13  6160   End
17:41:13  6160 internal_search_find: file="/etc/exim/domains/domain.com/aliases"
17:41:13  6160   type=lsearch key="info@domain.com"
17:41:13  6160 cached data used for lookup of info@domain.com
17:41:13  6160   in /etc/exim/domains/domain.com/aliases
17:41:13  6160 lookup failed
  17:41:13  6160 /   scanning: true}{false}}
  17:41:13  6160 |__expanding: true
  17:41:13  6160 |_____result: true
  17:41:13  6160 \___skipping: result is not used
  17:41:13  6160 /considering: false}}
  17:41:13  6160 |__expanding: false
  17:41:13  6160 \_____result: false
 17:41:13  6160 |__expanding: ${lookup{$local_part@$domain}lsearch{/etc/exim/domains/$domain/aliases}{true}{false}}
 17:41:13  6160 \_____result: false
17:41:13  6160 terminate_alias router skipped: condition failure
17:41:13  6160 no more routers   
info@domain.com is undeliverable: Unrouteable address
17:41:13  6160 search_tidyup called
17:41:13  6160 >>>>>>>>>>>>>>>> Exim pid=6160 terminating with rc=2 >>>>>>>>>>>>>>>>

пропустил вывод вот этих

17:41:13  6160 DSN: userforward propagating DSN
17:41:13  6160 DSN: procmail propagating DSN
17:41:13  6160 DSN: autoreplay propagating DSN
17:41:13  6160 DSN: aliases propagating DSN
17:41:13  6160 DSN: localuser_fwd_only propagating DSN
17:41:13  6160 DSN: localuser_spam propagating DSN
17:41:13  6160 DSN: localuser propagating DSN
17:41:13  6160 DSN: catchall propagating DSN

если надо, могу полный лог скинуть

dnslookup:
  driver = dnslookup
  domains = !+local_domains
  transport = remote_smtp
  no_more

если я меняю domains на domains = +local_domains то почта отправляется только на те домены, которые добавлены на сервер, на gmail не отправляется

Garcia
() автор топика
Ответ на: комментарий от Garcia

изменил dnslookup на

dnslookup:
  driver = dnslookup
  domains = *
  transport = remote_smtp
  no_more

почта заработала

Garcia
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.