New install - Sendi...
 
Notifications
Clear all

[Solved] New install - Sending mail but not Receiving mail

8 Posts
3 Users
1 Reactions
975 Views
(@uk_simon)
Joined: 12 months ago
Posts: 36
Topic starter  

New Install. I can send but not receive emails (no emails in queue)

Routing -I can ping the carbonio server's FQDN from various servers

MX - dig returns the correct FQDN

Firewall - tested with firewall disabled, however UFW has all recommended ports open

zmcontrol status -

antivirus Running
directory-server Running
mailbox Running
memcached Running
mta Running
proxy Running
service webapp Running
service-discover Running
stats Running
config service Running

systemctl status carbonio-* - all running except;

carbonio-files.service - Carbonio Files daemon
Loaded: loaded (/lib/systemd/system/carbonio-files.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/carbonio-files.service.d
└─override.conf
Active: activating (auto-restart) (Result: exit-code) since Wed 2023-12-06 13:18:00 UTC; 3s ago
Process: 1309664 ExecStart=/usr/bin/carbonio-files (code=exited, status=1/FAILURE)
Main PID: 1309664 (code=exited, status=1/FAILURE)

tail -10 /var/log/carbonio.log
Dec 6 13:28:18 mailgate-bkm-5 zmconfigd[775095]: File "/opt/zextras/common/lib/jylibs/state.py", line 789, in rewriteConfig (fh, tmpfile) = tempfile.mkstemp(dir="/tmp")
Dec 6 13:28:18 mailgate-bkm-5 zmconfigd[775095]: File "/opt/zextras/lib/jars/jython-standalone-2.5.2.jar/Lib/tempfile.py", line 302, in mkstemp return _mkstemp_inner(dir, prefix, suffix, flags)
Dec 6 13:28:18 mailgate-bkm-5 zmconfigd[775095]: File "/opt/zextras/lib/jars/jython-standalone-2.5.2.jar/Lib/tempfile.py", line 236, in _mkstemp_inner fd = _os.open(file, flags, 0600)
Dec 6 13:28:18 mailgate-bkm-5 zmconfigd[775095]: Rewrite failed: No such file or directory (No such file or directory)
Dec 6 13:28:18 mailgate-bkm-5 zmconfigd[775095]: File "/opt/zextras/common/lib/jylibs/state.py", line 789, in rewriteConfig (fh, tmpfile) = tempfile.mkstemp(dir="/tmp")
Dec 6 13:28:18 mailgate-bkm-5 zmconfigd[775095]: File "/opt/zextras/lib/jars/jython-standalone-2.5.2.jar/Lib/tempfile.py", line 302, in mkstemp return _mkstemp_inner(dir, prefix, suffix, flags)
Dec 6 13:28:18 mailgate-bkm-5 zmconfigd[775095]: File "/opt/zextras/lib/jars/jython-standalone-2.5.2.jar/Lib/tempfile.py", line 236, in _mkstemp_inner fd = _os.open(file, flags, 0600)
Dec 6 13:28:18 mailgate-bkm-5 zmconfigd[775095]: Rewrite failed: No such file or directory (No such file or directory)
Dec 6 13:28:18 mailgate-bkm-5 zmconfigd[775095]: All rewrite threads completed in 0.05 sec
Dec 6 13:28:18 mailgate-bkm-5 zmconfigd[775095]: All restarts completed in 0.00 sec

Where should I look next?


   
Quote
(@uk_simon)
Joined: 12 months ago
Posts: 36
Topic starter  

Solved. It turned out to be that the test emails were using an old cached mx record


   
ReplyQuote
(@uk_simon)
Joined: 12 months ago
Posts: 36
Topic starter  

A new install of Ubuntu and Carbonio has given me the same problem but for different reasons. The new install has all services and processes running;

list-unit-files shows all loaded, active and running

zmcontrol status shows all running

SSL Certs sucessfully installed

however when I send an email to a carbonio account it is not received. Here is an example of the warning to the sender

user@my-carbonio-domain.com
host mail.mycarboniodomain.com [123.123.123.123]
Delay reason: SMTP error from remote mail server after pipelined MAIL FROM:<sender@another-domain-on-another-server.com> SIZE=15973:
451 4.3.0 Temporary lookup error

..

Action: delayed
Final-Recipient: rfc822;user@my=carbonio-domain.com
Status: 4.0.0
Remote-MTA: dns; mail.my-carbonio-domain.com
Diagnostic-Code: smtp; 451 4.3.0 Temporary lookup error

DNS seems ok;

dig my-carbonio-domain mx

; <<>> DiG 9.16.1-Ubuntu <<>> my-carbonio-domain.com mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61858
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;my-carbonio-domain.com. IN MX

;; ANSWER SECTION:
my-carbonio-domain.com. 1449 IN MX 0 mail.my-carbonio-domain.com.

;; Query time: 11 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Thu Dec 21 11:00:22 UTC 2023
;; MSG SIZE rcvd: 89

 

To summarise, the mta is running MX propagated however Carbonio user can send mail but can not receive a reply (even with the firewall disabled)

What have I missed?


   
ReplyQuote
(@anahuac)
Joined: 1 year ago
Posts: 324
 

It must be one of two problems but I'll bet on #1

1 - DNS issues... and we can't help you if you don't let us know what the real domain is;

2 - FW issues... ports blocked... and we can't help you if you don't let us know what the real domain is;

Regards

 


   
ReplyQuote
(@uk_simon)
Joined: 12 months ago
Posts: 36
Topic starter  

Thanks Sharif

I have tried a number of domains and I have tried with the firewall disabled.

The hostname is mailgate-bkm-5.end-design.co.uk and the domain ia adderview.com (virtual host mail.adderview.com)

adderview.com mx

; <<>> DiG 9.16.1-Ubuntu <<>> adderview.com mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44778
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;adderview.com. IN MX

;; ANSWER SECTION:
adderview.com. 3600 IN MX 0 mailgate-bkm-5.end-design.co.uk.

 

The mail is getting to the server as the response is coming from the correct mailserver

sales@adderview.com
host mailgate-bkm-5.end-design.co.uk [62.3.100.122]
Delay reason: SMTP error from remote mail server after pipelined MAIL FROM:<'mail@mypersonaldomain.com'> SIZE=15973:
451 4.3.0 Temporary lookup error

Reporting-MTA: dns; th-4.ed2.net

Action: delayed
Final-Recipient: rfc822;sales@adderview.com
Status: 4.0.0
Remote-MTA: dns; mailgate-bkm-5.end-design.co.uk
Diagnostic-Code: smtp; 451 4.3.0 Temporary lookup error

Return-path: <'mail@mypersonaldomain.com'>
Received: from [::1] (port=42696 helo=th-4.ed2.net)
by th-4.ed2.net with esmtpa (Exim 4.96.2)
(envelope-from <'mail@mypersonaldomain.com'>)
id 1rFhL5-00D4Tj-1W;
Tue, 19 Dec 2023 21:09:19 +0000
MIME-Version: 1.0
Date: Tue, 19 Dec 2023 21:09:19 +0000
From: 'mail@mypersonaldomain.com'
To: sales@adderview.com  (Carbonio account created with SSL cert installed)
Cc: zextras@end-design.co.uk (Carbonio account created with SSL cert installed)
Subject: Fwd: Announcing our 2024 Sales Calendar
In-Reply-To: <6581c2d4a31b7_1d36288c89671@4e8dc50a608b.mail>
References: <6581c2d4a31b7_1d36288c89671@4e8dc50a608b.mail>
User-Agent: Roundcube Webmail/1.6.0
Message-ID: <fd3bf08b42ffc02dba2566d72ce74934@simon.gs>
X-Sender: 'mail@mypersonaldomain.com'
Content-Type: text/plain; charset=UTF-8;

 

what is the path to the log I should be looking at?

thanks

This post was modified 11 months ago by UK_Simon

   
ReplyQuote
(@stefanodavid)
Joined: 3 years ago
Posts: 226
 

Posted by: @uk_simon

what is the path to the log I should be looking at?

These are the log files where carbonio-postfix writes:

/var/log/carbonio.log

/var/log/mail.log

/var/log/mail.err


   
ReplyQuote
(@uk_simon)
Joined: 12 months ago
Posts: 36
Topic starter  

Clues from the logs

ec 20 10:40:01 mailgate-bkm-5 postfix/postqueue[567565]: fatal: Queue report unavailable - mail system is down (Connect to the Postfix showq service: Connection refused)
Dec 20 16:25:57 mailgate-bkm-5 zmmailboxdmgr[811050]: no manager process is running
Dec 20 16:26:09 mailgate-bkm-5 zmmailboxdmgr[811469]: no manager process is running
Dec 20 16:26:20 mailgate-bkm-5 zmmailboxdmgr[812876]: no manager process is running
Dec 20 16:26:23 mailgate-bkm-5 zmmailboxdmgr[812980]: no manager process is running
Dec 20 16:30:00 mailgate-bkm-5 zmmailboxdmgr[817971]: no manager process is running

Dec 22 15:32:32 mailgate-bkm-5 postfix/postscreen[821618]: warning: postscreen_access_list: non-null host address bits in "62.3.100.122/29", perhaps you should use "62.3.100.120/29" instead

Dec 22 15:32:32 mailgate-bkm-5 postfix/postscreen[821618]: warning: postscreen_access_list: permit_mynetworks: mynetworks lookup error -- ignoring the remainder of this access list

 

 

 


   
ReplyQuote
(@uk_simon)
Joined: 12 months ago
Posts: 36
Topic starter  

Solved - the problem was with zimbraMtaMyNetworks

As indicated in my post above ""62.3.100.122/29", perhaps you should use "62.3.100.120/29" instead"

I re ran zmprov ms mailgate-bkm-5.end-design.co.uk zimbraMtaMyNetworks '127.0.0.0/8 [::1]/128 62.3100.120/29'

and now get mail.


   
anahuac reacted
ReplyQuote