docker-mailserver: Cant send email on the server itself
Subject
I cant send emails on the server from one mailbox to another.
Description
Hello everybody š I am trying to get this mailserver running but I am failing on some point and I dont really know where⦠I just set the server up with the documentation and I tried sending E-Mails to GMail, that didnt work for authentication reasons or sth like that⦠Now I created a second mail account on the server and try to send e-mails between both of them, but they dont appear in the others mailbox. I dont know why, does anybody know what might happen there? Because its all on one server it cant be a network problem like ports/dns records, aight?
mailserver | Apr 19 12:03:51 mail amavis[1448]: (01448-01) Passed CLEAN {RelayedInbound}, [91.0.109.71]:52295 [91.0.109.71] <me@mail.domain.de> -> <test@mail.domain.de>, Queue-ID: 3E2B513BF21, Message-ID: <0226d13f-9cf3-a531-ac7e-2d2b732d713c@mail.domain.de>, mail_id: lhqkVefUn2F2, Hits: 2.175, size: 1236, queued_as: 1A60113BF2D, 1726 ms
mailserver | Apr 19 12:03:51 mail postfix/smtp[1517]: 3E2B513BF21: to=<test@mail.domain.de>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.9, delays=0.14/0.02/0.01/1.7, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 1A60113BF2D)
mailserver | Apr 19 12:03:51 mail postfix/qmgr[1431]: 3E2B513BF21: removed
mailserver | Apr 19 12:03:51 mail postfix/local[1527]: 1A60113BF2D: to=<test@mail.domain.de>, relay=local, delay=0.03, delays=0.01/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "test")
Thats the log after sending the email, I hope its all the important part, if not please just ask.
When I go for ./setup.sh email list I get those 2 mailboxes I created
* me@mail.domain.de
* test@mail.domain.de
The sent emails appear in the sent folder of the mailbox but the other mailbox does not receive them.
Thanks for any help, have a good one!
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21 (9 by maintainers)
Hello everybody! I figured sth out⦠I had the mailserver running on mail.domain.de and so I created my mailboxes like āme@mail.domain.deā, but at that moment this domain (mail.domain.de) gets added as vhost and from that on I get this warning, like mentioned in the warning text. So I removed my data folder and started all from scratch, this time I added āme@domain.deā, so this domain got added as vhost and it works just fine! There seems to be a problem when adding mailboxes with the same domain/host the mailserver is running on, is that intentionate? Atm I can just receive mails from GMail and cannot send any to gmail, because of authentication reasons, even tho I setup spf and DKIM, but maybe it just need some timeā¦
I guess Iām closing this because my problem is solved. If I can help you with some tests just inform me.
Hey guys, I did some more tests on that oneā¦
Now I got 2 mailboxes added:
My Mailserver is still running on host
mail.domain.de.The mailbox
me@domain.deis working fine, I can send and receive emails without any problems. The mailboxtest@mail.domain.decan send emails but cannot receive any. As soon as there is an email coming for that mailbox Iām getting the good old warning (warning: do not list domain mail.domain.de in BOTH mydestination and virtual_mailbox_domains) and the email can not be delivered.I didnāt send any emails, as I thought the warning came on DMS startup. But I donāt have time right now to test further.
Like mentioned above, on startup I had the same output like he got.
My output never changed on startup, it was always like:
I was just getting the warning message when sending/receiving emails, I dont know if @casperklein also tried that out. I just created 2 mailboxes (
me@mail.domain.deandtest@mail.domain.de), connected via IMAP with Thunderbird and then tried to send an email from me to test.That resulted in the following:
I was only getting this warnings, when receiving or sending (I dont really know which one of them) emails to/from the mailbox, on startup I didnt got that warning too.
And I use
hostname: mail+domainname: domain.deat the moment, without an override inside the env. EDIT: I now triedhostname: mail.domain.deand its also working fine. (All with the me@domain.de mailbox)Okay, thank you! Now I have sth to work on, Iāll text you again if Iām really stuck or get it to work.
I have no aliases or sth, I only added those 2 mailboxes and the DKIM keys with the setup.sh.
This is not normal and likely your problem. Thatās why I suggested to test with
OVERRIDE_HOSTNAME. Do you have setup aliases or something?