Portál AbcLinuxu, 10. května 2025 05:35

Dotaz: Postfix

HrabalVojta avatar 12.12.2013 00:31 HrabalVojta | skóre: 23 | blog: gentoo_pentoo | Třebíč
Postfix
Přečteno: 515×
Odpovědět | Admin
Linux server 3.11-2-amd64 #1 SMP Debian 3.11.10-1 (2013-12-04) x86_64 GNU/Linux

Lokálně pošta chodí. Posílám si z účtu na účet, ale nejde ven. main.cf
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = no
config_directory = /etc/postfix
inet_interfaces = all
inet_protocols = ipv4
milter_default_action = accept
milter_protocol = 2
mydestination = xxx.cz, localhost.xxx.cz, localhost.localdomain localhost
mydomain = xxx.cz
myhostname = mail.xxx.cz
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.2.0/24
myorigin = /etc/mailname
non_smtpd_milters = inet:localhost:12345
readme_directory = /usr/share/doc/postfix
relay_domains = $mydestination
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_milters = inet:localhost:12345
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, check_policy_service inet:127.0.0.1:10023
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_security_options = noanonymous
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem
smtpd_tls_key_file = /etc/ssl/certs/postfix.pem
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
mail.info posílání mailu z telnetu port 587
Dec 12 00:13:22 server postfix/smtpd[18995]: connect from localhost[127.0.0.1]
Dec 12 00:13:55 server postfix/smtpd[18995]: 9AB9D40702: client=localhost[127.0.0.1]
Dec 12 00:14:09 server postfix/cleanup[19003]: 9AB9D40702: message-id=<20131211231355.9AB9D40702@mail.xxx.cz>
Dec 12 00:14:09 server opendkim[4986]: 9AB9D40702: DKIM-Signature field added (s=mail, d=xxx.cz)
Dec 12 00:14:09 server postfix/qmgr[5330]: 9AB9D40702: from=(vojta@xxx.cz), size=386, nrcpt=1 (queue active)
Dec 12 00:14:12 server postfix/smtpd[18995]: disconnect from localhost[127.0.0.1]
Dec 12 00:14:39 server postfix/smtp[19059]: connect to xmx1.centrum.cz[46.255.224.55]:25: Connection timed out
Dec 12 00:15:09 server postfix/smtp[19059]: connect to xmx2.centrum.cz[46.255.224.55]:25: Connection timed out
Dec 12 00:15:09 server postfix/smtp[19059]: 9AB9D40702: to=(xxx@centrum.cz), relay=none, delay=93, delays=32/0.01/60/0, dsn=4.4.1, status=deferred (connect to xmx2.centrum.cz[46.255.224.55]:25: Connection timed out)
mail.info
Dec 12 00:13:22 server postfix/smtpd[18995]: connect from localhost[127.0.0.1]
Dec 12 00:13:55 server postfix/smtpd[18995]: 9AB9D40702: client=localhost[127.0.0.1]
Dec 12 00:14:09 server postfix/cleanup[19003]: 9AB9D40702: message-id=<20131211231355.9AB9D40702@mail.xxx.cz>
Dec 12 00:14:09 server opendkim[4986]: 9AB9D40702: DKIM-Signature field added (s=mail, d=xxx.cz)
Dec 12 00:14:09 server postfix/qmgr[5330]: 9AB9D40702: from=(vojta@xxx.cz), size=386, nrcpt=1 (queue active)
Dec 12 00:14:12 server postfix/smtpd[18995]: disconnect from localhost[127.0.0.1]
Dec 12 00:14:39 server postfix/smtp[19059]: connect to xmx1.centrum.cz[46.255.224.55]:25: Connection timed out
Dec 12 00:15:09 server postfix/smtp[19059]: connect to xmx2.centrum.cz[46.255.224.55]:25: Connection timed out
Dec 12 00:15:09 server postfix/smtp[19059]: 9AB9D40702: to=(xxx@centrum.cz), relay=none, delay=93, delays=32/0.01/60/0, dsn=4.4.1, status=deferred (connect to xmx2.centrum.cz[46.255.224.55]:25: Connection timed out)
Dec 12 00:22:07 server postfix/qmgr[5330]: 9AB9D40702: from=(vojta@xxx.cz), size=386, nrcpt=1 (queue active)
Dec 12 00:22:37 server postfix/smtp[21992]: connect to xmx2.centrum.cz[46.255.224.55]:25: Connection timed out
Dec 12 00:23:07 server postfix/smtp[21992]: connect to xmx1.centrum.cz[46.255.224.55]:25: Connection timed out
Dec 12 00:23:07 server postfix/smtp[21992]: 9AB9D40702: to=(xxx@centrum.cz), relay=none, delay=571, delays=511/0.01/60/0, dsn=4.4.1, status=deferred (connect to xmx1.centrum.cz[46.255.224.55]:25: Connection timed out)
USE="freedom -software_patents" emerge --deep --update --newuse world

Řešení dotazu:


Nástroje: Začni sledovat (0) ?Zašle upozornění na váš email při vložení nového komentáře.

Odpovědi

Řešení 1× (HrabalVojta (tazatel))
12.12.2013 08:49 hermelin | skóre: 21
Rozbalit Rozbalit vše Re: Postfix
Odpovědět | | Sbalit | Link | Blokovat | Admin
A napr. pres netcat nebo telnet se na venkovni port 25 pripojit jde ? Tohle vypada jako kdyby byl zablokovan pristup na venkovni port 25
12.12.2013 09:47 Chulda | skóre: 20
Rozbalit Rozbalit vše Re: Postfix
Souhlas. Někteří ISP port 25 ven blokují. Buď si to nechat odblokovat nebo nastavit relayhost na jejich mailserver (možná i o tohle bude třeba zažádat).
12.12.2013 09:06 mchf
Rozbalit Rozbalit vše Re: Postfix
Odpovědět | | Sbalit | Link | Blokovat | Admin
Hodilo by se nastavit do relayhost nejaky smtp server.
HrabalVojta avatar 15.12.2013 13:18 HrabalVojta | skóre: 23 | blog: gentoo_pentoo | Třebíč
Rozbalit Rozbalit vše Re: Postfix
Odpovědět | | Sbalit | Link | Blokovat | Admin
Poskytovatel se po týdnu přiznal, že opravdu byla chyba na jejich straně i když velmi dlouho zapíral. Asi po experimentu s jejich smtp šli hledat chybu.

Telnet 25 na jejich smtp funguje. Ven ne.
USE="freedom -software_patents" emerge --deep --update --newuse world

Založit nové vláknoNahoru

Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.