Alexander GQ Gerasiov
a0f5ffa99a
postsrsd.c: Close all file descriptors on process start.
Signed-off-by: Alexander GQ Gerasiov <gq@cs.msu.su >
7 jaren geleden
Gedalya
54e5923379
Make hash length and hash minimum length configurable
8 jaren geleden
Matthew Bowman
fc2ba94684
add the ability to set the socket listen address
8 jaren geleden
Timo Röhling
a5068306f1
1.4
8 jaren geleden
Timo Röhling
af7a24ac27
Add dual stack support
Closes #46
8 jaren geleden
Timo Röhling
e2ed71fa64
Fix comment
8 jaren geleden
Timo Röhling
d549b3ff35
1.3
9 jaren geleden
Timo Röhling
8653cca9b1
A few corrections
Use char instead of char* for the single character and don't do this
weird casting thing where a char gets stored in the pointer.
9 jaren geleden
nichivo
1d7e242fa6
Add an argument for the first separator character after SRS0 and SRS1. The default is now = instead of +
9 jaren geleden
bjoe2k4
1e2f2d535d
Revert "Bind to both ipv4 and ipv6 by default."
This reverts commit cdb223542a .
9 jaren geleden
bjoe2k4
e12167c202
Read config from environment
9 jaren geleden
bjoe2k4
cdb223542a
Bind to both ipv4 and ipv6 by default.
9 jaren geleden
bjoe2k4
10e8b8214d
Remove addrinfo flags
Remove flags since they require the network to be up and routable for no reason.
9 jaren geleden
Timo Röhling
51e9288c93
1.2
10 jaren geleden
Timo Röhling
0442b31227
Fix more warnings
10 jaren geleden
Timo Röhling
1493d5f38c
Bind IPv4 ports by default
10 jaren geleden
Timo Röhling
a4a53c7b9f
Flush before waiting for new input, not after
10 jaren geleden
Timo Röhling
859796b126
Workaround for Solaris libc
The Solaris libc has some issues with alternating input and output
on sockets passed to fdopen(). Apparently there is a shared buffer
which has to be emptied, either by fseek() or fflush(), whenever
the direction of the data flow changes.
10 jaren geleden
Timo Röhling
70878f964c
Whitespace fix
10 jaren geleden
Timo Röhling
a534a528f7
Check for headers which may or may not be available
10 jaren geleden
TomBoehm
5b08179493
Add preliminary Mac OS X support
10 jaren geleden
Timo Röhling
f430c83b82
Load timezone info before chroot
Fixes #13
10 jaren geleden
Chris Butler
6abd042ee3
Ignore EINTR errors from main poll() loop
When trying to connect the strace tool to the daemon's main process, the
daemon would die because strace interrupted the poll() causing it to
return EINTR.
It should be safe to ignore EINTR errors from poll in this case. Either
the received signal will be otherwise ignored by the process, or it will
cause it to terminate.
10 jaren geleden
Chris Butler
0fc199d5bc
Close the listen sockets in child processes
By keeping the listen sockets open, the children were preventing the
daemon from being restarted cleanly. Once the child has forked these
listen sockets are no longer needed by that process, so can be closed.
10 jaren geleden
Timo Röhling
4a3349d538
1.1
10 jaren geleden
Timo Röhling
ea35d05dcf
Check for extra command line arguments
Otherwise, excluded domains might be silently ignored.
10 jaren geleden
Timo Röhling
e915847e73
Do not show help on command line errors
This obfuscates the error message too much.
10 jaren geleden
Timo Röhling
45648f63df
Optionally exclude domains from address rewriting
Useful for subdomains which are handled by the same
mail server.
11 jaren geleden
Timo Röhling
ff33d043b9
Support for multiple secrets
The secrets file is now parsed line by line, and
each line (excluding CR and/or LF) is used as a secret.
Only the first secret is used for signing, but all
secrets are used for verification.
11 jaren geleden
Timo Röhling
521be6ecc3
Fix line indentation
This is purely cosmetic.
11 jaren geleden
Timo Röhling
37c6dc7b0d
Pacify C compiler
This eliminates a warning about a missing return
statement. The code was correct though, because
hex2num() is guarded by is_hexdigit().
11 jaren geleden
Timo Röhling
c29c38d622
Add chroot capability
12 jaren geleden
Timo Röhling
df7a3836c4
Added syslog output
12 jaren geleden
Timo Röhling
5d26960180
Fix special character escape
12 jaren geleden
Timo Röhling
35ec3e10a8
Initial commit
12 jaren geleden