Bonjour
Pour un blog auto-hébergé, Exim4 est en échec et je tourne en rond depuis plusieurs heures
De l’aide SVP
apt-get update && apt-get install exim4
# /etc/aliases
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
root: mpedro@gmail.com
# /etc/email-addresses
#user: someone@isp.com
#otheruser: someoneelse@anotherisp.com
root: mpedro@gmail.com
user1: mpedro@gmail.com
dpkg-reconfigure exim4-config
en utilisant smpt.gmail.com et le port 465
# /etc/exim4/update-exim4.conf.conf
dc_eximconfig_configtype='satellite'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1 ;::1 ; 192.168.1.54'
dc_readhost='localhost'
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='smtp.gmail.com:465'
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='true'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
test d’envoi de mail en échec
# mail -s "mon objet" mpedro@gmail.com
Cc: test
ou
# echo "test mail " | mail -s "test" mpedro@gmail.com
mailq
pedro-H pedropedro # mailq
1m 2.0K 1bhNLC-0007Ir-6R <> *** frozen ***
root@pedro-H
0m 1.9K 1bhNMO-0007K6-As <> *** frozen ***
root@pedro-H
J’ai essayé en vain de relancer les messages avec la commande [exim -qff]
puis voir la
liste message gelé
# mailq | grep "frozen"
5m 2.0K 1bhNLC-0007Ir-6R <> *** frozen ***
3m 1.9K 1bhNMO-0007K6-As <> *** frozen ***
fichier de logs
# tail -f /var/log/exim4/mainlog
2016-09-06 22:51:34 1bhNLC-0007Ir-6R <= <> R=1bhNLA-0007Ih-LJ U=Debian-exim P=local S=2076
2016-09-06 22:51:34 1bhNLA-0007Ih-LJ Completed
2016-09-06 22:51:35 1bhNLC-0007Ir-6R ** jd73775@gmail.com <root@pedro-H> R=smarthost T=remote_smtp_smarthost H=gmail-smtp-msa.l.google.com [66.102.1.108] X=TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128 CV=no DN="C=US,ST=California,L=Mountain View,O=Google Inc,CN=smtp.gmail.com": SMTP error from remote mail server after MAIL FROM:<> SIZE=3162: 530-5.5.1 Authentication Required. Learn more at\n530 5.5.1 https://support.google.com/mail/answer/14257 kq2sm35232515wjc.41 - gsmtp
2016-09-06 22:51:35 1bhNLC-0007Ir-6R Frozen (delivery error message)
2016-09-06 22:52:47 1bhNMM-0007K1-T9 <= root@pedro-H U=root P=local S=351
2016-09-06 22:52:48 1bhNMM-0007K1-T9 ** mpedro@gmail.com R=smarthost T=remote_smtp_smarthost H=gmail-smtp-msa.l.google.com [66.102.1.109] X=TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128 CV=no DN="C=US,ST=California,L=Mountain View,O=Google Inc,CN=smtp.gmail.com": SMTP error from remote mail server after MAIL FROM:<root@localhost> SIZE=1386: 530-5.5.1 Authentication Required. Learn more at\n530 5.5.1 https://support.google.com/mail/answer/14257 h7sm35298978wjd.17 - gsmtp
2016-09-06 22:52:48 1bhNMO-0007K6-As <= <> R=1bhNMM-0007K1-T9 U=Debian-exim P=local S=1960
2016-09-06 22:52:48 1bhNMM-0007K1-T9 Completed
2016-09-06 22:52:49 1bhNMO-0007K6-As ** mpedro@gmail.com <root@pedro-H> R=smarthost T=remote_smtp_smarthost H=gmail-smtp-msa.l.google.com [66.102.1.109] X=TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128 CV=no DN="C=US,ST=California,L=Mountain View,O=Google Inc,CN=smtp.gmail.com": SMTP error from remote mail server after MAIL FROM:<> SIZE=3040: 530-5.5.1 Authentication Required. Learn more at\n530 5.5.1 https://support.google.com/mail/answer/14257 i3sm35191295wjd.31 - gsmtp
2016-09-06 22:52:49 1bhNMO-0007K6-As Frozen (delivery error message)
2016-09-06 22:56:28 Start queue run: pid=28208 -qff
2016-09-06 22:56:28 1bhNMO-0007K6-As Unfrozen by forced delivery
2016-09-06 22:56:28 1bhNMO-0007K6-As H=gmail-smtp-msa.l.google.com [2a00:1450:400c:c07::6d] Network is unreachable
2016-09-06 22:56:29 1bhNMO-0007K6-As ** mpedro@gmail.com <root@pedro-H> R=smarthost T=remote_smtp_smarthost H=gmail-smtp-msa.l.google.com [74.125.133.109] X=TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128 CV=no DN="C=US,ST=California,L=Mountain View,O=Google Inc,CN=smtp.gmail.com": SMTP error from remote mail server after MAIL FROM:<> SIZE=3040: 530-5.5.1 Authentication Required. Learn more at\n530 5.5.1 https://support.google.com/mail/answer/14257 vh6sm35207788wjb.0 - gsmtp
2016-09-06 22:56:29 1bhNMO-0007K6-As Frozen (delivery error message)
2016-09-06 22:56:29 1bhNLC-0007Ir-6R Unfrozen by forced delivery
2016-09-06 22:56:29 1bhNLC-0007Ir-6R H=gmail-smtp-msa.l.google.com [2a00:1450:400c:c06::6d] Network is unreachable
2016-09-06 22:56:30 1bhNLC-0007Ir-6R ** mpedro@gmail.com <root@pedro-H> R=smarthost T=remote_smtp_smarthost H=gmail-smtp-msa.l.google.com [74.125.133.109] X=TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128 CV=no DN="C=US,ST=California,L=Mountain View,O=Google Inc,CN=smtp.gmail.com": SMTP error from remote mail server after MAIL FROM:<> SIZE=3162: 530-5.5.1 Authentication Required. Learn more at\n530 5.5.1 https://support.google.com/mail/answer/14257 n7sm35228111wjf.11 - gsmtp
2016-09-06 22:56:30 1bhNLC-0007Ir-6R Frozen (delivery error message)
2016-09-06 22:56:30 End queue run: pid=28208 -qff
2016-09-06 22:57:08 Start queue run: pid=28227
2016-09-06 22:57:08 1bhNMO-0007K6-As Message is frozen
2016-09-06 22:57:08 1bhNLC-0007Ir-6R Message is frozen
2016-09-06 22:57:08 End queue run: pid=28227