Strona 1 z 1

Kiedy próbuję wysłać wiadomość, pojawia się błąd: STARTTLS: command not found

: 06 października 2011, 15:58
autor: trzczy
Sprostowanie do tytułu: błąd Must issue a STARTTLS command first.

Mam zainstalowany postfiksa i mailutilsa. Kiedy próbuję wysłać wiadomość, pojawia się błąd:

Kod: Zaznacz cały

Oct  6 15:42:34 voyage postfix/smtp[2815]: cannot load Certificate Authority data: disabling TLS support

Kod: Zaznacz cały

root@voyage:/var/log# date
Thu Oct  6 15:42:27 CEST 2011
root@voyage:/var/log# echo "We rolling, yo" | mail -s "Check it out, homes" imie@gmail.com 
root@voyage:/var/log# tail -12 mail.info
Oct  6 15:42:33 voyage postfix/pickup[2687]: EA5F51E4D: uid=0 from=<root>
Oct  6 15:42:33 voyage postfix/cleanup[2797]: EA5F51E4D: message-id=<20111006134233.EA5F51E4D@vidyadhar.home.network>
Oct  6 15:42:33 voyage postfix/qmgr[2688]: EA5F51E4D: from=<root@mail.poviem.tk>, size=368, nrcpt=1 (queue active)
Oct  6 15:42:34 voyage postfix/smtp[2800]: EA5F51E4D: to=<imie@gmail.com>, relay=smtp.gmail.com[74.125.39.108]:587, delay=0.17, delays=0.01/0/0.13/0.04, dsn=5.7.0, status=bounced (host smtp.gmail.com[74.125.39.108] said: 530 5.7.0 Must issue a STARTTLS command first. b10sm7223156fam.1 (in reply to MAIL FROM command))
Oct  6 15:42:34 voyage postfix/cleanup[2797]: 2999F1E61: message-id=<20111006134234.2999F1E61@vidyadhar.home.network>
Oct  6 15:42:34 voyage postfix/qmgr[2688]: 2999F1E61: from=<>, size=2333, nrcpt=1 (queue active)
Oct  6 15:42:34 voyage postfix/bounce[2801]: EA5F51E4D: sender non-delivery notification: 2999F1E61
Oct  6 15:42:34 voyage postfix/qmgr[2688]: EA5F51E4D: removed
Oct  6 15:42:34 voyage postfix/smtp[2815]: warning: database /etc/postfix/sasl_passwd.db is older than source file /etc/postfix/sasl_passwd
Oct  6 15:42:34 voyage postfix/smtp[2815]: cannot load Certificate Authority data: disabling TLS support
Oct  6 15:42:34 voyage postfix/smtp[2800]: 2999F1E61: to=<root@mail.poviem.tk>, relay=smtp.gmail.com[74.125.39.108]:587, delay=0.22, delays=0.01/0.01/0.17/0.04, dsn=5.7.0, status=bounced (host smtp.gmail.com[74.125.39.108] said: 530 5.7.0 Must issue a STARTTLS command first. n18sm7216448fah.2 (in reply to MAIL FROM command))
Oct  6 15:42:34 voyage postfix/qmgr[2688]: 2999F1E61: removed
root@voyage:/var/log# cat /etc/postfix/main.cf 
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=no
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = vidyadhar.home.network
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination =
relayhost = [smtp.gmail.com]:587
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
default_transport = smtp
relay_transport = smtp
inet_protocols = all

# SASL Settings
smtp_use_tls=yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
root@voyage:/var/log# cat /etc/postfix/sasl_passwd
[smtp.gmail.com]:587   imie@gmail.com:hjshjsfdjhsfdjhgjhsfd
root@voyage:/var/log# 
root@voyage:/var/log# STARTTLS
-bash: STARTTLS: command not found
root@voyage:/var/log# 
W tym materiale z konsoli są różne dane konfiguracyjne i informacja o błędzie. Jak czegoś potrzeba to doślę. Proszę o rzut oka na ten materiał i radę, co robię źle?
Z góry dziękuję