Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Strony: 1
Cześć,
To ja się podczepię pod temat, rzadko mi się zbiera na pytania, bo przeważnie wszystko potrafię wyszukać, ale Postfix mnie pokonał ;)
Mój problem polega na tym, iż nie mogę ani odebrać ani wysłać nic na zewnątrz. Jestem kompletnym laikiem jeśli chodzi o konfogurację serwera poczty i już od tygodnia z tym walczę.
Z każdej strony wysyłanie i odbieranie otrzymuję błąd o upływie czasu połączenia, próbowałem wielu różnych konfiguracji i zawsze jest tak samo. Logi pokazują to:
Jan 27 13:46:03 serwer postfix/smtp[5411]: connect to alt1.gmail-smtp-in.l.google.com[74.125.68.26]:25: Connection timed out Jan 27 13:46:33 serwer postfix/smtp[5411]: connect to alt2.gmail-smtp-in.l.google.com[64.233.189.27]:25: Connection timed out Jan 27 13:47:03 serwer postfix/smtp[5411]: connect to alt3.gmail-smtp-in.l.google.com[173.194.72.27]:25: Connection timed out Jan 27 13:47:33 serwer postfix/smtp[5411]: connect to alt4.gmail-smtp-in.l.google.com[74.125.25.27]:25: Connection timed out Jan 27 13:47:33 serwer postfix/smtp[5411]: DDBD11C01AF: to=<usr@gmail.com>, relay=none, delay=54293, delays=54142/0.01/150/0, dsn=4.4.1, status=deferred (conn$ Jan 27 13:50:02 serwer postfix/qmgr[1908]: BF75D1C07C8: from=<root@mojadomena.pl>, size=1426, nrcpt=1 (queue active) Jan 27 13:50:02 serwer postfix/qmgr[1908]: warning: connect to transport private/smtp-amavis: Connection refused Jan 27 14:05:02 serwer postfix/qmgr[1908]: 5631B1C025F: from=<user@mojadomena.pl>, size=556, nrcpt=1 (queue active) Jan 27 14:05:02 serwer postfix/error[5463]: 037061C06CD: to=<usr@domena.pl>, relay=none, delay=305511, delays=305511/0.01/0/0.1, dsn=4.3.0, status=deferred (mail transport unavailable) Jan 27 14:05:02 serwer postfix/error[5465]: 5631B1C025F: to=<usr@domena.pl>, relay=none, delay=307029, delays=307029/0.01/0/0.09, dsn=4.3.0, status=deferred (mail transport unavailable) Jan 27 14:05:02 serwer postfix/error[5462]: AF0CA1C06C7: to=<usr@linux.pl>, relay=none, delay=307752, delays=307752/0/0/0.1, dsn=4.3.0, status=deferred (mail transport unavailable) Jan 27 14:20:02 serwer postfix/qmgr[1908]: B3D261C05E4: from=<user@mojadomena.pl>, size=330, nrcpt=1 (queue active) Jan 27 14:20:32 serwer postfix/smtp[5851]: connect to mail.domena.pl[111.111.111.111]:25: Connection timed out Jan 27 14:20:32 serwer postfix/smtp[5851]: B3D261C05E4: to=<admin@inna_domena.pl>, relay=none, delay=71883, delays=71853/0.01/30/0, dsn=4.4.1, status=deferred (connect to mail.domena.pl[111.111.111.111]:25: Connection timed out) Jan 27 14:30:02 serwer postfix/qmgr[1908]: 653D61C053A: from=<user@mojadomena.pl>, size=316, nrcpt=1 (queue active) Jan 27 14:30:32 serwer postfix/smtp[5870]: connect to freeshell.de[94.247.40.156]:25: Connection timed out Jan 27 14:30:33 serwer postfix/smtp[5870]: 653D61C053A: to=<user@nic-nac-project.de>, relay=none, delay=72943, delays=72912/0.01/30/0, dsn=4.4.1, status=deferred (connect to freeshell.de[94.247.40.156]:25: Connection timed out)
Wspomniany swaks też miał problem z połączeniem.
root@serwer:~# swaks --to user@linux.pl --from user@mojadomena.pl === Trying mail.linux.pl:25... *** Error connecting to mail.linux.pl:25: *** IO::Socket::INET6: connect: timeout
Tak wygląda mój main.cf
command_directory = /usr/sbin mail_owner = postfix mydomain = mojadomena.pl myhostname = serwer.mojadomena.pl myorigin = /etc/mailname alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mydestination = $mydomain, $myhostname, localhost, localhost.localdomain, mynetworks = 127.0.0.0/8 #inet_interfaces = all inet_protocols = ipv4 home_mailbox = Maildir/ mail_spool_directory = /home/ smtpd_banner = ESMTP on Debian/GNU ! mailbox_size_limit = 0 recipient_delimiter = + biff = no append_dot_mydomain = no relayhost = #AUTH SMTP smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_auth_enable = yes #smtpd_sasl2_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtpd_sasl_local_domain = $myhostname # SPAM smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unknown_recipient_domain, reject_non_fqdn_recipient smtpd_client_restrictions = permit_sasl_authenticated, #reject_unknown_client, reject_rbl_client dul.dnsbl.sorbs.net, reject_rbl_client list.dsbl.org, reject_rbl_client sbl.spamhaus.org, reject_rbl_client cbl.abuseat.org smtpd_sender_restrictions = permit_sasl_authenticated, reject_unknown_sender_domain, reject_non_fqdn_sender, reject_unknown_address #TLS smtpd_tls_auth_only = yes smtp_use_tls = yes smtpd_use_tls = yes smtp_tls_note_starttls_offer = yes smtpd_tls_key_file = /etc/postfix/ssl/mail.pem smtpd_tls_cert_file = /etc/postfix/ssl/mail.pem smtpd_tls_CAfile = /etc/postfix/ssl/mail.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_scache smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_scache tls_random_source = dev:/dev/urandom
root@serwer:~# uname -a Linux serwer 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux
Dzięki za wszelkie wskazówki ;)
Ostatnio edytowany przez 4Ri3L (2016-01-27 14:48:20)
Offline
na jakim łączu stoi ten mta? większość operatorów blokuje port 25.
Offline
Multimedia na dynamicznym adresie, domenę deleguję przez afraid.org.
jeśli to coś da to jeszcze master.cf
# # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master" or # on-line: http://www.postfix.org/master.5.html). # # Do not forget to execute "postfix reload" after editing this file. # # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - - - - smtpd #smtp inet n - - - 1 postscreen #smtpd pass - - - - - smtpd #dnsblog unix - - - - 0 dnsblog #tlsproxy unix - - - - 0 tlsproxy submission inet n - - - - smtpd -o syslog_name=postfix/submission -o smtpd_tls_wrappermode=no -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject -o smtpd_sasl_type=dovecot -o smtpd_sasl_path=private/auth # -o smtpd_reject_unlisted_recipient=no # -o smtpd_client_restrictions=$mua_client_restrictions # -o smtpd_helo_restrictions=$mua_helo_restrictions # -o smtpd_sender_restrictions=$mua_sender_restrictions # -o smtpd_recipient_restrictions= # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING #smtps inet n - n - - smtpd # -o syslog_name=postfix/smtps # -o smtpd_tls_wrappermode=yes # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject # -o smtpd_reject_unlisted_recipient=no # -o smtpd_client_restrictions=$mua_client_restrictions # -o smtpd_helo_restrictions=$mua_helo_restrictions # -o smtpd_sender_restrictions=$mua_sender_restrictions # -o smtpd_recipient_restrictions= # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject -o milter_macro_daemon_name=ORIGINATING #628 inet n - - - - qmqpd pickup unix n - - 60 1 pickup cleanup unix n - - - 0 cleanup qmgr unix n - n 300 1 qmgr #qmgr unix n - n 300 1 oqmgr tlsmgr unix - - - 1000? 1 tlsmgr rewrite unix - - - - - trivial-rewrite bounce unix - - - - 0 bounce defer unix - - - - 0 bounce trace unix - - - - 0 bounce verify unix - - - - 1 verify flush unix n - - 1000? 0 flush proxymap unix - - n - - proxymap proxywrite unix - - n - 1 proxymap smtp unix - - - - - smtp relay unix - - - - - smtp # -o smtpd_relay_restrictions=permit_sasl_authenticated,reject -o milter_macro_daemon_name=ORIGINATING #628 inet n - - - - qmqpd pickup unix n - - 60 1 pickup cleanup unix n - - - 0 cleanup qmgr unix n - n 300 1 qmgr #qmgr unix n - n 300 1 oqmgr tlsmgr unix - - - 1000? 1 tlsmgr rewrite unix - - - - - trivial-rewrite bounce unix - - - - 0 bounce defer unix - - - - 0 bounce trace unix - - - - 0 bounce verify unix - - - - 1 verify flush unix n - - 1000? 0 flush proxymap unix - - n - - proxymap proxywrite unix - - n - 1 proxymap smtp unix - - - - - smtp relay unix - - - - - smtp # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - - - - showq error unix - - - - - error retry unix - - - - - error discard unix - - - - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - - - - lmtp anvil unix - - - - 1 anvil scache unix - - - - 1 scache # # ==================================================================== # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # # Many of the following services use the Postfix pipe(8) delivery # agent. See the pipe(8) man page for information about ${recipient} # and other message envelope options. # ==================================================================== # # maildrop. See the Postfix MAILDROP_README file for details. # Also specify in main.cf: maildrop_destination_recipient_limit=1 maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient} # # ==================================================================== # # Recent Cyrus versions can use the existing "lmtp" master.cf entry. # # Specify in cyrus.conf: # lmtp cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4 # # Specify in main.cf one or more of the following: # mailbox_transport = lmtp:inet:localhost # virtual_transport = lmtp:inet:localhost # # ==================================================================== # # Cyrus 2.1.5 (Amos Gouaux) # Also specify in main.cf: cyrus_destination_recipient_limit=1 # #cyrus unix - n n - - pipe # user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} # # ==================================================================== # Old example of delivery via Cyrus. # #old-cyrus unix - n n - - pipe # flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user} # # ==================================================================== # # See the Postfix UUCP_README file for configuration details. # uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) # # Other external delivery methods. # ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient scalemail-backend unix - n n - 2 pipe flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension} mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user}
Ostatnio edytowany przez 4Ri3L (2016-01-27 15:11:37)
Offline
Nie działa właśnie port 22 na żaden host.
Generalnie myślałem, że submission w master.cf to jest przekierowanie na port 587, ale jakos chyba mi to nie idzie ;)
Offline
dlaczego 22 jeśli mówiłem o 25?
zaraz się znów do mnie przyczepią że za dużo wymagam - ale najpierw naucz się jak działa poczta, a potem według tej wiedzy konfiguruj serwer. w drugą stronę raczej nie wyjdzie.
Offline
Spoko nie czepiasz się ;) Oczywiście łączyłem na 25, literówkę zrobiłem dwa razy i nie zauważyłem.
Offline
czyli operator blokuje port 25 i tego nie przeskoczysz. do operatora - niech odblokuje.
Offline
Ok dzięki. Będę ogarniał na dniach stałe IP od MM, więc będę się starał o odblokowanie tego portu.
Pozdrawiam
Offline
Strony: 1
Time (s) | Query |
---|---|
0.00014 | SET CHARSET latin2 |
0.00005 | SET NAMES latin2 |
0.00091 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.135.206.212' WHERE u.id=1 |
0.00062 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.135.206.212', 1732762093) |
0.00046 | SELECT * FROM punbb_online WHERE logged<1732761793 |
0.00062 | SELECT topic_id FROM punbb_posts WHERE id=296507 |
0.00057 | SELECT id FROM punbb_posts WHERE topic_id=28201 ORDER BY posted |
0.00068 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=28201 AND t.moved_to IS NULL |
0.00004 | SELECT search_for, replace_with FROM punbb_censoring |
0.00087 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=28201 ORDER BY p.id LIMIT 0,25 |
0.00096 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=28201 |
Total query time: 0.00592 s |