.TH "whereami.conf" "5" .SH "NAME" whereami.conf \(em configuration file for \fBwhereami\fR .SH "DESCRIPTION" .PP The \fBwhereami.conf\fP file specifies what \fBwhereami\fR does on leaving, remaining at or arriving at locations. (Locations are detected by \fBwhereami\fR according to specifications in the \fBdetect.conf\fP file.) .PP Comments are lines starting with the `#' character. Leading whitespace is ignored on all lines, including comment lines. .PP Other lines are of the form: .IP "\fB-\fP\fIlocation\fR \fIaction\fR" 10 The action is performed if your system was previously at this location, but is now at another location. .IP "\fB=\fP\fIlocation\fR \fIaction\fR" 10 The action is performed if your system is now at this location. .IP "\fB+\fP\fIlocation\fR \fIaction\fR" 10 The action is performed if your system is now at this location, but was previously at another location. .IP "\fB!\fP\fIlocation\fR \fIaction\fR" 10 The action is performed if your system is not at this location. .SH "HELPER SCRIPTS" .PP In addition to the normal commands available within any shell script, \fBwhereami\fR includes a number of helper scripts which may be useful. .IP "setmailrelay \fI(none | queue [smarthost] | smarthost)\fR" 10 Set the mail relay (i.e. smarthost) to "none" if you have a permanent connection, and can send e-mail directly to the recipient's mailserver. .IP "" 10 If you are not connected, set the relay to "queue" (optionally for a specific smarthost). .IP "" 10 Or send all mail to a specific smarthost, if that is what you need in this location. .IP "setresolver \fI\fR" 10 The \fI\fR should be something like: \fIsearch localhost mydomain.com nameserver 1.2.3.4\fR (all on one line) to specify the domain search path and the nameserver to use. .IP "" 10 If you have \fBresolvconf\fR installed, this script will interface with that to manupulate the /etc/resolv.conf file and control DNS resolution. This is recommended. .IP "" 10 If you are not using resolvconf, then this will directly rewrite your /etc/resolv.conf file, inserting a section similar to the manner in which DHCP works. .IP "setproxy \fI(start | stop | none | )\fR" 10 Use this script to reconfigure your local \fBoops\fR or \fBsquid\fR proxy server to use a specific upstream proxy, no upstream proxy, or to stop the proxy server completely. .IP "" 10 The upstream proxy should be specified as " ", e.g.: \fBsetproxy 192.168.55.3 3128\fR .IP "" 10 For a local \fBsquid\fR proxy you can optionally also provide a complete set of parameters for the "cache_peer" directive (without the "cache_peer" name itself). See the squid.conf file for full details of this syntax. e.g.: \fBsetproxy 192.168.55.3 parent 3128 3140 login=user:password\fR .IP "settimezone \fItimezone\fR" 10 Use this to set your timezone differently. .IP "masqmail_route \fIroute_name\fR" 10 Use this to reconfigure \fBmasqmail\fR to use a different masqmail routing. .SH "SEE ALSO" .PP \fBwhereami\fR(8), \fBdetect.conf\fP(5) .PP Further documentation is available in the /usr/share/doc/whereami directory. .SH "FILES" .IP "\fB/etc/whereami/whereami.conf\fP" 10 The file we are talking about in this here manpage. .IP "\fB/etc/whereami/whereiam.sh\fP" 10 The script that is built based on the information in this configuration file and then executed by \fBwhereami\fR. .SH "LIMITATIONS" .PP There should be a configuration program so that the user does not have to do any script programming. .SH "AUTHOR" .PP This manual page was written by Andrew McMillan for the \fBDebian GNU/Linux\fP system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GPL version 2. .\" created by instant / docbook-to-man, Fri 02 Nov 2007, 07:10