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/.
Witam
Jak zwykle mam problem z uruchomieniem postfixa
Przy uruchomieniu taki błąd w syslogu
postfix/master[19847]: fatal: /etc/postfix/master.cf: line 91: bad transport type: smtp_data_done_timeout=1200s
plik master.cf
smtp inet n - - - - smtpd #submission inet n - - - - smtpd # -o smtpd_tls_security_level=encrypt # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING #smtps inet n - - - - smtpd # -o smtpd_tls_wrappermode=yes # -o smtpd_sasl_auth_enable=yes # -o smtpd_client_restrictions=permit_sasl_authenticated,reject # -o milter_macro_daemon_name=ORIGINATING #628 inet n - - - - qmqpd pickup fifo n - - 60 1 pickup cleanup unix n - - - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo 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 # When relaying mail as backup MX, disable fallback_relay to avoid MX loops relay unix - - - - - smtp -o smtp_fallback_relay= # -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} # # 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} dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient} ##Amavis smtp-amavis unix - - n - 2 smtp -o smtp_data_done_timeout=1200s -o smtp_never_send_ehlo=yes -o disable_dns_lookups=yes 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o realy_recipient_maps= -o smtpd_restriction_classes= -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000
Wszystko było robione z opisu na forum
Poradziłęm sobie już z tym problemem
rozw.
przy wpisywaniu
##Amavis smtp-amavis unix - - n - 2 smtp[enter] [spacja]-o smtp_data_done_timeout=1200s[enter] [spacja]-o smtp_never_send_ehlo=yes[enter]
I tak do końca wpisów
Teraz mam inny problem postfix wysyła maile ale żaden mail wysłany np z o2.pl nie dochodzi
Mam tez problem brak logów postfixa tz mail.log
mam otwarte porty
Port 21 Open (ftp) Port 22 Open (ssh) Port 25 Open (smtp) Port 80 Open (http) Port 110 Open (pop3) Port 111 Open (sunrpc) Port 139 Open (netbios-ssn) Port 143 Open (imap) Port 443 Open (https) Port 445 Open (microsoft-ds) Port 993 Open (snmp-tcp-port) Port 995 Open (spop3)
Wysyłałem maila z o2 na swój serwer dostałem odpowiedz
<jakub@mojadomena.pl>: connect to mojadomena.pl[adres IP mojego serwera]: Connection refused
mój main.cf
command_directory = /usr/sbin mail_owner = postfix mydomain = mojadomena.pl myhostname = debian 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 91.121.146.130/32 [::ffff:91.121.146.130]/104 [::1]/128 inet_interfaces = all inet_protocols = ipv4 home_mailbox = Maildir/ mail_spool_directory = /home/ smtpd_banner = ESMTP on $myhostname ! mailbox_size_limit = 0 recipient_delimiter = + biff = no append_dot_mydomain = no relayhost = #Spam mailbox_command = procmail -a "$EXTENSION" #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 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:${queue_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache tls_random_source = dev:/dev/urandom #Amavis content_filter = smtp-amavis:[127.0.0.1]:10024
Ostatnio edytowany przez kaju007 (2010-07-24 18:43:10)
Offline
Proponuję spróbować telnet na port smtp ze zdalnej maszyny - dowiesz się czy połączenie jest faktycznie możliwe.
Jeżeli w odpowiedzi ma refuse to znaczny, że jest refuse ;)
Offline
odpal postfixa na portach 25 (standardowo) + 587. TP S.A, Dialog i kilku innych "w trosce o nasze bezpieczeństwo" (czytaj zabezpieczają własną dupę żeby nie ponosić odpowiedzialności za pewne zjawiska) blokuje port 25. Do /etc/postfix/master.cf dodaj wpis:
587 inet n - - - - smtpd -v
Zresetuj postfixa i puść telnet na jeden i drugi port i próbuj wtedy wysłać pocztę.
Offline
Dzięki za wasze podpowiedzi, ale błąd okazał się nie związany z postfixem wstyd się przyznać.
Offline
Time (s) | Query |
---|---|
0.00011 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00104 | 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.15.239.0' WHERE u.id=1 |
0.00065 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.15.239.0', 1732566681) |
0.00071 | SELECT * FROM punbb_online WHERE logged<1732566381 |
0.00065 | SELECT topic_id FROM punbb_posts WHERE id=152638 |
0.00110 | SELECT id FROM punbb_posts WHERE topic_id=17270 ORDER BY posted |
0.00053 | 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=17270 AND t.moved_to IS NULL |
0.00007 | SELECT search_for, replace_with FROM punbb_censoring |
0.00081 | 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=17270 ORDER BY p.id LIMIT 0,25 |
0.00074 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=17270 |
Total query time: 0.00645 s |