URGENT - I can't receive emails from domains external to my domain configured in Cyberpanel

Dear All,

After trying to configure spamassassin unsuccessfully, I am no longer able to receive emails from domains external to my domain.

My SMTP service is also not automatically uploading when I restarted my server, I have to upload it manually.

Could someone help me, my clients want to kill me kkkkk

Regards,

Marcelo

Updating this post:

This is the message I’m getting back in my gmail email when I try to send messages to an email hosted on my domain:

Mail Delivery System [email protected]
16:17 (há 3 minutos)
para mim

This is the mail system at host mail.osait.com.br.

I’m sorry to have to inform you that your message could not
be delivered to one or more recipients. It’s attached below.

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

[email protected]: service unavailable

Can someone help me please?

Regards,

Marcelo

My /etc/postfix/main.cf

[root@osait postfix]# cat main.cf

Global Postfix configuration file. This file lists only a subset

of all parameters. For the syntax, and for a complete parameter

list, see the postconf(5) manual page (command: “man 5 postconf”).

For common configuration examples, see BASIC_CONFIGURATION_README

and STANDARD_CONFIGURATION_README. To find these documents, use

the command “postconf html_directory readme_directory”, or go to

http://www.postfix.org/.

For best results, change no more than 2-3 parameters at a time,

and test if Postfix still works after every change.

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
inet_protocols = all
mydestination = localhost, localhost.localdomain
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.10.1/samples
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES

myhostname = mail.osait.com.br
mynetworks = 127.0.0.0/8
message_size_limit = 30720000
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/pki/dovecot/certs/dovecot.pem
smtpd_tls_key_file = /etc/pki/dovecot/private/dovecot.pem
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
inet_interfaces = all
smtp_tls_security_level = may

smtpd_milters = inet:127.0.0.1:8891
non_smtpd_milters = $smtpd_milters
milter_default_action = accept

tls_server_sni_maps = hash:/etc/postfix/vmail_ssl.map
smtpd_data_restrictions = check_policy_service unix:/var/log/policyServerSocket
smtpd_policy_service_default_action = DUNNO

Updating:

Output of /var/log/maillog:

