{{tag>exim4 testing mail smtp pop3}}

====== Exim4 - Тестирование ======

===== PHP =====

  sendmail_path = "/usr/sbin/exim4 -t"

==== Тестирование ====

  * apt-get install mailutils

<code bash>  
$ echo "This is a test." | mail -s Testing someone@somedomain.com
$ exim -d+all -bt someone@somedomain.com
</code>

  * [[system:scripts:sendmail|]]
===== Ошибки и их решения =====

<code>
/var/log/exim4/mainlog:2013-10-17 00:23:42 1VWXd4-0001Rk-PG ** some-mail@gmail.com R=dnslookup T=remote_smtp: SMTP error from remote mail server after end of data: host gmail-smtp-in.l.google.com [2a00:1450:4008:c01::1a]: 550-5.7.1 [2a00:ab00:106:37:200:69:218:0      16] Our system has detected that
550-5.7.1 this message does not meet IPv6 sending guidelines regarding PTR
550-5.7.1 records and authentication. Please review
550-5.7.1 https://support.google.com/mail/?p=ipv6_authentication_error for more
550 5.7.1 information. dx8si12019086bkc.176 - gsmtp
</code>

Решение в данном случае простое. Или прописать PTR на IPv6 или отключить поддержку IPv6 в Exim4. 
Для этого нада поместить **disable_ipv6** до **begin acl**

===== Ссылки =====

  * http://sadmin.pp.ua/pochtovaya-sistema-na-baze-exim-dovecot-ssl-clamav-auto-white-list-postfixadmin-roundcube-autoreply.html