-p

-p

Set protocol and host V8.10 and above

The $r sendmail macro holds as its value the protocol that is used in receiving a mail message (usually SMTP or UUCP, $r). The $s sendmail macro holds as its value the name of the sending host ($s). Some programs, such as UUCP, need to be able to set the values of these macros from the command line. The old way to set them looked like this:

 -oMrUUCP -oMslady 

Here, the M option sets $r to be UUCP and $s to be lady .

Under V8 sendmail the setting of $r and $s has been simplified. A command-line single switch, -p , can be used to set them both:

 -p  rval:sval  

Here, the rval is the value assigned to $r , and the sval is the value assigned to $s . The two are separated by a colon . If the sval is omitted, the colon should also be omitted.



Sendmail
sendmail, 4th Edition
ISBN: 0596510292
EAN: 2147483647
Year: 2002
Pages: 1174

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net