My setup is as follows, mail.maildomain.com, this domain does not have MX or any deliverable mailboxes, it is just a mail server for other virtual domains. This servers local mail (root@) appears to have delivery issues its trying to send mail to a hostname and domain name that do not accept mail, in addition to being the external hostname and domain name of the mail server itself. I added a .forward file in the /root/ directory. The address is an external email address that exists and is deliverable from the internet. Will this solve my issues? The host machine does not have postfix or any mail packages installed, it is all running in this docker container. What are opinions at a possible solution if what I did is in-sufficent?
Any feedback would be greatly appreciated.
/etc/hosts
internetaddressofmailserver mail.mailserverdomain.com
127.0.0.1 mail.mailserverdomain.com localhost.localdomain localhost
127.0.0.1 mail
Log:
mail postfix/smtpd[29932]: connect from unknown[172.20.0.1]
Apr 11 04:00:03 mail docker-compose[1438]: mail | Apr 11 04:00:02 mail postfix/smtp[29921]: warning: host mail.mymailserverdomain.com[internetaddressofmailserver]:25 greeted me with my own hostname mail.mymailserverdomain.com
Apr 11 04:00:03 mail docker-compose[1438]: mail | Apr 11 04:00:02 mail postfix/smtp[29921]: warning: host mail.mymailserverdomain.com[internetaddressofmailserver]:25 replied to HELO/EHLO with my own hostname mail.mymailserverdomain.com
Apr 11 04:00:03 mail docker-compose[1438]: mail | Apr 11 04:00:02 mail postfix/smtp[29921]: B36AA3E80D: to=<[email protected]>, orig_to=<root>, relay=mail.mymailserverdomain.com[internetaddressofmailserver]:25, delay=0.65, delays=0.05/0.02/0.58/0, dsn=5.4.6, status=bounced (mail for mail.mymailserverdomain.com loops back to myself)
Apr 11 04:00:03 mail docker-compose[1438]: mail | Apr 11 04:00:02 mail postfix/smtpd[29932]: disconnect from unknown[172.20.0.1] ehlo=1 quit=1 commands=2 00:00
My setup is as follows,
mail.maildomain.com, this domain does not have MX or any deliverable mailboxes, it is just a mail server for other virtual domains. This servers local mail (root@) appears to have delivery issues its trying to send mail to a hostname and domain name that do not accept mail, in addition to being the external hostname and domain name of the mail server itself. I added a.forwardfile in the/root/directory. The address is an external email address that exists and is deliverable from the internet. Will this solve my issues? The host machine does not have postfix or any mail packages installed, it is all running in this docker container. What are opinions at a possible solution if what I did is in-sufficent?Any feedback would be greatly appreciated.
Log: