Comments (5)
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.
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.
`
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.
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.
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)
- Support any JID as email address? HOT 3
- [Errno 88] Socket operation on non-socket HOT 2
- [Errno 99] error while attempting to bind on address ('::1', 25, 0, 0): cannot assign requested address HOT 1
- [Errno 111] Connect call failed ('127.0.0.1', 5348) HOT 2
- Listens not only on localhost 127.0.0.1:25 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smtp2xmpp.