|
|
1.1 ! root 1: '\"macro stdmacro ! 2: .if n .pH g1a.smtpqer %W% of %G% ! 3: .nr X ! 4: .if \nX=0 .ds x} smtpqer 1M "" "\&" ! 5: .if \nX=1 .ds x} smtpqer 1M "" ! 6: .if \nX=2 .ds x} smtpqer 1M "" "\&" ! 7: .if \nX=3 .ds x} smtpqer "" "" "\&" ! 8: .TH \*(x} ! 9: .SH NAME ! 10: \f4smtpqer\fP \- queue mail for delivery by \s-1SMTP\s+1 ! 11: .SH SYNOPSIS ! 12: \f4smtpqer\f1 [ \f4\-nu\f1 ] [ \f4\-a\f2 toaddr\f1 ] [ \f4\-d\f2 domain\f1 ] ! 13: [ \f4\-H\f2 helohost \f1]\f2 sender host recip ... ! 14: .SH DESCRIPTION ! 15: \f4smtpqer\fP queues the mail message it reads from standard input for ! 16: eventual delivery by \f4smtp\fP. ! 17: The message is queued for delivery to the host specified in the \f2to\fP address. ! 18: .P ! 19: \f4smtpqer\fP should normally be invoked by the \f4mail\fP command by placing ! 20: the following line in \f4/etc/mail/mailsurr\fP: ! 21: .P ! 22: .nf ! 23: \f4\(aa.+\(aa \(aa([^!@]+)!(.+)\(aa \(aa< /usr/lib/mail/surrcmd/smtpqer %R \e\e1 \e\e2\(aa\fP ! 24: .fi ! 25: .P ! 26: \f4smtpqer\fP will check the host name in the \f2to\fP address. ! 27: If it is one that can be reached (i.e., if \f4netdir_getbyname\fP(3) can find ! 28: it on at least one ! 29: .SM TLI ! 30: network), the message will be queued, and ! 31: \f4smtpqer\fP will exit with a return code of 0 (which means the mail ! 32: was successfully queued). ! 33: Otherwise, it will return with an exit code of 1, and the message will ! 34: not be queued. ! 35: .P ! 36: Messages that are queued are stored in a file under the ! 37: .SM SMTP ! 38: queue directory (\f4/var/spool/smtpq\fP). ! 39: If the \f4\-u\fP option is not used, they are first converted to RFC822 ! 40: format, by filtering them through the program \f4tosmtp\fP. ! 41: Finally, \f4smtpqer\fP invokes the \f4smtpsched\fP program to ! 42: deliver the mail. ! 43: .P ! 44: The \f4\-H\fP option is used to specify the host name that should ! 45: be used in the ! 46: .SM SMTP ! 47: .SM HELO ! 48: message. ! 49: This option is passed to both the \f4tosmtp\fP and \f4smtp\fP programs. ! 50: .P ! 51: The \f4\-d\fP option is used to specify the domain name that should ! 52: be used for your host. ! 53: This option is passed to the \f4tosmtp\fP program. ! 54: If this option is not used, and a domain has been specified in the ! 55: mail configuration file \f2mailcnfg\fP, that domain will be used instead. ! 56: .P ! 57: The \f4\-a\fP option is used to specify the ``to address'' that is passed ! 58: to the \f4smtp\fP program. ! 59: Finally, the \f4\-n\fP option is used to prevent \f4smtpqer\fP from starting ! 60: an \f4smtpsched\fP process to deliver the mail. ! 61: .SH FILES ! 62: .TP 25n ! 63: \f4/usr/bin/rmail\fP ! 64: where mail originates from ! 65: .TP ! 66: \f4/etc/hosts\fP ! 67: database of remote hosts (for \s-1TCP/IP\s+1) ! 68: .TP ! 69: \f4/etc/mail/mailcnfg\fP ! 70: mail configuration file ! 71: .TP ! 72: \f4/etc/net/\(**/hosts\fP ! 73: database of remote hosts (for other \s-1TLI\s+1 networks) ! 74: .TP ! 75: \f4/etc/mail/mailsurr\fP ! 76: control file containing rule to invoke \f4smtpqer\fP ! 77: .TP ! 78: \f4/usr/lib/mail/surrcmd/smtpsched\fP ! 79: program to process message queues ! 80: .TP ! 81: \f4/usr/lib/mail/surrcmd/smtp\fP ! 82: program that passes message to remote host ! 83: .TP ! 84: \f4/usr/lib/mail/surrcmd/tosmtp\fP ! 85: filter to convert to RFC822 format ! 86: .TP ! 87: \f4/var/spool/smtpq\fP ! 88: where messages are queued ! 89: .SH "SEE ALSO" ! 90: \f4rmail\fP(1M), \f4smtpsched\fP(1M), \f4smtp\fP(1M), \f4tosmtp\fP(1M) ! 91: .br ! 92: \f4getdomainname\fP(3) in the \f2Programmer's Reference Manual\f1. ! 93: .br ! 94: RFC822 \- Standard for the Format of \s-1ARPA\s+1 Internet Text Messages
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.