on the local machine.
Check the `mts.conf(5)' man page for a list of all the available
- options for this file ("masquerade" may be of particular interest).
+ options for this file.
6) Edit the file `mhn.defaults' (installed in the mmh `etc' directory).
This file contains the default profile entries for the mmh commands
--enable-debug
Enable debugging support.
---enable-masquerade[='username_extension']
- If this option is disabled, the mts.conf file will contain the
- line "masquerade: " (with no value), which may be manually edited
- later. You may find it convenient to specify a value at
- configure-time, however, so that each time mmh is reinstalled,
- the right value will be there. By default, it is enabled.
-
- See the mh-tailor(5) man page for full documentation of "masquerade:".
-
--enable-mhe (DEFAULT)
Add support for the Emacs front-end `mhe'.
enable_debug=yes
fi
-dnl Allow users to send email from addresses other than their default?
-AC_ARG_ENABLE(masquerade,
- AS_HELP_STRING([--enable-masquerade='username_extension'],
- [enable up to 3 types of address masquerading]),
- [if test x"$enable_masquerade" = x"yes"; then
- masquerade="username_extension"
- else
- masquerade="$enable_masquerade"
- fi], [masquerade="username_extension"])
-AC_SUBST(masquerade)dnl
-
dnl Do you want mhe support?
AC_ARG_ENABLE(mhe,
AS_HELP_STRING([--disable-mhe],[disable mhe support]))
mail spool : ${mailspool}
file locking type : ${LOCKTYPE}
-address masquerading : ${masquerade}
"
etcdir = @sysconfdir@
mailspool = @mailspool@
-masquerade = @masquerade@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
mts.conf: $(srcdir)/mts.conf.in Makefile
rm -f $@
$(SED) -e 's,%mailspool%,$(mailspool),' \
- -e 's,%etcdir%,$(etcdir),' \
- -e 's,%masquerade%,$(masquerade),' < $(srcdir)/mts.conf.in > $@
+ -e 's,%etcdir%,$(etcdir),' < $(srcdir)/mts.conf.in > $@
sendfiles: $(srcdir)/sendfiles.in Makefile
rm -f $@
#
# nmh mail transport interface customization file.
#
-# Check the mh-tailor(5) man page for a list of
-# all the available options for this file.
+# Check the mh-tailor(5) man page for information.
#
-
-# The following directive allows email address masquerading. The string
-# "username_extension" is the default.
-masquerade: %masquerade%
+# maildelivery is the only available option.
local copy of
.BR sendmail .
.PP
-.BR masquerade:
-.RS 5
-This directive controls email address masquerading.
-The possible value is \*(lqusername_extension\*(rq.
-.PP
-If specified and if the user sets the
-.B $USERNAME_EXTENSION
-environment variable, its value will be appended to the actual login name. For
-instance, if I am \*(lqdan@company.com\*(rq, and I set
-.B $USERNAME_EXTENSION
-to \*(lq\-www\*(rq, my mail will appear to come from \*(lqdan\-www@company.com\*(rq. This is meant
-to interact with qmail's \*(lquser\-extension\*(rq feature, where mail sent to
-.IR user \- string
-will be delivered to
-.IR user .
-Likewise, those using
-versions of sendmail for which \*(lqplussed user\*(rq processing is active can set
-.B $USERNAME_EXTENSION
-to \*(lq+\fIstring\fR\*(rq. These MTA features are useful
-because they allow one to use different email addresses in different situations
-(to aid in automatic mail filtering or in determining where spammers got one's
-address) while only actually having a single account. Note that
-.B $USERNAME_EXTENSION
-is only appended to the username when \fIpost\fR is
-generating \*(lq[Resent\-]From:\*(rq lines and the SMTP envelope
-\*(lqFrom:\*(rq.
-.BR inc ,
-for instance, will not try to read from a maildrop file called \*(lqdan\-www\*(rq (to
-recall the earlier example).
-.PP
-In any case:
When a user explicitly specifies a \*(lqFrom:\*(rq header in a draft,
.B nmh
uses it
static char adr[BUFSIZ];
-extern boolean username_extension_masquerading; /* defined in mts.c */
-
-
/*
** external prototypes
*/
static char username[BUFSIZ];
static char fullname[BUFSIZ];
-/* Variables for username masquerading: */
-boolean username_extension_masquerading = FALSE; /* " from addrsbr.c */
-static char* masquerade = "";
-
/*
** Global MailDelivery file
*/
};
static struct bind binds[] = {
- { "masquerade", &masquerade },
{ "maildelivery", &maildelivery },
{ NULL, NULL }
};
mts_read_conf_file(fp);
fclose(fp);
}
-
- if (strstr(masquerade, "username_extension") != NULL)
- username_extension_masquerading = TRUE;
}