Unable to send or receive email

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
syedir
Posts: 1
Joined: Tue Oct 04, 2022 5:33 am

Unable to send or receive email

Post by syedir »

Our zimbra was working fine till 20th sep and then it stopped working, our zimbra is on a VPS which was connected to domain1.com which was hosted on another VPS, our first finding was that the domain1.com VPS got expired so we switched our domain1.com to a shared hosting, we had to do few fixes in order to make our zimbra accessible via web but the issue that I can't figure out is that it does not allow us to send or receive emails.

Note: Our zimbra was configured to faciliate 2 more domains such as domain2.com and domain3.com

our zimbra domain is: webmail.domain1.com
Zimbra verion: 8.8.15 FOSS

domain1.com DNS are as follows:

Code: Select all

A webmail 0 *ip of zimbra VPS*
CNAME mail 0 webmail.domain1.com
MX @ 10 mail.domain1.com
TXT @ 0  "v=spf1 +a +mx +ip4:*ip of zimbra VPS* ~all"
domain2.com DNS are as follows:

Code: Select all

A webmail 0 *ip of zimbra VPS*
CNAME mail 0 webmail.domain2.com
MX @ 10 mail.domain2.com
TXT @ 0  "v=spf1 +a +mx +ip4:*ip of zimbra VPS* ~all"
When we switched the server nothing was working, so to make zimbra admin work we had to "install zimbra-ldap-patch" manually

To make webmail.domain1.com work (was facing upstream error) we ran the following commands

Code: Select all

zmprov ms `zmhostname` zimbraReverseProxyMailMode https
zmprov ms `zmhostname` zimbraMailMode https
zmcontrol restart
When he wemail.domain1.com was accessible and I tried to send an email I got the error "Unable to connect to MTA", I figured out the cause that postfix was ran via root which was not allowing zimbra user to change or access the file so deleting the postfix generated files such as "master.pid, unix.*, inet.*" and then running the following command as zimbra user fixed this issue:

Code: Select all

postfix stop
postfix start 
But now when I send email i get the following error:

ajax reponse when I click send:

Code: Select all

{
    "Header": {
        "context": {
            "session": {
                "id": "1255",
                "_content": "1255"
            },
            "change": {
                "token": 33012
            },
            "notify": [
                {
                    "seq": 1,
                    "modified": {
                        "mbx": [
                            {
                                "s": 11955349
                            }
                        ],
                        "folder": [
                            {
                                "id": "5",
                                "uuid": "345bf04e-fff8-4faa-bddf-60cbd70c9a14",
                                "deletable": false,
                                "n": 19,
                                "s": 503898,
                                "i4ms": 33012,
                                "i4next": 4561
                            }
                        ]
                    }
                }
            ],
            "_jsns": "urn:zimbra"
        }
    },
    "Body": {
        "Fault": {
            "Code": {
                "Value": "soap:Sender"
            },
            "Reason": {
                "Text": "Invalid address: ReceiverUser \u003CreceiverUser@domain2.com\u003E.  com.zimbra.cs.mailbox.MailSender$SafeSendFailedException: MESSAGE_NOT_DELIVERED; chained exception is:\n\tcom.zimbra.cs.mailclient.smtp.InvalidRecipientException: RCPT failed: Invalid recipient receiverUser@domain2.com: 451 4.3.5 \u003CsenderUser@domain2.com\u003E: Sender address rejected: Server configuration error"
            },
            "Detail": {
                "Error": {
                    "Code": "mail.SEND_ABORTED_ADDRESS_FAILURE",
                    "Trace": "qtp1381713434-1033:1665038473846:280a77e0e4d71eef",
                    "a": [
                        {
                            "n": "invalid",
                            "t": "STR",
                            "_content": "ReceiverUser \u003CreceiverUser@domain2.com\u003E"
                        }
                    ],
                    "_jsns": "urn:zimbra"
                }
            }
        }
    },
    "_jsns": "urn:zimbraSoap"
}
Zimbra.log

Code: Select all

Oct  6 07:46:17 webmail postfix/smtpd[19475]: warning: lmdb:/opt/zimbra/conf/postfix_reject_sender is unavailable. open database /opt/zimbra/conf/postfix_reject_sender.lmdb: No such file or directory
Oct  6 07:46:17 webmail postfix/smtpd[19475]: warning: lmdb:/opt/zimbra/conf/postfix_reject_sender lookup error for "senderUser@domain2.com"
Oct  6 07:46:17 webmail postfix/smtpd[19475]: NOQUEUE: reject: RCPT from webmail.domain1.com[*Zimbra VPS IP*]: 451 4.3.5 <senderUser@domain2.com>: Sender address rejected: Server configuration error; from=<senderUser@domain2.com> to=<raheel@domain2.com> proto=ESMTP helo=<webmail.domain1.com>
Oct  6 07:46:17 webmail postfix/smtpd[19475]: disconnect from webmail.domain1.com[*Zimbra VPS IP*] ehlo=1 mail=1 rcpt=0/1 quit=1 commands=3/4
Oct  6 07:46:18 webmail sshd[21480]: Failed password for invalid user hadoop from 104.28.233.75 port 36163 ssh2
Oct  6 07:46:19 webmail sshd[21480]: Received disconnect from 104.28.233.75 port 36163:11: Bye Bye [preauth]
Oct  6 07:46:19 webmail sshd[21480]: Disconnected from invalid user hadoop 104.28.233.75 port 36163 [preauth]
Oct  6 07:46:23 webmail postfix/smtps/smtpd[21489]: fatal: open lock file pid/inet.465: file has 2 hard links
Oct  6 07:46:24 webmail postfix/master[24670]: warning: process /opt/zimbra/common/libexec/smtpd pid 21489 exit status 1
Oct  6 07:46:24 webmail postfix/master[24670]: warning: /opt/zimbra/common/libexec/smtpd: bad command startup -- throttling
Oct  6 07:46:40 webmail postfix/postscreen[13621]: CONNECT from [*Zimbra VPS IP*]:34412 to [*Zimbra VPS IP*]:25
Oct  6 07:46:40 webmail postfix/postscreen[13621]: ALLOWLISTED [*Zimbra VPS IP*]:34412
Oct  6 07:46:40 webmail postfix/smtpd[19479]: connect from webmail.domain1.com[*Zimbra VPS IP*]
Oct  6 07:46:40 webmail postfix/smtpd[19479]: warning: lmdb:/opt/zimbra/conf/postfix_reject_sender is unavailable. open database /opt/zimbra/conf/postfix_reject_sender.lmdb: No such file or directory
Oct  6 07:46:40 webmail postfix/smtpd[19479]: warning: lmdb:/opt/zimbra/conf/postfix_reject_sender lookup error for "senderUser@domain2.com"
Oct  6 07:46:40 webmail postfix/smtpd[19479]: NOQUEUE: reject: RCPT from webmail.domain1.com[*Zimbra VPS IP*]: 451 4.3.5 <senderUser@domain2.com>: Sender address rejected: Server configuration error; from=<senderUser@domain2.com> to=<raheel@domain2.com> proto=ESMTP helo=<webmail.domain1.com>
Oct  6 07:46:40 webmail postfix/smtpd[19479]: disconnect from webmail.domain1.com[*Zimbra VPS IP*] ehlo=1 mail=1 rcpt=0/1 quit=1 commands=3/4
Oct  6 07:46:46 webmail sshd[21500]: Failed password for root from 165.227.147.152 port 39958 ssh2
Oct  6 07:46:46 webmail sshd[21500]: Received disconnect from 165.227.147.152 port 39958:11: Bye Bye [preauth]
Oct  6 07:46:46 webmail sshd[21500]: Disconnected from authenticating user root 165.227.147.152 port 39958 [preauth]
Note: I am not the one who did the first setup of Zimbra nor am I a network engineer, just a dev trying to fix what is broken.
Post Reply