Topic: Successful install, cannot receive email
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version: 1.5.2 MARIADB edition.
- Deployed with tar.gz/manual
- OS: Debian GNU/Linux 11 (bullseye) Linux 5.10.0-13-amd64
- Store mail accounts in which backend: MySQL
- Web server: Nginx
- Manage mail accounts with iRedAdmin-Pro: no
- Related original log or error message: none (no errors)
====
At the time of this writing, there are 432 pages in this forum. I can find no way to search topics, so ... I apologize if my questions has been asked and answered. Any help would be greatly appreciated!
All IPs and FQDNs are illustrative.
I have 2 VPS setups:
NextCloud, testing, etc at 200.1.2.3 as example.net
iRedMail at 210.3.4.5 as mail.example.net
I want all email - user@example.net - to be processed by the 2nd VPS (210.3.4.5 a.k.a. mail.example.net)
For my domain (example.net), the DNS configuration is as follows:
A @ 200.1.2.3
A mail 210.3.4.5
CNAME cloud example.net
CNAME www example.net
CNAME blog ghs.google.com
MX @ mail.example.net
I have chosen to use RoundCube as my webmail client.
I have two users: postmaster@example.net and liam@example.net
Using RoundCube, I can send mail successfully (although many systems file it as spam).
Sending from Yahoo!, GMail, etc. to liam@example.net results in an eventual send failure.
I then tried two tests from the command line from a 3rd remote, shared server. The first (to liam@example.net) should have succeeded and the second (to liam@mail.example.net) should have failed. They both failed - i.e. no mail was ever received - but in different ways.
The one that should have succeeded: mailx -v -s 'Testing from cmdln' liam@example.net
LOG: MAIN
cwd=/home4/spider 5 args: send-mail -i -v -- liam@example.net
LOG: MAIN
<= spider@box1234.bluehost.com U=spider P=local S=588 T="Testing from cmdln"
LOG: MAIN
cwd=/var/spool/exim 4 args: /usr/sbin/exim -v -Mc 1njKyP-000025-IQ
delivering 1njKyP-000025-IQ
Connecting to 127.0.0.1 [127.0.0.1]:25 ... connected
SMTP<< 220-box1234.bluehost.com ESMTP Exim 4.94.2 #2 Tue, 26 Apr 2022 07:11:21 -0600
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
SMTP>> EHLO box1234.bluehost.com
SMTP<< 250-box1234.bluehost.com Hello box1234.bluehost.com [127.0.0.1]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-PIPE_CONNECT
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
SMTP>> STARTTLS
SMTP<< 220 TLS go ahead
LOG: MAIN
[127.0.0.1] SSL verify error: certificate name mismatch: DN="/CN=*.bluehost.com" H="127.0.0.1"
SMTP>> EHLO box1234.bluehost.com
SMTP<< 250-box1234.bluehost.com Hello box1234.bluehost.com [127.0.0.1]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-PIPE_CONNECT
250-AUTH PLAIN LOGIN
250 HELP
SMTP>> MAIL FROM:<spider@box1234.bluehost.com> SIZE=1627
SMTP>> RCPT TO:<liam@example.net>
SMTP>> DATA
SMTP<< 250 OK
SMTP<< 550 No Such User Here
SMTP<< 503-All RCPT commands were rejected with this error:
503-No Such User Here
503 Valid RCPT command must precede DATA
SMTP>> QUIT
SMTP(close)>>
LOG: MAIN
** liam@example.net F=<spider@box1234.bluehost.com> R=deliver_local_outside_jail T=remote_smtp H=127.0.0.1 [127.0.0.1] I=[127.0.0.1] X=TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=no DN="/CN=*.bluehost.com": SMTP error from remote mail server after RCPT TO:<liam@example.net>: 550 No Such User Here
LOG: MAIN
cwd=/var/spool/exim 8 args: /usr/sbin/exim -v -t -oem -oi -f <> -E1njKyP-000025-IQ
LOG: MAIN
<= <> R=1njKyP-000025-IQ U=mailnull P=local S=2070 T="Mail delivery failed: returning message to sender"
LOG: MAIN
Completed
LOG: MAIN
cwd=/var/spool/exim 4 args: /usr/sbin/exim -v -Mc 1njKyP-00002C-PA
delivering 1njKyP-00002C-PA
Connecting to 127.0.0.1 [127.0.0.1]:25 ... connected
SMTP<< 220-box1234.bluehost.com ESMTP Exim 4.94.2 #2 Tue, 26 Apr 2022 07:11:21 -0600
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.
SMTP>> EHLO box1234.bluehost.com
SMTP<< 250-box1234.bluehost.com Hello box1234.bluehost.com [127.0.0.1]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-PIPE_CONNECT
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
SMTP>> STARTTLS
SMTP<< 220 TLS go ahead
LOG: MAIN
[127.0.0.1] SSL verify error: certificate name mismatch: DN="/CN=*.bluehost.com" H="127.0.0.1"
SMTP>> EHLO box1234.bluehost.com
SMTP<< 250-box1234.bluehost.com Hello box1234.bluehost.com [127.0.0.1]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-PIPE_CONNECT
250-AUTH PLAIN LOGIN
250 HELP
SMTP>> MAIL FROM:<> SIZE=3153
SMTP>> RCPT TO:<spider@box1234.bluehost.com>
SMTP>> DATA
SMTP<< 250 OK
SMTP<< 250 Accepted
SMTP<< 354 Enter message, ending with "." on a line by itself
SMTP>> writing message and terminating "."
SMTP<< 250 OK id=1njKyP-003DDk-Ua
SMTP>> QUIT
SMTP(close)>>
LOG: MAIN
=> spider@box1234.bluehost.com F=<> R=deliver_local_outside_jail T=remote_smtp S=2134 H=127.0.0.1 [127.0.0.1] I=[127.0.0.1] X=TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=no DN="/CN=*.bluehost.com" C="250 OK id=1njKyP-003DDk-Ua"
LOG: MAIN
Completed
The one that should be an obvious failure: mailx -v -s 'Testing from cmdln' liam@mail.example.net
LOG: MAIN
cwd=/home4/spider 5 args: send-mail -i -v -- liam@mail.example.net
LOG: MAIN
<= spider@box1234.bluehost.com U=spider P=local S=540 T="Testing from cmdln"
LOG: MAIN
cwd=/var/spool/exim 4 args: /usr/sbin/exim -v -Mc 1njLCp-00003A-E9
delivering 1njLCp-00003A-E9
LOG: MAIN
Sender identification U=spider D=spidernic.net S=spider
LOG: MAIN
SMTP connection outbound 1650979575 1njLCp-00003A-E9 spidernic.net liam@mail.example.net
LOG: MAIN
Sender identification U=spider D=spidernic.net S=spider
Connecting to cloudmark.mail.unifiedlayer.com [74.220.195.20]:25 ... connected
SMTP<< 220 cmgw14.mail.unifiedlayer.com cmsmtp ESMTP server ready
SMTP>> EHLO box1234.bluehost.com
SMTP<< 250-cmgw14.mail.unifiedlayer.com hello [162.241.225.120], pleased to meet you
250-HELP
250-AUTH LOGIN PLAIN CRAM-MD5
250-SIZE 52428800
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-STARTTLS
250 OK
SMTP>> STARTTLS
SMTP<< 220 2.0.0 Ready to start TLS
LOG: MAIN
[74.220.195.20] SSL verify error: certificate name mismatch: DN="/CN=*.unifiedlayer.com" H="cloudmark.mail.unifiedlayer.com"
SMTP>> EHLO box1234.bluehost.com
SMTP<< 250-cmgw14.mail.unifiedlayer.com hello [162.241.225.120], pleased to meet you
250-HELP
250-AUTH LOGIN PLAIN CRAM-MD5
250-SIZE 52428800
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 OK
SMTP>> MAIL FROM:<spider@box1234.bluehost.com> SIZE=1578
SMTP<< 250 2.1.0 <spider@box1234.bluehost.com> sender ok
SMTP>> RCPT TO:<liam@mail.example.net>
SMTP<< 250 2.1.5 <liam@mail.example.net> recipient ok
SMTP>> DATA
SMTP<< 354 OK
SMTP>> writing message and terminating "."
SMTP<< 250 2.0.0 jLCpnk3dn53CXjLCpnRUUV mail accepted for delivery
SMTP>> QUIT
SMTP(close)>>
LOG: MAIN
=> liam@mail.example.net F=<spider@box1234.bluehost.com> R=dkim_lookuphostHG T=dkim_remote_smtp S=1819 H=cloudmark.mail.unifiedlayer.com [74.220.195.20] I=[162.241.225.120] X=TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256 CV=no DN="/CN=*.unifiedlayer.com" C="250 2.0.0 jLCpnk3dn53CXjLCpnRUUV mail accepted for delivery"
LOG: MAIN
Completed
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.