Oct 11 19:57:16 osait postfix/smtpd[3997]: warning: connect to /var/log/policyServerSocket: No such file or directory
Oct 11 19:57:16 osait postfix/smtpd[3997]: warning: problem talking to server /var/log/policyServerSocket: No such file or directory
Oct 11 19:57:16 osait postfix/cleanup[4066]: 2FA8866E75: message-id=[email protected]
Oct 11 19:57:16 osait opendkim[447]: 2FA8866E75: DKIM-Signature field added (s=default, d=osait.com.br)
Oct 11 19:57:16 osait postfix/qmgr[2486]: 2FA8866E75: from=[email protected], size=22899, nrcpt=1 (queue active)
Oct 11 19:57:16 osait sendmail[4185]: 19BJvFQ8004185: [email protected], delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=52063, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 2FA8866E75)
Oct 11 19:57:16 osait postfix/smtpd[3997]: disconnect from localhost[127.0.0.1] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Oct 11 19:57:16 osait postfix/pipe[4071]: E12FF66E3E: to=[email protected], relay=spamassassin, delay=2.4, delays=1.1/0/0/1.3, dsn=2.0.0, status=sent (delivered via spamassassin service)
Oct 11 19:57:16 osait postfix/qmgr[2486]: E12FF66E3E: removed
Oct 11 19:57:16 osait spamd[4056]: spamd: connection from localhost [::1]:53124 to port 783, fd 6
Oct 11 19:57:16 osait spamd[4056]: spamd: setuid to spamd succeeded
Oct 11 19:57:16 osait spamd[4056]: spamd: processing message [email protected] for spamd:5007
Oct 11 19:57:16 osait spamd[4056]: Use of uninitialized value $rr_type in string eq at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Plugin/AskDNS.pm line 592, line 421.
Oct 11 19:57:16 osait spamd[4056]: Use of uninitialized value $rr_type in string eq at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Plugin/AskDNS.pm line 592, line 421.
Oct 11 19:57:16 osait spamd[4056]: spamd: clean message (-1.1/5.0) for spamd:5007 in 0.1 seconds, 22913 bytes.
Oct 11 19:57:16 osait spamd[4056]: spamd: result: . -1 - ALL_TRUSTED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,T_TVD_MIME_NO_HEADERS scantime=0.1,size=22913,user=spamd,uid=5007,required_score=5.0,rhost=localhost,raddr=::1,rport=53124,mid=[email protected],autolearn=unavailable autolearn_force=no
Oct 11 19:57:16 osait sendmail[4190]: 19BJvGxk004190: Authentication-Warning: osait.com.br: spamd set sender to [email protected] using -f
Oct 11 19:57:16 osait sendmail[4190]: 19BJvGxk004190: [email protected], size=22913, class=0, nrcpts=1, msgid=[email protected], relay=spamd@localhost
Oct 11 19:57:16 osait sendmail[4190]: 19BJvGxk004190: SYSERR(spamd): Too many hops 27 (25 max): from [email protected] via localhost, to [email protected]
Oct 11 19:57:16 osait sendmail[4190]: 19BJvGxk004190: 19BJvGxl004190: DSN: Too many hops 27 (25 max): from [email protected] via localhost, to [email protected]
Oct 11 19:57:16 osait postfix/smtpd[3997]: connect from localhost[127.0.0.1]
Oct 11 19:57:16 osait spamd[4055]: prefork: child states: II
Oct 11 19:57:16 osait sendmail[4190]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-AES256-GCM-SHA384, bits=256/256
Oct 11 19:57:16 osait postfix/smtpd[3997]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 [email protected]: Recipient address rejected: User unknown in virtual mailbox table; from=<> to=[email protected] proto=ESMTP helo=<osait.com.br>
Oct 11 19:57:16 osait sendmail[4190]: 19BJvGxl004190: [email protected], delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=53937, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
Oct 11 19:57:16 osait sendmail[4190]: 19BJvGxl004190: 19BJvGxm004190: return to sender: User unknown
Oct 11 19:57:16 osait postfix/smtpd[3997]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 [email protected]: Recipient address rejected: User unknown in virtual mailbox table; from=<> to=[email protected] proto=ESMTP helo=<osait.com.br>
Oct 11 19:57:16 osait sendmail[4190]: 19BJvGxm004190: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=54961, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
Oct 11 19:57:16 osait sendmail[4190]: 19BJvGxl004190: Losing ./qf19BJvGxl004190: savemail panic
Oct 11 19:57:16 osait sendmail[4190]: 19BJvGxl004190: SYSERR(spamd): savemail: cannot save rejected email anywhere
Oct 11 19:57:16 osait postfix/smtpd[3997]: disconnect from localhost[127.0.0.1] ehlo=2 starttls=1 mail=2 rcpt=0/2 data=0/2 rset=3 quit=1 commands=9/13
Oct 11 19:57:16 osait postfix/pipe[4067]: 2FA8866E75: to=[email protected], relay=spamassassin, delay=1.3, delays=1.1/0/0/0.2, dsn=5.3.0, status=bounced (service unavailable)
Oct 11 19:57:16 osait postfix/cleanup[4066]: 76C9D66E45: message-id=[email protected]
Oct 11 19:57:16 osait postfix/qmgr[2486]: 76C9D66E45: from=<>, size=25136, nrcpt=1 (queue active)
Oct 11 19:57:16 osait postfix/bounce[4139]: 2FA8866E75: sender non-delivery notification: 76C9D66E45
Oct 11 19:57:16 osait postfix/qmgr[2486]: 2FA8866E75: removed
Oct 11 19:57:16 osait postfix/pipe[4193]: 76C9D66E45: to=[email protected], relay=dovecot, delay=0.03, delays=0/0.01/0/0.02, dsn=5.1.1, status=bounced (user unknown)
Oct 11 19:57:16 osait postfix/qmgr[2486]: 76C9D66E45: removed
Oct 11 19:57:48 osait postfix/smtps/smtpd[4209]: warning: hostname 21-199-115-208.static.reverse.lstn.net does not resolve to address 208.115.199.21: Name or service not known
Oct 11 19:57:48 osait postfix/smtps/smtpd[4209]: connect from unknown[208.115.199.21]
Oct 11 19:57:48 osait postfix/smtps/smtpd[4209]: SSL_accept error from unknown[208.115.199.21]: lost connection
Oct 11 19:57:48 osait postfix/smtps/smtpd[4209]: lost connection after CONNECT from unknown[208.115.199.21]
Oct 11 19:57:48 osait postfix/smtps/smtpd[4209]: disconnect from unknown[208.115.199.21] commands=0/0

