Sending emails using exim4 on the domain, equal to hostname if mx record points to another host


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/code-flow.club/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
7 views
Is there a website on VDS, it indicates the domain example.ru

$ hostname example.ru $ host example.ru example.ru has address 92.243.84.xx example.ru mail is handled by 10 mx1.example.ru. $ host mx1.example.ru mx1.example.ru has address 62.165.37.xx 

Is the exim4 mailer. When sending emails from the site (php mail()) in this domain, the emails are not getting through.

$ php -r "var_dump(mail('user@example.ru', 'text mail', 'test'));" bool(true) $ sudo grep user@example.ru /var/log/exim4/mainlog 2010-09-16 13:23:42 1Ow8on-0005Sb-Cu ** user@example.ru: Unrouteable address 

When configuring exim4 among other things writes:

$ sudo dpkg-reconfigure exim4-config Please enter a semicolon-separated list of recipient domains for which this machine should consider itself the final destination. These domains are commonly called 'local domains'. The local hostname (example.ru) and 'localhost' are always added to the list given here. 

In General, the problem is just that how to make the local hostname is no longer involved in the list of local domains to send mail?

Background: prior To this was the usual sendmail had the same problem. Googled a lot about the same solutions. Here's one: forum.lissyara.su/viewtopic.php?f=20&t=21720 Tried to bend sendmail, nothing happened, spat, put exim4, as people in exile, but has not solved the problem.
by | 7 views

5 Answers

0 like 0 dislike
eczema open the config and look at the local parameter domains (this, by the way, and the error text says). Letters to the domains from this list will be considered accepted on this server. All the others — strangers and will be forwarded on.
by
0 like 0 dislike
If in /etc/exim4/update-exim4.conf.parameter conf dc_eximconfig_configtype='smarthost' or dc_eximconfig_configtype='satellite'
In the file /etc/exim4/exim4.conf.template there is a setting:
smarthost:
debug_print = "R: smarthost for $local_part@$domain"
driver = manualroute
domains = ! +local_domains
transport = remote_smtp_smarthost
route_list = * DCsmarthost byname
host_find_failed = ignore
same_domain_copy_routing = yes
no_more
This means that to accept mail for example.com will the server itself. And will not for a domain to send to external. For example, if mail to the domain on yandex'That all came correct on
domains = local_domains : !local_domains
by
0 like 0 dislike
If you are working on examle.com then just write it to local domains and the mail will be delivered to you in boxes.
\r
Try to adjust the normal MX record.
by
0 like 0 dislike
In the file /etc/exim4/exim4.conf.template I found the following line:
\r
domainlist local_domains = MAIN_LOCAL_DOMAINS

You commented out and added:
\r
domainlist local_domains = localhost

\r
After that, the logs written:
2010-09-16 14:24:39 1Ow9ll-00065A-Ce ** user@example.ru R=dnslookup T=remote_smtp: SMTP error from remote mail server after MAIL FROM: SIZE=1361: host mx1.example.ru [62.165.37.xx]: 550 , Unknown Sender
\r
What would it mean? As I understand it, this is the PTR server mx1 refuses to accept the letter on the grounds that the letter sent from the user domain example.ru and mail from that domain then steers himself and thinks that he want to cheat? Or is there something else?
by
0 like 0 dislike
Prestavi here are the things:
\r
domainlist local_domains = localhost: example.com: example.org: example.xxx
\r
Should it happen that the mail is sent via the SMTP transport, and placed in mailboxes.
\r
PS If it's really bad ready for a small extra money to help with EXIM. There are recommendations and are ready prodaction mail server.
by

Related questions

0 like 0 dislike
4 answers
0 like 0 dislike
3 answers
0 like 0 dislike
4 answers
0 like 0 dislike
4 answers
110,608 questions
257,186 answers
0 comments
22,586 users