Re: Starting tmda-ofmipd globally
Stephen Warren <[email protected]>
| Newsgroups | gmane.mail.spam.tmda.user |
|---|---|
| Message-ID | <[email protected]> |
Anthony Ercolano wrote:
> Now I want to start it at boot and make sure it always is around.
> Seemed like the best thing was to copy how qmail keeps itself running
> and to use the supervise service in conjunction with tcpserver.
>
> To test this I took the line from the runscript and I then tried from
> the command line, and telneted to mail.ercolano.net 8025:
>
> mail tmda-ofmipd # /usr/bin/tcpserver -v -x
> /etc/tcprules.d/tcp.tmda-ofmipd.cdb -c 40 -u 89 -g 89 mail.ercolano.net
> 8025 /usr/bin/tmda-ofmipd -d -R imaps://mail.ercolano.net -S
> /usr/lib/tmda/contrib/vpopmail-vdir.sh
>...
> Traceback (most recent call last):
> File "/usr/bin/tmda-ofmipd", line 1257, in ?
> main()
> File "/usr/bin/tmda-ofmipd", line 1217, in main
> ('localhost', 25))
> File "/usr/bin/tmda-ofmipd", line 997, in __init__
> self.bind(localaddr)
> File "/usr/lib/python2.4/asyncore.py", line 304, in bind
> return self.socket.bind(addr)
> File "<string>", line 1, in bind
> socket.error: (98, 'Address already in use')
> tcpserver: end 15665 status 256
> tcpserver: status: 0/40
>
> Any thoughts n what I'm not understanding here? (tcp.tmda-ofmipd (used
> to create the cdb) contains a simple ":allow")
By default, tmda-ofmipd expects to open the network port itself, and
listen for new connections, and handle them.
If instead, you're using tcpserver/stunnel/xinetd/... to do this, you
need to put tmda-ofmipd into "one-session" mode.
To run in one-session mode, simply pass the "-1" (that's dash one)
command-line option.
See the following URL for details:
http://wiki.tmda.net/TmdaOfmipdHowto#head-906d80417bc02c8c7157ade2f32afefcc5ac180e
signature.asc
(application/pgp-signature, 250 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFJzyshk3bo0lNTrURAu5EAJ9eXi50Uk4BTUSArjcQKycav2CWBACg8bsR 72vOb4cwCNUa67IlQCQEwtY= =2hFj -----END PGP SIGNATURE-----