Skip to content

qmail qmqpc.8

Manvendra Bhangui edited this page Dec 13, 2024 · 6 revisions

NAME

qmail-qmqpc - queue a mail message via QMQP

SYNOPSIS

qmail-qmqpc [ server [...] ]

DESCRIPTION

qmail-qmqpc offers the same interface as qmail-queue, but it gives the message to a QMQP server instead of storing it locally.

In a mini-qmail installation, qmail-queue is replaced with a symbolic link to qmail-qmqpc.

If one or more server IP addresses are specified on the command line, qmail-qmqpc will ignore the control files and instead use the QMQP servers specified on the command line.

The default QMQP port 628 used by qmail-qmqpc can be overridden by setting PORT_QMQP environment variable.

CONTROL FILES

qmqpservers
IP addresses of QMQP servers, one address per line. qmail-qmqpc will try each address in turn until it establishes a QMQP connection or runs out of addresses. If control file qmqpservers has the sticky bit set, qmail-qmqpc will use the modulus of current time in seconds and the number of servers in qmqpservers file to select just one address. If this address fails, qmail-qmqpc will revert to the traditional method where it tries each address till it establishes a QMQP connection. This allows one to distribute the load across multiple QMQP servers.

timeoutconnect
Number of seconds qmail-qmqpc will wait for the remote QMQP server to accept a connection. Default: 10. The kernel normally imposes a 75-second upper limit.

timeoutremote
Number of seconds qmail-qmqpc will wait for each response (read or write) from the remote QMQP server. Default: 60.

outgoingip
IP address to be used on outgoing connections. Default: system-defined. The value 0.0.0.0 is equivalent to the system default. The IP address can also be configured by setting the environment variable OUTGOINGIP. OUTGOINGIP overrides the control file outgoingip. You can have multiple IP addresses one per line, one per line for each IP. qmail-qmqpc will use the modulus operator with the current time to pick a single IP address.

SEE ALSO

indimail-control(5), qmail-queue(8), qmail-qmqpd(8),

Clone this wiki locally