Replies: 1 comment 3 replies
-
I don't have any specific advice to offer, unfortunately. Maybe run a docker run -it --rm -v $PWD/data_docker/mailrise/mailrise.conf:/etc/mailrise.conf:ro yoryan/mailrise |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am struggling to get mailrise to work with traefik in docker. I am trying to use my domain (changed to mydomain.com for security) and I have pointed my DNS MX to mydomain.com (not sure if the MX record is needed). I try to forward an email from outside my server to apprise@mydomain.com but the email bounces.
The error from the log shows [Errno 98] error while attempting to bind on address port 8025. I have checked docker ps and none of my other services are using that port.
Any help will be appreciated!
My config file is:
configs:
apprise@mydomain.com:
urls:
- ntfy://ntfy.mydomain.com/TEST
- pover://user-token-redacted/token-redacted
My docker-compose file is:
mailrise:
image: yoryan/mailrise
container_name: mailrise
labels:
- com.centurylinklabs.watchtower.enable=true
- traefik.tcp.routers.mailrise.rule=HostSNI(
*
)- traefik.tcp.routers.mailrise.tls=true
- traefik.tcp.routers.mailrise.tls.certresolver=lets-encrypt
- traefik.tcp.routers.mailrise.tls.domains[0].main=mailrise.mydomain.com
- traefik.tcp.routers.mailrise.tls.domains[0].sans=mydomain.com
- traefik.tcp.routers.mailrise.entrypoints=mailsecure
volumes:
- $PWD/data_docker/mailrise/mailrise.conf:/etc/mailrise.conf:ro
restart: unless-stopped
networks:
- internal
- web
-
My Traefik static file is:
[entryPoints]
[entryPoints.web]
address = ":80"
[entryPoints.web.http.redirections.entryPoint]
to = "websecure"
scheme = "https"
[entryPoints.websecure]
address = ":443"
[entryPoints.mailsecure]
address = ":465"`
Logs from my mailrise docker listed below:
Verbose l[2022-11-28 20:35:33] INFO:mailrise.skeleton:Loaded configuration with 1 recipient(s) [2022-11-28 20:35:33] DEBUG:asyncio:Using selector: EpollSelector [2022-11-28 20:35:38] CRITICAL:mailrise.skeleton:Failed to start aiosmtpd controller: [Errno 98] error while attempting to bind on address ('::', 8025, 0, 0): address already in use Traceback (most recent call last): File "/home/mailrise/.local/bin/mailrise", line 8, in <module> sys.exit(run()) ^^^^^ File "/home/mailrise/.local/lib/python3.11/site-packages/mailrise/skeleton.py", line 164, in run main(sys.argv[1:]) File "/home/mailrise/.local/lib/python3.11/site-packages/mailrise/skeleton.py", line 145, in main controller.start() File "/home/mailrise/.local/lib/python3.11/site-packages/aiosmtpd/controller.py", line 210, in start raise self._thread_exception File "/home/mailrise/.local/lib/python3.11/site-packages/aiosmtpd/controller.py", line 176, in _run srv: AsyncServer = self.loop.run_until_complete(self.server_coro) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/base_events.py", line 650, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1511, in create_server raise OSError(err.errno, 'error while attempting ' OSError: [Errno 98] error while attempting to bind on address ('::', 8025, 0, 0): address already in use
Beta Was this translation helpful? Give feedback.
All reactions