xstocler <[email protected]> (Fr 03 Apr 2020 01:22:02 CEST): > Hello dear friends, > > I stopped receiving emails, after checking the debug with the command > `exim -bd -d > ` > the following log is returning me > > `20:13:06 7773 socket bind() to port 25 for address (any IPv4) failed: > Address already in use: waiting 30s before trying again (9 more tries) … > /bin/netstat -lnp | grep 25 > `tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN > 16311/exim`
You tried to Exim as a daemon (-bd) and debug output (-d). The debug
output goes to stderr, which may not be available to the daemon anymore (I
guess).
exim -bdf -d
is what I use. "-bdf" lets Exim sit in the foreground, so I can kill it
easily using ^C.
> `[root@fw ~]# service exim status
> Redirecting to /bin/systemctl status exim.service
> ● exim.service - Exim Mail Transport Agent
> Loaded: loaded (/usr/lib/systemd/system/exim.service; enabled; vendor
> preset: disabled)
> Active: active (running) since Thu 2020-04-02 14:14:03 -03; 51min ago
> Process: 2797 ExecStartPre=/usr/libexec/exim-gen-cert (code=exited,
> status=0/SUCCESS)
> Main PID: 2816 (exim)
> CGroup: /system.slice/exim.service
> └─2816 /usr/sbin/exim -bd -q1h
Hm, I'm confused. We have 4 PIDs now
7733: the process that complains about "address in use"
2816: the process that was started by your systemd unit
16311: the process that is listening on your port 25
I do not know in which order you did start these things.
> I don't know what to do, help me
> You can view, comment on, or merge this pull request online at:
>
> https://github.com/Exim/exim/pull/76
The github is not the proper place to ask for help in situations like
yours. I'll remove this pull request later and we can continue this
conversation on the [email protected] mailing list.
What to do now?
Simply kill all the processes that block your port.
fuser -kv 25/tcp
might help. Or use any other tool suitable for this.
Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
--
SCHLITTERMANN.de ---------------------------- internet & unix support -
Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
gnupg encrypted messages are welcome --------------- key ID: F69376CE -
signature.asc
Description: PGP signature
-- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
