Skip to main content

Thread: I can't send mail using PostFix, I can only receive mail


i set mail server using guide here: https://help.ubuntu.com/community/mailserver
able receive mail, can send mail locally, can't send external addresses.

in mail.log:
jun 30 14:40:43 server postfix/smtp[10725]: 2fd9322015bf: to=<myemail@gmail.com>, relay=none, delay=1634, delays=1484/0.02/150/0, dsn=4.4.1, status=deferred (connect alt4.gmail-smtp-in.l.google.com[74.125.65.27]:25: connection timed out)
this main.cf:
myorigin = mysite.com

smtpd_banner = $myhostname esmtp $mail_name (ubuntu)
biff = no

# appending .domain mua's job.
append_dot_mydomain = no

# uncomment next line generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# tls parameters
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
inet_interfaces = all

smtp_tls_security_level = may
smtpd_tls_security_level = may
smtpd_tls_auth_only = no
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/ssl/private/smtpd.key
smtpd_tls_cert_file = /etc/ssl/certs/smtpd.crt
smtpd_tls_cafile = /etc/ssl/certs/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

# see /usr/share/doc/postfix/tls_readme.gz in postfix-doc package for
# information on enabling ssl in smtp client.

myhostname = mail.mysite.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydomain = mysite.com
mydestination = $myhostname localhost.$mydomain localhost $mydomain
relay_domains =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
content_filter = smtp-amavis:[127.0.0.1]:10024
home_mailbox = maildir/

can telnet smtp server on port 25? maybe isp blocks port, it's quite common.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] I can't send mail using PostFix, I can only receive mail


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support