Skip to content

Commit 4d9c6d3

Browse files
authored
Add section for catch-all postfix setup (#115)
1 parent 2ecba16 commit 4d9c6d3

File tree

1 file changed

+54
-1
lines changed

1 file changed

+54
-1
lines changed

content/installation-docker.rst

+54-1
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,61 @@ running the test suite on a fresh installation.
601601
.......
602602
docker_admin> docker-compose start daemon
603603
604+
Add a catch all email with postfix and send to otobo container
605+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
606+
607+
A catch-all account can be created by adding a virtual aliases to the postfix server. To add an alias edit ``/etc/postfix/virtual`` configuration file:
608+
609+
.. code-block:: bash
610+
611+
nano /etc/postfix/virtual
612+
613+
Then add a catch-all address like below:
614+
615+
.. code-block:: bash
616+
617+
@example.com catch_all_user
618+
619+
You may also have some actual email accounts on your domain and you need to forward emails of that accounts to the correct mailbox. Then you can also create virtual alias for that email address and forward it to specific user’s mailboxes. Use the below configuration, which will send all emails to user ``catch_all_user`` except emails of [email protected] and [email protected].
620+
621+
.. code-block:: bash
622+
623+
@example.com catch_all_user
624+
625+
626+
627+
Save and close configuration file, then execute the following command to create or update hash file.
628+
629+
.. code-block:: bash
630+
631+
postmap /etc/postfix/virtual
632+
633+
The above command will create ``/etc/postfix/virtual.db`` file in your system. Which will be used by the Postfix server.
634+
635+
Now, you need to add virtual_alias_maps to the Postfix main configuration file. Just edit Postfix configuration file ``/etc/postfix/main.cf`` in your favorite text editor:
636+
637+
.. code-block:: bash
638+
639+
nano /etc/postfix/main.cf
640+
641+
Add the following entry to the end of the file
642+
643+
.. code-block:: bash
644+
645+
virtual_alias_maps = hash:/etc/postfix/virtual
646+
647+
Save the file and close it.
648+
649+
After making all the changes, reload the postfix service to apply all settings. Use the following command to reload the postfix configuration.
650+
651+
.. code-block:: bash
652+
653+
systemctl reload postfix
654+
655+
TODO - pipe to OTOBO
656+
604657
List of useful commands
605-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
658+
~~~~~~~~~~~~~~~~~~~~~~~
606659

607660
**Docker**
608661

0 commit comments

Comments
 (0)