Docker-mailserver: creating aliases, tvial/docker-mailserver:2.2

Created on 20 Jun 2017  路  6Comments  路  Source: tomav/docker-mailserver

Hello,
I have set up at project.
Setup 2 email accounts and the address is something like [email protected] .
Sending mails to and from [email protected] works.

Now I would like to use the following aliases to that address ([email protected] , without _mail_)
I ran the following
./setup.sh alias add [email protected] [email protected]
running
# ./setup.sh alias list
[email protected] [email protected],
I guess the comma in the end is ok.

Sending mails to [email protected] does not work.
Is there anything more that I need to do , to get this working ?

Best regards, Ink

question

Most helpful comment

And BTW, I just checked code for setup.sh
It adds alias to source file in tmp folder. So if you use that script, you have to restart the container to re-process the input file.
Hope this helps.

All 6 comments

Hi @Inkimar, not sure for the comma... it should be [email protected] [email protected].
Check that /etc/postfix/virtual is well formatted.

In these case, check and provide server logs

Hi @tomav ,
I logged in and checked the file /etc/postfix/virtual and it is empty ....

regards, i

If empty, there's no alias. You can add manually en entry with postfix format explained above. (from being the alias and to the email address). After that, just in case, reload postfix with /etc/init.d/postfix reload
Let me know.

And BTW, I just checked code for setup.sh
It adds alias to source file in tmp folder. So if you use that script, you have to restart the container to re-process the input file.
Hope this helps.

I will check this out!

-i

Is it solved?
If yes please share and close the solution.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

landergate picture landergate  路  4Comments

domdorn picture domdorn  路  4Comments

InsOpDe picture InsOpDe  路  4Comments

rwarren picture rwarren  路  4Comments

Hamsterman picture Hamsterman  路  3Comments