1

Topic: mail postfix/smtpd[6879]: warning

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  1.4.0
- Deployed with iRedMail Easy or the downloadable installer? DOWNLOADABLE
- Linux/BSD distribution name and version: UBUNTU 20.04.3 LTS
- 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 can't find a search in this forum, so if this has been covered and resolved sorry. I use search engines directed here.

If this install is shot, I'm going to CentOS 7.

I'm on my 3rd FAILED install in 36 hours. I've successfully set iRedMail up 2x in a test environment.

Incoming and outgoing messages fail

Income messages produce this message in syslog:
Sep  1 12:26:12 mail postfix/smtpd[5024]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Sep  1 12:26:13 mail postfix/smtpd[5024]: warning: connect to 127.0.0.1:7777: Connection refused

Outgoing produce this in syslog:
Sep  1 12:44:41 mail postfix/submission/smtpd[5673]: warning: connect to 127.0.0.1:7777: Connection refused
Sep  1 12:44:41 mail postfix/submission/smtpd[5673]: warning: problem talking to server 127.0.0.1:7777: Connection refused

/var/log/mail.err says this, but th file is there:
Sep  1 13:47:16 cloud-732cfb postfix/sendmail[56020]: fatal: open /etc/postfix/main.cf: No such file or directory
Sep  1 13:47:16 cloud-732cfb postfix/sendmail[56024]: fatal: open /etc/postfix/main.cf: No such file or directory
Sep  1 13:47:39 cloud-732cfb postfix/sendmail[56213]: fatal: open /etc/postfix/main.cf: No such file or directory
Sep  1 13:47:39 cloud-732cfb postfix/sendmail[56216]: fatal: open /etc/postfix/main.cf: No such file or directory
Sep  1 13:48:41 cloud-732cfb postfix/sendmail[56372]: fatal: open /etc/postfix/main.cf: No such file or directory
Sep  1 13:48:41 cloud-732cfb postfix/sendmail[56375]: fatal: open /etc/postfix/main.cf: No such file or directory
Sep  1 14:57:54 mail postfix/sendmail[13261]: fatal: open /etc/postfix/main.cf: No such file or directory
Sep  1 15:02:03 mail postfix/postqueue[35391]: fatal: Queue report unavailable - mail system is down

outgoing message produce this in /var/log/maillog and I don't know where it picked up www in the FQDN, I made it mail.<redacted>

Sep  1 12:52:23 mail postfix/submission/smtpd[5904]: connect from www.<redacted>.com[127.0.0.1]
Sep  1 12:52:23 mail postfix/submission/smtpd[5904]: Anonymous TLS connection established from www.<redacted>.com[127.0.0.1]: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
Sep  1 12:52:23 mail postfix/submission/smtpd[5904]: warning: connect to 127.0.0.1:7777: Connection refused
Sep  1 12:52:23 mail postfix/submission/smtpd[5904]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Sep  1 12:52:24 mail postfix/submission/smtpd[5904]: warning: connect to 127.0.0.1:7777: Connection refused
Sep  1 12:52:24 mail postfix/submission/smtpd[5904]: warning: problem talking to server 127.0.0.1:7777: Connection refused
Sep  1 12:52:24 mail postfix/submission/smtpd[5904]: NOQUEUE: reject: RCPT from www.<redacted>.com[127.0.0.1]: 451 4.3.5 <ben@<redacted>.com>: Recipient address rejected: Server configuration problem; from=<postmaster@riverwireless.com> to=<ben@<redacted>.com> proto=ESMTP helo=<localhost>
Sep  1 12:52:24 mail roundcube: <mn8bj0mb> PHP Error: Invalid response code received from server (POST /mail/?_task=mail&_unlock=loading1630515145352&_framed=1&_lang=en&_action=send)
Sep  1 12:52:24 mail roundcube: <mn8bj0mb> SMTP Error: Failed to add recipient 'ben@<redacted>.com'. 4.3.5 <ben@<redacted>.com>: Recipient address rejected: Server configuration problem (Code: 451) in /opt/www/roundcubemail-1.4.11/program/lib/Roundcube/rcube.php on line 1702 (POST /mail/?_task=mail&_unlock=loading1630515145352&_framed=1&_lang=en&_action=send)
Sep  1 12:52:24 mail postfix/submission/smtpd[5904]: disconnect from www.<redacted>.com[127.0.0.1] ehlo=2 starttls=1 auth=1 mail=1 rcpt=0/1 rset=1 quit=1 commands=7/8

2

Re: mail postfix/smtpd[6879]: warning

open /etc/postfix/main.cf

Does this file exist? What are the permissions if so?

3

Re: mail postfix/smtpd[6879]: warning

Cthulhu wrote:

open /etc/postfix/main.cf

Does this file exist? What are the permissions if so?


root@mail:~# ls -laZ /etc/postfix/main.cf
-rw-r--r-- 1 root root ? 12415 Sep  1 11:01 /etc/postfix/main.cf

root@mail:~# stat -c "%a %n" /etc/postfix/main.cf
644 /etc/postfix/main.cf

root@mail:~# find /etc/postfix -printf '%u:%g\n' | sort -t: -u
root:postfix
root:root

I will be out of phone range for a few hours, will check when back in grid.

4

Re: mail postfix/smtpd[6879]: warning

The file existed.

I ran and restruck the password for db

mysqladmin =u root password <original password>

restored settings.py to original (I had fussed with turning off greylisting)

and restarted dovecot and iredapd and it is now sending and receiving messages.

It seems to be in working order, with a few benign log errors.

I get this on boot up:

Sep  2 06:12:26 mail /etc/mysql/debian-start[1479]: Version check failed. Got the following error when calling the 'mysql' command line client
Sep  2 06:12:26 mail /etc/mysql/debian-start[1479]: FATAL ERROR: Upgrade failed










montanelli wrote:
Cthulhu wrote:

open /etc/postfix/main.cf

Does this file exist? What are the permissions if so?


root@mail:~# ls -laZ /etc/postfix/main.cf
-rw-r--r-- 1 root root ? 12415 Sep  1 11:01 /etc/postfix/main.cf

root@mail:~# stat -c "%a %n" /etc/postfix/main.cf
644 /etc/postfix/main.cf

root@mail:~# find /etc/postfix -printf '%u:%g\n' | sort -t: -u
root:postfix
root:root

I will be out of phone range for a few hours, will check when back in grid.

5

Re: mail postfix/smtpd[6879]: warning

montanelli wrote:

Sep  1 12:26:12 mail postfix/smtpd[5024]: warning: problem talking to server 127.0.0.1:7777: Connection refused

"iredapd" service is not running. Please try to start it.

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

6

Re: mail postfix/smtpd[6879]: warning

ZhangHuangbin wrote:
montanelli wrote:

Sep  1 12:26:12 mail postfix/smtpd[5024]: warning: problem talking to server 127.0.0.1:7777: Connection refused

"iredapd" service is not running. Please try to start it.

Resolved by restoring settings.py and redoing mysql password.

Please close as resolved.