I receive email but not send
09-26-2016, 03:00 AM
(This post was last modified: 09-26-2016, 03:09 AM by YanoLoL.)
Hi guys, i'm testing the Sentora on my Ubuntu VPS, but I have a problem to send emails, when I try to send something, always returns the following error.
How can I fix this problem?
main.cf
Code:
This is the mail system at host painel.raposa.ninja.
####################################################################
# THIS IS A WARNING ONLY. YOU DO NOT NEED TO RESEND YOUR MESSAGE. #
####################################################################
Your message could not be delivered for more than 4 hour(s).
It will be retried until it is 5 day(s) old.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<cristian.y.yano@gmail.com>: connect to
alt2.gmail-smtp-in.l.google.com[2a00:1450:400b:c03::1b]:25: Network is
unreachable
Reporting-MTA: dns; painel.raposa.ninja
X-Postfix-Queue-ID: D497DC30E6
X-Postfix-Sender: rfc822; contato@raposa.ninja
Arrival-Date: Sat, 24 Sep 2016 16:46:18 -0300 (BRT)
Final-Recipient: rfc822; cristian.y.yano@gmail.com
Original-Recipient: rfc822;cristian.y.yano@gmail.com
Action: delayed
Status: 4.4.1
Diagnostic-Code: X-Postfix; connect to
alt2.gmail-smtp-in.l.google.com[2a00:1450:400b:c03::1b]:25: Network is
unreachable
Will-Retry-Until: Thu, 29 Sep 2016 16:46:18 -0300 (BRT)
Return-Path: <contato@raposa.ninja>
Received: from painel.raposa.ninja (localhost [127.0.0.1])
by painel.raposa.ninja (Postfix) with ESMTPA id D497DC30E6
for <cristian.y.yano@gmail.com>; Sat, 24 Sep 2016 16:46:18 -0300 (BRT)
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="=_e85195d31df1f8de85deb4d584fa8e25"
Date: Sat, 24 Sep 2016 16:46:18 -0300
From: contato@raposa.ninja
To: cristian.y.yano@gmail.com
Subject: asd
Message-ID: <9ed7d427fc1857a22f833ff0f8360486@raposa.ninja>
X-Sender: contato@raposa.ninja
User-Agent: Roundcube Webmail/1.0.4
How can I fix this problem?
main.cf
Code:
# postfix config file
# uncomment for debugging if needed
soft_bounce=yes
# postfix main
mail_owner = postfix
setgid_group = postdrop
delay_warning_time = 4
# postfix paths
html_directory = no
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
queue_directory = /var/spool/postfix
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.2.2/samples
readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES
# network settings
inet_interfaces = all
mydomain = painel.raposa.ninja
myhostname = painel.raposa.ninja
mynetworks = 127.0.0.1, 45.55.250.237
mydestination = localhost.$mydomain, localhost
relay_domains = proxy:mysql:/etc/sentora/configs/postfix/mysql-relay_domains_maps.cf
# mail delivery
recipient_delimiter = +
# mappings
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
= hash:/etc/postfix/transport
=
# virtual setup
virtual_alias_maps = proxy:mysql:/etc/sentora/configs/postfix/mysql-virtual_alias_maps.cf,
regexp:/etc/sentora/configs/postfix/virtual_regexp
virtual_mailbox_base = /var/sentora/vmail
virtual_mailbox_domains = proxy:mysql:/etc/sentora/configs/postfix/mysql-virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/sentora/configs/postfix/mysql-virtual_mailbox_maps.cf
virtual_minimum_uid = 999
virtual_uid_maps = static:999
virtual_gid_maps = static:8
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
# debugging
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
# authentication
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
# tls config
smtp_use_tls = no
smtpd_use_tls = no
= yes
= 1
= yes
= 3600s
= dev:/dev/urandom
= btree:$data_directory/smtp_tls_session_cache
# Change mail.example.com.* to your host name
= /etc/pki/tls/private/mail.example.com.key
= /etc/pki/tls/certs/mail.example.com.crt
# smtpd_tls_CAfile = /etc/pki/tls/root.crt
# rules restrictions
smtpd_client_restrictions =
smtpd_helo_restrictions =
smtpd_sender_restrictions =
smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks,
reject_unauth_destination,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain
# uncomment for realtime black list checks. (Warn: will also reject false positive)
# ,reject_rbl_client zen.spamhaus.org
# ,reject_rbl_client bl.spamcop.net
# ,reject_rbl_client dnsbl.sorbs.net
smtpd_helo_required = yes
unknown_local_recipient_reject_code = 550
disable_vrfy_command = yes
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_banner = $myhostname ESMTP
message_size_limit = 20480000