1

Topic: Neither can send emails to outside server nor recive.

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  1.3.1 MARIADB edition.
- Deployed with iRedMail Easy or the downloadable installer? ~ done with iRedMail Easy
- Linux/BSD distribution name and version: Ubuntu 20.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? ~ No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I have only a litte grasp of linux and did it all by following this tutorial i found online: https://www.linuxbabe.com/mail-server/u … ail-server

I also get that it has something to do with my a/aaaa dns something but i did every solution the tutorial offered and couldnt fix it. Neither could i find a similar problem online or a solution that might fix it.

This is what the mail.log files says(The only information im seeing in this is that the email got forwared internally back to sender. at least as far as i understand):

Aug 29 02:33:31 14168-11380 postfix[16880]: Postfix is running with backwards-compatible default settings
Aug 29 02:33:31 14168-11380 postfix[16880]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Aug 29 02:33:31 14168-11380 postfix[16880]: To disable backwards compatibility use "postconf compatibility_level=2" and "postfix reload"
Aug 29 02:33:31 14168-11380 postfix/postfix-script[16982]: starting the Postfix mail system
Aug 29 02:33:31 14168-11380 postfix/master[16984]: daemon started -- version 3.4.13, configuration /etc/postfix
Aug 29 02:34:17 14168-11380 dovecot: master: Dovecot v2.3.7.2 (3c910f64b) starting up without any protocols (core dumps disabled)
Aug 29 02:35:10 14168-11380 amavis[27574]: starting. /usr/sbin/amavisd-new at mail.sopatforces.xyz amavisd-new-2.11.0 (20160426), Unicode aware, LC_ALL="C", LANG="C.UTF-8"
Aug 29 02:35:11 14168-11380 amavis[27583]: Net::Server: Group Not Defined.  Defaulting to EGID '126 126'
Aug 29 02:35:11 14168-11380 amavis[27583]: Net::Server: User Not Defined.  Defaulting to EUID '118'
Aug 29 02:35:11 14168-11380 amavis[27583]: No ext program for   .zoo, tried: zoo
Aug 29 02:35:11 14168-11380 amavis[27583]: No ext program for   .doc, tried: ripole
Aug 29 02:35:11 14168-11380 amavis[27583]: No decoder for       .F
Aug 29 02:35:11 14168-11380 amavis[27583]: No decoder for       .doc
Aug 29 02:35:11 14168-11380 amavis[27583]: No decoder for       .zoo
Aug 29 02:36:07 mail dovecot: master: Warning: Killed with signal 15 (by pid=35899 uid=0 code=kill)
Aug 29 02:36:17 mail postfix/smtpd[35906]: connect from unknown[212.70.149.4]
Aug 29 02:36:21 mail postfix/smtpd[35906]: disconnect from unknown[212.70.149.4] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
Aug 29 02:37:39 mail dovecot: master: Dovecot v2.3.7.2 (3c910f64b) starting up for imap, lmtp, sieve, pop3 (core dumps disabled)
Aug 29 02:39:35 mail postfix/smtpd[39338]: connect from unknown[212.70.149.4]
Aug 29 02:39:38 mail postfix/smtpd[39338]: disconnect from unknown[212.70.149.4] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
Aug 29 02:40:11 14168-11380 amavis[407]: starting. /usr/sbin/amavisd-new at mail.sopatforces.xyz amavisd-new-2.11.0 (20160426), Unicode aware, LC_ALL="C", LANG="C.UTF-8"
Aug 29 02:40:11 14168-11380 amavis[957]: Net::Server: Group Not Defined.  Defaulting to EGID '126 126'
Aug 29 02:40:11 14168-11380 amavis[957]: Net::Server: User Not Defined.  Defaulting to EUID '118'
Aug 29 02:40:11 14168-11380 amavis[957]: No ext program for   .F, tried: unfreeze, freeze -d, melt, fcat
Aug 29 02:40:11 14168-11380 amavis[957]: No ext program for   .zoo, tried: zoo, unzoo
Aug 29 02:40:11 14168-11380 amavis[957]: No decoder for       .F
Aug 29 02:40:11 14168-11380 amavis[957]: No decoder for       .zoo
Aug 29 02:40:11 14168-11380 amavis[957]: Using primary internal av scanner code for clamav-socket
Aug 29 02:40:11 14168-11380 amavis[957]: Found secondary av scanner clamav-clamscan at /usr/bin/clamscan
Aug 29 02:40:16 14168-11380 postfix/postfix-script[1974]: warning: symlink leaves directory: /etc/postfix/./makedefs.out
Aug 29 02:40:16 14168-11380 postfix/postfix-script[2143]: starting the Postfix mail system
Aug 29 02:40:16 14168-11380 postfix/master[2145]: daemon started -- version 3.4.13, configuration /etc/postfix
Aug 29 02:42:47 14168-11380 roundcube: <dgsrn8bt> IMAP Error: Login failed for sia.sopatforces.xyz against 127.0.0.1 from 91.96.15.167. AUTHENTICATE LOGIN: A0001 NO [AUTHENTICATIONFAILED] Authentication failed. in /opt/www/roundcubemail>
Aug 29 02:42:49 14168-11380 postfix/postscreen[2615]: cache btree:/var/lib/postfix/postscreen_cache full cleanup: retained=0 dropped=0 entries
Aug 29 02:42:49 14168-11380 postfix/postscreen[2615]: CONNECT from [212.70.149.4]:31404 to [164.132.6.140]:25
Aug 29 02:42:49 14168-11380 postfix/dnsblog[2616]: addr 212.70.149.4 listed by domain b.barracudacentral.org as 127.0.0.2
Aug 29 02:42:49 14168-11380 postfix/postscreen[2615]: PREGREET 11 after 0.73 from [212.70.149.4]:31404: EHLO User\r\n
Aug 29 02:42:49 14168-11380 postfix/postscreen[2615]: DISCONNECT [212.70.149.4]:31404
Aug 29 02:43:21 14168-11380 roundcube: <dgsrn8bt> IMAP Error: Login failed for sopar intelligence agency against 127.0.0.1 from 91.96.15.167. Authentication failed. in /opt/www/roundcubemail-1.4.7/program/lib/Roundcube/rcube_imap.php on>
Aug 29 02:43:37 14168-11380 roundcube: <dgsrn8bt> IMAP Error: Login failed for sopar intelligence agency against 127.0.0.1 from 91.96.15.167. Authentication failed. in /opt/www/roundcubemail-1.4.7/program/lib/Roundcube/rcube_imap.php on>
Aug 29 02:45:39 14168-11380 roundcube: <dgsrn8bt> IMAP Error: Login failed for solmcgougan against 127.0.0.1 from 91.96.15.167. AUTHENTICATE LOGIN: A0001 NO [AUTHENTICATIONFAILED] Authentication failed. in /opt/www/roundcubemail-1.4.7/p>
Aug 29 02:49:53 14168-11380 postfix/submission/smtpd[3132]: connect from mail.sopatforces.xyz[127.0.0.1]
Aug 29 02:49:53 14168-11380 postfix/submission/smtpd[3132]: Anonymous TLS connection established from mail.sopatforces.xyz[127.0.0.1]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PS>
Aug 29 02:49:53 14168-11380 postfix/submission/smtpd[3132]: 4BddCj1bG8z17b4: client=mail.sopatforces.xyz[127.0.0.1], sasl_method=LOGIN, sasl_username=solmcgougan@sopatforces.xyz
Aug 29 02:49:53 14168-11380 postfix/cleanup[3146]: 4BddCj1bG8z17b4: message-id=<23f12feaa5d5ad8ebe1b7500f3479d88@sopatforces.xyz>
Aug 29 02:49:53 14168-11380 postfix/qmgr[2147]: 4BddCj1bG8z17b4: from=<solmcgougan@sopatforces.xyz>, size=641, nrcpt=1 (queue active)
Aug 29 02:49:53 14168-11380 roundcube: <jc5bfous> User solmcgougan@sopatforces.xyz [91.96.15.167]; Message <23f12feaa5d5ad8ebe1b7500f3479d88@sopatforces.xyz> for **********@gmx.com; 250: 2.0.0 Ok: queued as 4BddCj1bG8z17b4
Aug 29 02:49:53 14168-11380 postfix/submission/smtpd[3132]: disconnect from mail.sopatforces.xyz[127.0.0.1] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8
Aug 29 02:49:53 14168-11380 postfix/10025/smtpd[3157]: connect from mail.sopatforces.xyz[127.0.0.1]
Aug 29 02:49:53 14168-11380 postfix/10025/smtpd[3157]: 4BddCj4VCwz17cC: client=mail.sopatforces.xyz[127.0.0.1]
Aug 29 02:49:53 14168-11380 postfix/cleanup[3146]: 4BddCj4VCwz17cC: message-id=<23f12feaa5d5ad8ebe1b7500f3479d88@sopatforces.xyz>
Aug 29 02:49:53 14168-11380 postfix/10025/smtpd[3157]: disconnect from mail.sopatforces.xyz[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Aug 29 02:49:53 14168-11380 postfix/qmgr[2147]: 4BddCj4VCwz17cC: from=<solmcgougan@sopatforces.xyz>, size=1910, nrcpt=1 (queue active)
Aug 29 02:49:53 14168-11380 amavis[1285]: (01285-01) Passed CLEAN {RelayedInternal}, ORIGINATING/MYNETS LOCAL [127.0.0.1]:33928 ESMTP/ESMTP <solmcgougan@sopatforces.xyz> -> <**********@gmx.com>, (), Queue-ID: 4BddCj1bG8z17b4, Me>
Aug 29 02:49:53 14168-11380 postfix/amavis/smtp[3151]: 4BddCj1bG8z17b4: to=<**********@gmx.com>, relay=127.0.0.1[127.0.0.1]:10026, delay=0.52, delays=0.14/0.02/0.01/0.36, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.>
Aug 29 02:49:53 14168-11380 postfix/qmgr[2147]: 4BddCj1bG8z17b4: removed
Aug 29 02:49:53 14168-11380 postfix/smtp[3158]: Trusted TLS connection established to mx00.gmx.net[212.227.15.10]:25: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bi>
Aug 29 02:49:54 14168-11380 postfix/smtp[3158]: 4BddCj4VCwz17cC: to=<**********@gmx.com>, relay=mx00.gmx.net[212.227.15.10]:25, delay=0.61, delays=0.01/0.03/0.19/0.38, dsn=5.0.0, status=bounced (host mx00.gmx.net[212.227.15.10] >
Aug 29 02:49:54 14168-11380 postfix/cleanup[3146]: 4BddCk1qlrz17cL: message-id=<4BddCk1qlrz17cL@mail.sopatforces.xyz>


In before, i censored one of the emails intentionally and not because i confused something
I am fairly certain i did everything right with dns forwarding, here is a screenshot though of how it looks: http://prntscr.com/u7t3bp

i created the mail.sopatforces.xyz forwarding according to tutorial and the rest was there when i got the domain.
MAybe this is a fairly simple problem im just to retarded to see but i tried everything i could on my own and was left at the start.




Error i get when trying to send to the iredmail:

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of
its recipients. This is a permanent error. The following address(es)
failed:

solmcgougan@sopatforces.xyz:
non-existent domain


--- The header of the original message is following. ---

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net;
s=badeba3b8450; t=1598662686;
bh=yaW5+i4HzdifVlvt+fwj3LEA+OLm+bxIjS1GZeFqO/s=;
h=X-UI-Sender-Class:From:To:Subject:Date;
b=KguG6Z9u7c4IURbeDudgEVVP89JiAti1n38ElPXA8KUoSqNIGLabBvvPMPAEmB6Zc
8f6EzP4/qCXTzmrTwURr8BsZbdqHmBxoBnnGUZ2Yhw/2oIeOFQ9W/ccUkgArVzdeDW
PonmwhN8hA+XLkWL504d4P1H2a9pr1UzGl6JVC4Q=
X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c
Received: from [91.96.15.167] ([91.96.15.167]) by
msvc-mesg-gmx024.server.lan (via HTTP); Sat, 29 Aug 2020 02:58:06 +0200
MIME-Version: 1.0
Message-ID: <trinity-c47f2601-3b15-4ee8-8cee-dc46f532fbf6-1598662686167@msvc-mesg-gmx024>
From: ************ <*********@gmx.de>
To: solmcgougan@sopatforces.xyz
Subject: No im not gay
Content-Type: text/html; charset=UTF-8
Importance: normal
Date: Sat, 29 Aug 2020 02:58:06 +0200
X-Priority: 3
X-Provags-ID: V03:K1:pO57KwvRCVAJ+fCevBbHSS8qUl8ETXmu5Q8BULDtNAKAOGB51xaMA6SOOQsrFJt9ElA6c
wJrdenOScuFbP4p+mmrWq3gCJRsgYmT0BZkYfBhQ4He3z7gQjwWRtA1cd/NIEB1ss/PysguzoJaU
v0AaVhC/xZk7jAmB/pp1w0kUhdpqC4tX4mjUlm3cbuleIREw54AMfuskbD12W+IpEaArrV2gHva6
U9IIsTv7BrJM8xJWZFwc56h86/kCfGJlS8mkTe1IGGaqJ4AyuD1fdWTESRxLpM6uCI4aykxVDtuH
qDWPXATI6NF4pDYfnquQO4g
X-Spam-Flag: NO
X-UI-Out-Filterresults: notjunk:1;V03:K0:0ilb1q7geyU=:utb1g0fAhQQaFcxaQdL/Ji
id5N/BCyS9TFlFIfc1b3/t6dGYp/b3RWsknxWj7iqJKd7kj8glPmHcC6nGKHqlhil7Sg9PvQz
4SxGLwxkttZFmh/7tejOvWnqQXmwTmdEw7DAeCPT5s2SnGOrHOruOMhieNMCzqtALLHdxlCET
Me4kGd+Xr0aBqSgyhY0oyDMxkPxtZSOdrCc9NAOU6AHGR+G48wh7XIFScUTyOZXNbbuygjpDh
SBRtMegacp9zyHT47CxWIb0XGC0iNN9zOT2RQutqQQ0NyA7S55Hkbn4zcFEaOrTJH7COqDhb7
d5q5plVkU5pGo1Kf/HzzhH9a8F3N7RkivQdJxL0YuIf9PIKxy/czp4wi4Zz4DeSN0OThnnh2q
IzmKViqkTElRsCgBkweRMz+G7qZekmZKrz0r0ktQc3MPveBVFWw33jrNRGNnNt5VNiHJcusuA
mxfqjZNsX5mxDGyFvcn7FDVysuI4ODTINkukgPW+PuqhNkoSSNC5ydfmCDVgXMCMtfwDLn4uZ
rF2wvHqEcIP+7UT3GNnLRvAEC/mtPD4fNZrA47DAaKyrTzQXI0RfkyZWYjPBGDJ57kEMxn17j
jCM9lQorQJi3E07lTXDkA+55ahXouAGgU0ztdmEl+sv2gIj6f+A0S1AtQmO1Xs2IrOts5AUpw
HIu7A4nUkIP2MUheBbm8SaWP8OVqaomvlyuGUiXSmf2isBdPsNMh5ANPAyKmHYavvxqvoCyCz
le8dsZzsMC0dA8jWDRv7Sn1oX9xkNgRtPUZhBWmY4OGNYPv4StbkASKXcPP9mbGj6JvLEU3lt
JktUh7IKkVpt1w373eGyAYASCs/OWa7v9dIW1Q9wI+GWVmPj5rNg4dKd1p7TqUa6IJoHCLWof
2C9WOQcjrRhHMDtM1bRjSylBdYGqmAa7l2BmzRnVM=


error when sending from my iredmail serevr to my gmx.net email:

This is the mail system at host mail.sopatforces.xyz.

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

<*****************@gmx.de>: host mx01.emig.gmx.net[212.227.17.5] said:
    550-Requested action not taken: mailbox unavailable 550 invalid DNS MX or
    A/AAAA resource record (in reply to MAIL FROM command)
Reporting-MTA: dns; mail.sopatforces.xyz
X-Postfix-Queue-ID: 4Bddqn5kcgz17cZ
X-Postfix-Sender: rfc822; solmcgougan@sopatforces.xyz
Arrival-Date: Sat, 29 Aug 2020 03:17:41 +0200 (CEST)

Final-Recipient: rfc822; ************1.1@gmx.de
Original-Recipient: rfc822;*************@gmx.de
Action: failed
Status: 5.0.0
Remote-MTA: dns; mx01.emig.gmx.net
Diagnostic-Code: smtp; 550-Requested action not taken: mailbox unavailable 550
    invalid DNS MX or A/AAAA resource record


Thank you in advance.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Neither can send emails to outside server nor recive.

It says mail domain name "sopatforces.xyz" is not resolvable by DNS query.
Please check our tutorial to setup correct DNS records:
https://docs.iredmail.org/setup.dns.html