Skip to content

ofmipd.8

Manvendra Bhangui edited this page Feb 25, 2024 · 4 revisions

NAME

ofmipd - accept outgoing mail through OFMIP

SYNOPSIS

ofmipd [ name.cdb hostname checkpasswd falsepgm ]

DESCRIPTION

ofmipd accepts mail messages through the Old-Fashioned Mail Injection Protocol (OFMIP), rewrites them according to local rules, and invokes qmail-queue to deposit them into the outgoing queue. ofmipd must be supplied several environment variables; see tcp-environ(5).

See https://cr.yp.to/proto/ofmip.html for further information on OFMIP.

USING OFMIP

You can use tcpserver to set up ofmipd on a free TCP port. Some sites use port 26. Some sites use port 25 on an IP address that does not receive incoming mail.

The hostname argument is the name of the mail host, intended to create CRAM password challenges but currently ignored. The checkpasswd argument is the name of a password checker that uses the same calling conventions as the qmail POP3 checkpasswd. The falsepgm argument is the name a program that fails, such as /bin/false.

If the environment variable RELAYCLIENT is set, or the client logs in with AUTH, ofmipd will relay messages to any destination. If not, it will reject any MAIL FROM, RCPT TO, or DATA command with a 503 error. With tcpserver you can set RELAYCLIENT for preauthorized IP addresses such as 127.0.0.1. The contents of RELAYCLIENT are ignored; in particular, they are not appended to destnation mail addresses.

Most MUAs that claim to be ``SMTP clients'' are actually OFMIP clients. You should point them at ofmipd rather than qmail-smtpd. Some MUAs will use port 26 of server if you tell them that the ``SMTP server'' is server*:26***.

MESSAGE REWRITING

ofmipd rewrites each message in essentially the same way that new-inject does. It transforms each envelope address as discussed in rewriting(5); it cleans up address lists in To, Cc, Notice-Requested-Upon-Delivery-To, From, Sender, Reply-To, Mail-Reply-To, and Mail-Followup-To; it adds Date and Message-ID; it discards Bcc, Apparently-To, Content-Length, and Return-Path; and it moves various fields to the top of the message.

ofmipd also transforms envelope sender addresses and From lines according to name.cdb if name.cdb is supplied. See ofmipname(8) for further details. he I name.cdb rgument must be supplied but may be a null string of no name ransformation file is to be used.

ofmipd accepts LF and CR LF as line terminators inside messages.

ofmipd does not do hop counting or local-IP-address recognition.

SEE ALSO

new-inject(1), tcpserver(1), addresses(5), tcp-environ(5), rewriting(5), indimail-control(5), qmail-queue(8), ofmipname(8),

Clone this wiki locally