Ik heb net Postfix op mijn Debian Jessie servertje geïnstalleerd. Daar draait ook mijn domein op, en het is de bedoeling dat e-mail op mijn domein wordt doorgestuurd naar m'n Gmail-account. Als ik een testmail stuur zie ik dat Postfix 'm netjes binnenkrijgt maar hij lijkt Googles mailserver niet te kunnen vinden:
So far so good... Maar dan verslikt hij zich in het doorsturen:
Ik heb al gecheckt of poort 25 openstaat, mijn provider blokkeert die niet (online gecheckt). Het vreemde is dat ik ook op m'n laptop Google niet kan bereiken (kan wel pingen, maar telnet geeft timeout):
Traceroute (van de laptop)
Postfix-configuratie ziet er als volgt uit:
Virtual en /etc/aliases:
Waar kijk ik over?
code:
1
2
3
4
5
| Jul 26 00:24:37 enceladus postfix/smtpd[1103]: connect from perdizione.investici.org[94.23.50.208] Jul 26 00:24:38 enceladus postfix/smtpd[1103]: 3D23C352A: client=perdizione.investici.org[94.23.50.208] Jul 26 00:24:38 enceladus postfix/cleanup[1107]: 3D23C352A: message-id=<1437861484.12375.1@smtp.autistici.org> Jul 26 00:24:38 enceladus postfix/qmgr[1048]: 3D23C352A: from=<blabla@inventati.org>, size=1620, nrcpt=1 (queue active) Jul 26 00:24:38 enceladus postfix/smtpd[1103]: disconnect from perdizione.investici.org[94.23.50.208] |
So far so good... Maar dan verslikt hij zich in het doorsturen:
code:
1
2
3
4
5
6
| Jul 26 00:24:38 enceladus postfix/smtp[1108]: connect to gmail-smtp-in.l.google.com[173.194.65.26]:25: No route to host Jul 26 00:24:38 enceladus postfix/smtp[1108]: connect to gmail-smtp-in.l.google.com[2a00:1450:4013:c01::1a]:25: Network is unreachable Jul 26 00:24:38 enceladus postfix/smtp[1108]: connect to alt1.gmail-smtp-in.l.google.com[2404:6800:4003:c00::1b]:25: Network is unreachable Jul 26 00:24:38 enceladus postfix/smtp[1108]: connect to alt1.gmail-smtp-in.l.google.com[74.125.200.26]:25: No route to host Jul 26 00:24:38 enceladus postfix/smtp[1108]: connect to alt2.gmail-smtp-in.l.google.com[2404:6800:4008:c05::1b]:25: Network is unreachable Jul 26 00:24:38 enceladus postfix/smtp[1108]: 3D23C352A: to=<blablai@gmail.com>, orig_to=<admin@volatilesystems.org>, relay=none, delay=0.28, delays=0.09/0.05/0.14/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2404:6800:4008:c05::1b]:25: Network is unreachable) |
Ik heb al gecheckt of poort 25 openstaat, mijn provider blokkeert die niet (online gecheckt). Het vreemde is dat ik ook op m'n laptop Google niet kan bereiken (kan wel pingen, maar telnet geeft timeout):
code:
1
2
3
4
5
6
7
8
9
10
11
| $ telnet 74.125.68.27 Trying 74.125.68.27... telnet: Unable to connect to remote host: Connection timed out $ ping 78.24.191.177 PING 78.24.191.177 (78.24.191.177) 56(84) bytes of data. 64 bytes from 78.24.191.177: icmp_seq=1 ttl=52 time=50.3 ms ^C $ telnet alt1.gmail-smtp-in.l.google.com 25 Trying 74.125.68.26... Trying 2404:6800:4003:c00::1b... telnet: Unable to connect to remote host: Network is unreachable |
Traceroute (van de laptop)
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
| # lft alt1.gmail-smtp-in.l.google.com traceroute to alt1.gmail-smtp-in.l.google.com (74.125.200.26), 30 hops max, 60 byte packets 1 zeus.lan (10.0.0.1) 0.454 ms 0.374 ms 2 ip-83-134-96-1.dsl.scarlet.be (83.134.96.1) 16.819 ms 16.923 ms 3 ae-68-200.iarstr3.isp.belgacom.be (91.183.242.162) 18.228 ms 18.698 ms 4 ae-12-1000.ibrstr3.isp.belgacom.be (91.183.246.108) 18.729 ms 18.797 ms 5 * * 6 * * 7 * * 8 * * 9 72.14.217.33 (72.14.217.33) 25.814 ms 22.287 ms 10 209.85.143.253 (209.85.143.253) 26.005 ms 22.461 ms 11 72.14.239.16 (72.14.239.16) 25.718 ms 209.85.253.249 (209.85.253.249) 22.456 ms 12 209.85.243.32 (209.85.243.32) 27.922 ms 209.85.246.153 (209.85.246.153) 28.870 ms 13 209.85.143.224 (209.85.143.224) 316.944 ms 72.14.235.91 (72.14.235.91) 116.582 ms 14 72.14.232.71 (72.14.232.71) 319.347 ms 209.85.143.215 (209.85.143.215) 129.411 ms 15 72.14.233.183 (72.14.233.183) 161.822 ms 161.740 ms 16 209.85.143.0 (209.85.143.0) 254.224 ms 254.125 ms 17 209.85.255.128 (209.85.255.128) 318.901 ms 209.85.255.130 (209.85.255.130) 324.796 ms 18 209.85.246.23 (209.85.246.23) 317.491 ms 209.85.246.37 (209.85.246.37) 320.202 ms 19 * * 20 * * 21 * * 22 * * 23 * * 24 * * 25 * * 26 * * 27 * * 28 * * 29 * * 30 * * |
Postfix-configuratie ziet er als volgt uit:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
home_mailbox = mail/
inet_interfaces = all
local_transport = error:local delivery is disabled
mailbox_size_limit = 0
mydestination =
mydomain = volatilesystems.org
myhostname = volatilesystems.org
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = volatilesystems.org ESMTP $mail_name (Debian/GNU)
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_domains = volatilesystems.org
virtual_alias_maps = hash:/etc/postfix/virtual |
Virtual en /etc/aliases:
code:
1
2
3
4
5
6
| root@enceladus:/etc/postfix# cat virtual admin@volatilesystems.org blabla@gmail.com root@enceladus:/etc/postfix# cat /etc/aliases # See man 5 aliases for format postmaster: root admin: blabla@gmail.com |
Waar kijk ik over?
[ Voor 14% gewijzigd door Borromini op 26-07-2015 00:58 ]
Got Leenucks? | Debian Bookworm x86_64 / ARM | OpenWrt: Empower your router | Blogje