Git Product home page Git Product logo

Comments (5)

Moarc avatar Moarc commented on August 23, 2024

To bind ports below 1024 you have to give yourself capabilities (I'm not sure how though, for a binary you could use setcap, I don't know whether that would work for a Python script) or run the program as root.

btw you should restore the ::1 stuff in your /etc/hosts, I've had some unexpected issues arise from not having that config line in the past

from smtp2xmpp.

hubgitbb avatar hubgitbb commented on August 23, 2024

i run the script as root
and if i restore the ::1 stuff in /etc/hosts i get the error 99
any other ideas?

from smtp2xmpp.

hubgitbb avatar hubgitbb commented on August 23, 2024

`
Traceback (most recent call last):
File "/usr/local/bin/smtp2xmpp.py", line 194, in
controller.begin()
File "/usr/local/lib/python3.9/dist-packages/aiosmtpd/controller.py", line 370, in begin
srv: AsyncServer = self.loop.run_until_complete(self.server_coro)
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/usr/lib/python3.9/asyncio/base_events.py", line 1494, in create_server
raise OSError(err.errno, 'error while attempting '
OSError: [Errno 99] error while attempting to bind on address ('::1', 25, 0, 0): cannot assign requested address
Done

`

from smtp2xmpp.

Moarc avatar Moarc commented on August 23, 2024

any other ideas?

If you were getting error 98 "address already in use" before, that would mean something - another SMTP server - is listening on port 25. To check for that, you could use netstat.

from smtp2xmpp.

hubgitbb avatar hubgitbb commented on August 23, 2024

netstat did it
there was exim4 installed and listening on port 25. an apt remove exim4 fixed the problem.

thx

from smtp2xmpp.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.