Oct 11 20:06:26 osait postfix/qmgr[5077]: D713366E3E: removed
Oct 11 20:06:26 osait spamd[5335]: spamd: connection from localhost [::1]:43766 to port 783, fd 6
Oct 11 20:06:26 osait spamd[5335]: spamd: setuid to spamd succeeded
Oct 11 20:06:26 osait spamd[5335]: spamd: processing message [email protected] for spamd:5007
Oct 11 20:06:27 osait spamd[5335]: Use of uninitialized value $rr_type in string eq at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Plugin/AskDNS.pm line 592, line 3864.
Oct 11 20:06:27 osait spamd[5335]: Use of uninitialized value $rr_type in string eq at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Plugin/AskDNS.pm line 592, line 3864.
Oct 11 20:06:27 osait spamd[5335]: spamd: clean message (-1.1/5.0) for spamd:5007 in 0.5 seconds, 203031 bytes.
Oct 11 20:06:27 osait spamd[5335]: spamd: result: . -1 - ALL_TRUSTED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,T_MIME_NO_TEXT,T_TVD_MIME_NO_HEADERS scantime=0.5,size=203031,user=spamd,uid=5007,required_score=5.0,rhost=localhost,raddr=::1,rport=43766,mid=[email protected],autolearn=unavailable autolearn_force=no
Oct 11 20:06:27 osait sendmail[5457]: 19BK6Rrn005457: Authentication-Warning: osait.com.br: spamd set sender to [email protected] using -f
Oct 11 20:06:27 osait sendmail[5457]: 19BK6Rrn005457: [email protected], size=203031, class=0, nrcpts=1, msgid=[email protected], relay=spamd@localhost
Oct 11 20:06:27 osait postfix/smtpd[5301]: connect from localhost[127.0.0.1]
Oct 11 20:06:27 osait sendmail[5457]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-AES256-GCM-SHA384, bits=256/256
Oct 11 20:06:27 osait spamd[5334]: prefork: child states: II
Oct 11 20:06:27 osait postfix/smtpd[5301]: 2BB4D66E3E: client=localhost[127.0.0.1]
Oct 11 20:06:27 osait postfix/smtpd[5301]: warning: connect to /var/log/policyServerSocket: No such file or directory
Oct 11 20:06:28 osait postfix/smtpd[5301]: warning: connect to /var/log/policyServerSocket: No such file or directory
Oct 11 20:06:28 osait postfix/smtpd[5301]: warning: problem talking to server /var/log/policyServerSocket: No such file or directory
Oct 11 20:06:28 osait postfix/cleanup[5460]: 2BB4D66E3E: message-id=[email protected]
Oct 11 20:06:28 osait opendkim[447]: 2BB4D66E3E: DKIM-Signature field added (s=default, d=osait.com.br)
Oct 11 20:06:28 osait postfix/qmgr[5077]: 2BB4D66E3E: from=[email protected], size=207373, nrcpt=1 (queue active)
Oct 11 20:06:28 osait sendmail[5457]: 19BK6Rrn005457: [email protected], delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=233031, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 2BB4D66E3E)
Oct 11 20:06:28 osait postfix/smtpd[5301]: disconnect from localhost[127.0.0.1] ehlo=2 starttls=1 mail=1 rcpt=1 data=1 quit=1 commands=7
Oct 11 20:06:28 osait postfix/pipe[5087]: 7A05E66E75: to=[email protected], relay=spamassassin, delay=2.8, delays=1.1/0/0/1.7, dsn=2.0.0, status=sent (delivered via spamassassin service)
Oct 11 20:06:28 osait postfix/qmgr[5077]: 7A05E66E75: removed
Oct 11 20:06:28 osait spamd[5335]: spamd: connection from localhost [::1]:43812 to port 783, fd 6
Oct 11 20:06:28 osait spamd[5335]: spamd: setuid to spamd succeeded
Oct 11 20:06:28 osait spamd[5335]: spamd: processing message [email protected] for spamd:5007
Oct 11 20:06:28 osait spamd[5335]: Use of uninitialized value $rr_type in string eq at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Plugin/AskDNS.pm line 592, line 3879.
Oct 11 20:06:28 osait spamd[5335]: Use of uninitialized value $rr_type in string eq at /usr/share/perl5/vendor_perl/Mail/SpamAssassin/Plugin/AskDNS.pm line 592, line 3879.
Oct 11 20:06:28 osait spamd[5335]: spamd: clean message (-1.1/5.0) for spamd:5007 in 0.5 seconds, 203887 bytes.
Oct 11 20:06:28 osait spamd[5335]: spamd: result: . -1 - ALL_TRUSTED,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,T_MIME_NO_TEXT,T_TVD_MIME_NO_HEADERS scantime=0.5,size=203887,user=spamd,uid=5007,required_score=5.0,rhost=localhost,raddr=::1,rport=43812,mid=[email protected],autolearn=unavailable autolearn_force=no
Oct 11 20:06:28 osait sendmail[5461]: 19BK6STw005461: Authentication-Warning: osait.com.br: spamd set sender to [email protected] using -f
Oct 11 20:06:28 osait sendmail[5461]: 19BK6STw005461: [email protected], size=203887, class=0, nrcpts=1, msgid=[email protected], relay=spamd@localhost
Oct 11 20:06:28 osait sendmail[5461]: 19BK6STw005461: SYSERR(spamd): Too many hops 27 (25 max): from [email protected] via localhost, to [email protected]
Oct 11 20:06:28 osait sendmail[5461]: 19BK6STw005461: 19BK6STx005461: DSN: Too many hops 27 (25 max): from [email protected] via localhost, to [email protected]
Oct 11 20:06:28 osait postfix/smtpd[5081]: connect from localhost[127.0.0.1]
Oct 11 20:06:28 osait sendmail[5461]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-AES256-GCM-SHA384, bits=256/256
Oct 11 20:06:28 osait postfix/smtpd[5081]: CCD9A66E85: client=localhost[127.0.0.1]
Oct 11 20:06:28 osait postfix/smtpd[5081]: warning: connect to /var/log/policyServerSocket: No such file or directory
Oct 11 20:06:28 osait spamd[5334]: prefork: child states: II