il file /etc/postfix/main.cf è configurato così
Codice: Seleziona tutto
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# 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=yes
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.
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = mezzo-VirtualBox
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mezzotestlinux.com, mezzo-VirtualBox, localhost.localdomain, localhost
relayhost = pop3.btconnect.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
inet_protocols = all
e da /var/log/mail.log leggo
Codice: Seleziona tutto
Nov 20 09:14:08 mezzo-VirtualBox postfix/smtp[4577]: connect to pop3.btconnect.com[213.123.26.23]:25: Connection timed out
Nov 20 09:14:08 mezzo-VirtualBox postfix/smtp[4578]: connect to pop3.btconnect.com[213.123.26.23]:25: Connection timed out
Nov 20 09:14:08 mezzo-VirtualBox postfix/smtp[4577]: 0E02C4D304: to=<**************@gmail.com>, relay=none, delay=1463, delays=1432/0.12/30/0, dsn=4.4.1, status=deferred (connect to pop3.btconnect.com[213.123.26.23]:25: Connection timed out)
Nov 20 09:14:08 mezzo-VirtualBox postfix/smtp[4581]: connect to pop3.btconnect.com[213.123.26.23]:25: Connection timed out
Nov 20 09:14:08 mezzo-VirtualBox postfix/smtp[4579]: connect to pop3.btconnect.com[213.123.26.23]:25: Connection timed out
Nov 20 09:14:08 mezzo-VirtualBox postfix/smtp[4580]: connect to pop3.btconnect.com[213.123.26.23]:25: Connection timed out
Nov 20 09:14:08 mezzo-VirtualBox postfix/smtp[4578]: D9A644AB26: to=<**************@gmail.com>, relay=none, delay=1077, delays=1047/0.07/30/0, dsn=4.4.1, status=deferred (connect to pop3.btconnect.com[213.123.26.23]:25: Connection timed out)
Nov 20 09:14:08 mezzo-VirtualBox postfix/smtp[4579]: 9E4894A6E6: to=<**************@gmail.com>, relay=none, delay=547, delays=516/0.1/30/0, dsn=4.4.1, status=deferred (connect to pop3.btconnect.com[213.123.26.23]:25: Connection timed out)
Nov 20 09:14:09 mezzo-VirtualBox postfix/smtp[4581]: E07D44A826: to=<**************@gmail.com>, relay=none, delay=1087, delays=1057/0.1/30/0, dsn=4.4.1, status=deferred (connect to pop3.btconnect.com[213.123.26.23]:25: Connection timed out)
Nov 20 09:14:09 mezzo-VirtualBox postfix/smtp[4580]: 2E2A34A825: to=<**************@gmail.com>, relay=none, delay=1479, delays=1449/0.09/30/0, dsn=4.4.1, status=deferred (connect to pop3.btconnect.com[213.123.26.23]:25: Connection timed out)
Codice: Seleziona tutto
echo testing | mail -s Bla **************@gmail.com
