Nowe posty

xx Problem ze sterownikami. (5)
2024-04-13, 21:25:16
xx Instalacja xfce4 (2)
2024-04-13, 16:20:17
xx Serie kompilacji bez instalacji dla “emerge” w Gentoo (2)
2024-04-08, 18:40:04
xx Plasma 6 w Neonie ssie trochę mniej ... (17)
2024-04-05, 10:03:46
xx Problem z Linux Lite po instalacji (3)
2024-04-03, 14:23:40
xx Jak właczyć num locka przy starcie systemu debian 12? (12)
2024-04-02, 17:43:54
xx Brak dźwieku w systemie. (5)
2024-04-02, 16:13:41
xx Dystrybucja pod HP Omen (7)
2024-03-29, 11:33:05
xx [Poradnik] Wyszukiwanie Sterowników (2)
2024-03-27, 21:08:23
xx Ile pingwinów? (1)
2024-03-27, 08:59:24

Autor Wątek: exim gmail  (Przeczytany 2309 razy)

Offline 1709

  • Users
  • Guru
  • *****
  • Wiadomości: 2765
  • 1709
    • Zobacz profil
exim gmail
« dnia: 2018-03-09, 17:39:46 »
Znalazłem poradnik https://wiki.debian.org/GmailAndExim4
ale nie moge sobie poradzić ...

Według wiki musialem odblokować Pop i Smtp i to zrobilem
Nawet kliknąłem opcję żeby pozwalało aplikacjom mniej bezpiecznym https://www.youtube.com/watch?v=DLBf9PZyBJ0
i nawet w gmail dałem opcję by zachowywało wiadomości.
Potem skonfigurowałem /etc/exim4/passwd.client
oraz /etc/email-addresses
Skonfigurowałem zaporę by pozwalała na połączenia wychodzące.

Ale wiadomości nie docierają :(
Próbowałem z roota, z użytkownika
$ echo "This is a test." | mail -s test --debug-level=8  email@gmail.com
mail: Trying system...
mail: system yields 0=Success
mail: Trying system...
mail: system yields 0=Success

# tail /var/log/exim4/mainlog
2018-03-09 16:03:06 1euJY2-0000rW-12 <= email@gmail.com U=tele P=local S=418
2018-03-09 16:03:06 1euJY2-0000rW-12 == email@gmail.com R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host for 'gmail.com'

# host smtp.gmail.com
smtp.gmail.com is an alias for gmail-smtp-msa.l.google.com.
gmail-smtp-msa.l.google.com has address 64.233.xxx.xxx
gmail-smtp-msa.l.google.com has address 64.233.xxx.xxx
gmail-smtp-msa.l.google.com has IPv6 address 2a00:xxxx:xxxx:xxx::xx

zminiełem  w /etc/exim4/passwd.client
smtp.gmail.com
na
*.gmail.com

Potem miałem
IPv6 socket creation failed: Address family not supported by protocol

Mam moduł IPv6 wyłączony i nie zamierzam go używać.
Zrobiłem
# cat << EOF > /etc/sysctl.d/00-disable-ipv6.conf
> net.ipv6.conf.all.disable_ipv6 = 1
> net.ipv6.conf.default.disable_ipv6 = 1
> net.ipv6.conf.lo.disable_ipv6 = 1
> net.ipv6.conf.eth0.disable_ipv6 = 1
> EOF

No to jeszcze raz
# /etc/init.d/exim4 restart[ ok ] Restarting exim4 (via systemctl): exim4.service.

# echo "This will go into the body of the mail." | mail -s "Hello world" email@gmail.com

# tail /var/log/exim4/mainlog 
2018-03-09 17:36:48 1euL0i-0001mN-Lg <= email@gmail.com U=root P=local S=411

Ale ani w skrzyce google , ani jak próbowalem email zmienić nic nie przychodzi.
Co mogę jeszcze zrobić ?

======================

Edytowane.
Po restarcie te same problemy, poczynając od ipv6
które tym razem rozwiązałem dodając na końcu /etc/exim4/conf.d/main/02_exim4-config_options
disable_ipv6
dns_ipv4_lookup='*'

Ale tym razem mam
2018-03-10 12:43:17 1euHiD-0002Cl-WF == inny@wp.pl R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host for 'wp.pl'
2018-03-10 12:43:17 1euJpF-00017A-K3 == email@gmail.com R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host for 'gmail.com'
Poczty wp.pl nie dodawałem do /etc/exim4/passwd.client ani do /etc/email-addresses
on to musiał zczytac z jakiegoś innego pliku, ( wczesniej probowalem konfigurowac smtp, posfix i jeszcze clienta graficznego mam )
a próbując ponownie skonfigurować exim, to staje na
# exim4 -qff
i muszę ręcznie ubić proces


Edytowane.
# tail /var/log/exim4/mainlog 
2018-03-10 13:58:15 1eue4l-0003AA-CU <= email@gmail.com U=root P=local S=411
2018-03-10 13:58:15 1eue4l-0003AA-CU == email@gmail.com R=smarthost T=remote_smtp_smarthost defer (-53): retry time not reached for any host for 'gmail.com'


Edytowane
http://www.createhosting.co.nz/support/knowledgebase.php?action=displayarticle&id=53

# cd /var/spool/exim4/db
# rm -f retry retry.lockfile
# rm -f wait-remote_smtp wait-remote_smtp.lockfile
# service exim4 restart

# echo " " > /var/log/exim4/mainlog
# echo "This will go into the body of the mail." | mail -s "Hello world" email@gmail.com
# tail /var/log/exim4/mainlog2018-03-10 14:09:19 exim 4.89 daemon started: pid=13000, -q30m, listening for SMTP on [127.0.0.1]:25
2018-03-10 14:09:19 Start queue run: pid=13001
2018-03-10 14:09:19 1euduB-0002gm-8j Spool file is locked (another process is handling this message)
2018-03-10 14:09:44 1euduB-0002gm-8j H=gmail-smtp-msa.l.google.com [64.233.165.109] Connection timed out
2018-03-10 14:09:44 1euduB-0002gm-8j H=587 [0.0.2.75] Invalid argument
2018-03-10 14:09:44 1euduB-0002gm-8j == email@gmail.com R=smarthost T=remote_smtp_smarthost defer (22): Invalid argument
2018-03-10 14:09:44 1eue4l-0003AA-CU Spool file is locked (another process is handling this message)
2018-03-10 14:10:04 1eueBz-0003HP-Kd H=gmail-smtp-msa.l.google.com [64.233.165.109] Connection timed out
2018-03-10 14:10:04 1eueBz-0003HP-Kd == email@gmail.com R=smarthost T=remote_smtp_smarthost defer (110): Connection timed out
2018-03-10 14:10:26 1eueGY-0003Ny-R5 <= email@gmail.com U=root P=local S=411


Edytowane
Dobra ... tu miałem drugiego klienta włączonego i zablokował wysyłanie z exim.
usunełem pliki jeszcze raz i
# tail /var/log/exim4/mainlog 
2018-03-10 14:20:08 1euePw-0003ev-0R <= email@gmail.com U=root P=local S=411
Ale nic do skrzynki gmail nie dociera.



Edytowane
Dobra , chyba będzie lepiej jak przeinstaluje system na nowo, temat można usunąć.
« Ostatnia zmiana: 2018-03-10, 14:24:27 wysłana przez 1709 »
PS: Brak polskiej czcionki, nie jest to brak lenistwa, a jej brak w systemie i brak czasu na reczne poprawki.