Default postfix configuration error
The default latest V4 installation has problems with Postfix docker container. It incorrectly resolves its own domain.
Steps to reproduce:
- Install fresh V4 on example.com with WordPress
- Try to send an email from WordPress to [email protected]
Emails work to all domains except the same domain as web setup.
It starts with this error: Jan 21 20:53:59 ip-xxxxxxxxx mydomain.com/smtpd[10882]: error: open database /etc/aliases.db: No such file or directory
When you go to email docker and create /etc/aliases file (even empty) it moves to this error: Jan 24 12:19:59 ip-xxxxxxx website.com/smtpd[223]: NOQUEUE: reject: RCPT from websitecom_php_1.website.com[172.20.0.3]: 550 5.1.1 [email protected]: Recipient address rejected: User unknown in local recipient table; [email protected] [email protected] proto=SMTP helo=
Which makes me think that postfix has problems resolving the email and tries to send it to another container rather than to MX record.
root@ip-172-26-15-187:~# ee shell example.com
^_^[[email protected]:~/htdocs]$ php -r 'mail("[email protected]", "Hello Human", "Hello from EasyEngine!");'
sendmail: RCPT TO:<[email protected]> (451 4.3.0 <[email protected]>: Temporary lookup failure)
There's something seriously wrong with the setup and I think there should be a priority here as this is a serious bug. It essentially bans EE v4 from sending emails.
resolvconf on postfix points to itself (e.g. 127.0.0.11) yet postfix docker box doesn't seem to have any network packages installed to handle dns.
Also when trying to do anything on postfix box... well you can't because you have no network: ln: cannot remove '/etc/resolv.conf': Device or resource busy dpkg: error processing package resolvconf (--configure):
Having the same issue on EE v4. I have two domains running on 1 server. When you test send emails from the server it works!
I use Office 365 smtp and can see the emails at the sent inbox.
But when I try send email from Wordpress/Woocommerce it doesn't show on sent inbox but the email get through eventually to spam inbox.
Hope you guys find solutions to this.
On my old server I have EE v3 running with the same setup and it all works fine!