Servidor não envia para email para fora

1. Servidor não envia para email para fora

rodrigo
quemsoueu

(usa Fedora)

Enviado em 03/08/2020 - 14:11h

Olá meus caros, faz um bom tempo que venho aqui no forum e que não coloco a mão em um servidor também.
Eu preciso configurar um servidor de email em um VPS, como já tinha trabalhado com postfix a muito tempo atrás decidi usá-lo.

Esse é meu main.cf

# 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

# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
# fresh installs.
compatibility_level = 2

# 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


# Relay smtp
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_relay
smtp_sasl_tls_security_options = noanonymous


relayhost = [smtp.gmail.com]:587

# 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 = attiquetecnologia.com.br
mydomain = attiquetecnologia.com.br
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#relayhost = $mydomain
#mydestination = $mydomain, $myhostname, vps.server.local, attique01, localhost.localdomain, localhost, localhost.$mydomain
mydestination = $mydomain $myhostname attique01 localhost.localdomain localhost localhost.$mydomain
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 45.80.152.0/28
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
#inet_interfaces = loopback-only #all
inet_protocols = all

meu arquivo sasl_passwd
smtp.gmail.com [email protected]:minha_senha

e sender_relay respectivamente
@gmail.com [smtp.gmail.com]:587

Aqui vai um log
Aug 3 13:52:13 attique01 postfix/pickup[27999]: 0226384D16: uid=0 from=<[email protected]>
Aug 3 13:52:13 attique01 postfix/cleanup[28022]: 0226384D16: message-id=<[email protected]>
Aug 3 13:52:13 attique01 postfix/qmgr[28000]: 0226384D16: from=<[email protected]>, size=354, nrcpt=1 (queue active)
Aug 3 13:52:13 attique01 postfix/smtp[28024]: 0226384D16: to=<[email protected]>, relay=smtp.gmail.com[74.125.196.109]:587, delay=0.21, delays=0.01/0.01/0.18/0.02, dsn=5.7.0, status=bounced (host smtp.gmail.com[74.125.196.109] said: 530 5.7.0 Must issue a STARTTLS command first. c70sm16806516qke.109 - gsmtp (in reply to MAIL FROM command))
Aug 3 13:52:13 attique01 postfix/cleanup[28022]: 3997184D18: message-id=<[email protected]>
Aug 3 13:52:13 attique01 postfix/qmgr[28000]: 3997184D18: from=<>, size=2514, nrcpt=1 (queue active)
Aug 3 13:52:13 attique01 postfix/bounce[28025]: 0226384D16: sender non-delivery notification: 3997184D18
Aug 3 13:52:13 attique01 postfix/qmgr[28000]: 0226384D16: removed
Aug 3 13:52:13 attique01 postfix/local[28026]: 3997184D18: to=<[email protected]>, relay=local, delay=0.01, delays=0/0.01/0/0, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Aug 3 13:52:13 attique01 postfix/qmgr[28000]: 3997184D18: removed
Aug 3 13:53:43 attique01 postfix/pickup[27999]: 690D784D16: uid=0 from=<[email protected]>
Aug 3 13:53:43 attique01 postfix/cleanup[28022]: 690D784D16: message-id=<[email protected]>
Aug 3 13:53:43 attique01 postfix/qmgr[28000]: 690D784D16: from=<[email protected]>, size=429, nrcpt=2 (queue active)
Aug 3 13:53:43 attique01 postfix/smtp[28024]: 690D784D16: to=<[email protected]>, relay=smtp.gmail.com[74.125.196.109]:587, delay=0.07, delays=0/0/0.05/0.02, dsn=5.7.0, status=bounced (host smtp.gmail.com[74.125.196.109] said: 530 5.7.0 Must issue a STARTTLS command first. h81sm20781866qke.76 - gsmtp (in reply to MAIL FROM command))
Aug 3 13:53:43 attique01 postfix/smtp[28024]: 690D784D16: to=<[email protected]>, relay=smtp.gmail.com[74.125.196.109]:587, delay=0.07, delays=0/0/0.05/0.02, dsn=5.7.0, status=bounced (host smtp.gmail.com[74.125.196.109] said: 530 5.7.0 Must issue a STARTTLS command first. h81sm20781866qke.76 - gsmtp (in reply to MAIL FROM command))
Aug 3 13:53:43 attique01 postfix/cleanup[28022]: 7E0A084D18: message-id=<[email protected]>
Aug 3 13:53:43 attique01 postfix/qmgr[28000]: 7E0A084D18: from=<>, size=3057, nrcpt=1 (queue active)
Aug 3 13:53:43 attique01 postfix/bounce[28025]: 690D784D16: sender non-delivery notification: 7E0A084D18
Aug 3 13:53:43 attique01 postfix/qmgr[28000]: 690D784D16: removed
Aug 3 13:53:43 attique01 postfix/local[28026]: 7E0A084D18: to=<[email protected]>, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Aug 3 13:53:43 attique01 postfix/qmgr[28000]: 7E0A084D18: removed
Aug 3 15:14:20 attique01 postfix/smtpd[28559]: connect from ip137.ip-87-98-133.eu[87.98.133.137]
Aug 3 15:14:20 attique01 postfix/smtpd[28559]: NOQUEUE: reject: RCPT from ip137.ip-87-98-133.eu[87.98.133.137]: 454 4.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<WIN-CUEJ9MAA6DP>
Aug 3 15:14:20 attique01 postfix/smtpd[28559]: disconnect from ip137.ip-87-98-133.eu[87.98.133.137] ehlo=1 mail=1 rcpt=0/1 rset=1 quit=1 commands=4/5
Aug 3 15:17:40 attique01 postfix/anvil[28562]: statistics: max connection rate 1/60s for (smtp:87.98.133.137) at Aug 3 15:14:20
Aug 3 15:17:40 attique01 postfix/anvil[28562]: statistics: max connection count 1 for (smtp:87.98.133.137) at Aug 3 15:14:20
Aug 3 15:17:40 attique01 postfix/anvil[28562]: statistics: max cache size 1 at Aug 3 15:14:20
Aug 3 16:10:51 attique01 postfix/smtpd[28925]: warning: hostname djpq.smalitre.com does not resolve to address 93.119.106.74: Name or service not known
Aug 3 16:10:51 attique01 postfix/smtpd[28925]: connect from unknown[93.119.106.74]
Aug 3 16:10:52 attique01 postfix/smtpd[28925]: NOQUEUE: reject: RCPT from unknown[93.119.106.74]: 454 4.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<760256671.vectronicsappleworlds.com>
Aug 3 16:10:52 attique01 postfix/smtpd[28925]: disconnect from unknown[93.119.106.74] ehlo=2 starttls=1 mail=1 rcpt=0/1 quit=1 commands=5/6
Aug 3 16:14:12 attique01 postfix/anvil[28927]: statistics: max connection rate 1/60s for (smtp:93.119.106.74) at Aug 3 16:10:51
Aug 3 16:14:12 attique01 postfix/anvil[28927]: statistics: max connection count 1 for (smtp:93.119.106.74) at Aug 3 16:10:51
Aug 3 16:14:12 attique01 postfix/anvil[28927]: statistics: max cache size 1 at Aug 3 16:10:51







  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner
Linux banner
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts