Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email to local user aliases on the host server is failing #2518

Closed
ghost opened this issue Apr 11, 2019 · 3 comments
Closed

Email to local user aliases on the host server is failing #2518

ghost opened this issue Apr 11, 2019 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 11, 2019

I am struggling to get email from the local system into mailcow. I have followed the local MTA docs but it is still failing, the logs (extract below) report the mailname being the same as the mailcow hostname. This used to be true but I recently updated the MAILCOW_HOSTNAME to fix this.

This only happens when I am sending to an alias (/etc/aliases (root,postmaster,logcheck))
When I send direct to a normal email address it works fine.

Apr 11 08:02:08 mail01 postfix/smtp[12965]: warning: host ex1.example.com[198.51.100.1]:25 greeted me with my own hostname mail01.mydomain.com
Apr 11 08:02:08 mail01 postfix/smtp[12965]: warning: host ex1.example.com[198.51.100.1]:25 replied to HELO/EHLO with my own hostname mail01.mydomain.com
Apr 11 08:02:08 mail01 postfix/smtp[12965]: 12C6517A66D: to=<logcheck@ex1.example.com>, relay=ex1.example.com[198.51.100.1]:25, delay=0.03, delays=0.01/0.01/0.01/0, dsn=5.4.6, status=bounced (mail for ex1.example.com loops back to myself)

Has anyone else got this working?
Perhaps something is missing from my set up?

@stale
Copy link

stale bot commented Jun 10, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the dunno label Jun 10, 2019
@lazyfrosch
Copy link
Contributor

Basically ensure the host is a different hostname and doesn't retrieve mail for the name of the mailcow system.

myhostname = notmailcow.mydomain.com
myorigin = notmailcow.mydomain.com
mydestination = $myhostname, localhost.lazyfrosch.de, localhost
relayhost = 172.22.1.1

My host is a Debian stretch with Postfix.

@stale stale bot removed the dunno label Jun 10, 2019
@stale
Copy link

stale bot commented Aug 9, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the dunno label Aug 9, 2019
@stale stale bot closed this as completed Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant