Masquerading rules We sometimes face difficult problems. Email messages are sent out on the Internet with improper return addresses. Too often, there is lit- tle we can do, because, for all sorts of reasons, the system originat- ing these messages can't be corrected. Masquerading rules offer a way to fix the problem at the mail gateway. 11.. PPrriinncciipplleess You are allowed to define simple transformation rules which will be applied to all emails being forward by sendmail. Typically, you specify a _f_r_o_m and how this _f_r_o_m should be translated. You have some flexibility here. You can translate from: +o One domain to another. +o One user of a domain to another user of another domain. +o Any user of a domain to one user of another domain (weird). Here is a presentation of the different fields of a rules dialog. 11..11.. TThhiiss rruullee iiss aaccttiivvee You are allowed to activate/deactivate a rule without erasing it using this checkbox. 11..22.. ffrroomm You must enter an email address. Optionally, you may omit the user name and only supply the domain name prefixed with the '@' character. This means that the rule applies to any user of the domain. 11..33.. nneeww ffrroomm The "from" email address will be rewritten using this field. You must again specify an email address. Again, you may omit the user name and just provide the domain name prefixed with the '@' character. 11..44.. CCoommmmeenntt Enter a comment to remind you about the reasons you used this feature (the masquerading rule). Normally, masquerading rules are used last. It is better to fix the problem at the origin. Unfortunately, this is not always possible, for all kinds of very good (and stupid) reasons. 22.. SSoommee eexxaammpplleess from : @hidden_domain new from : @internet_domain.com This rule will translate any mail from user@hidden_domain so they originate from user@internet_domain.com from : @hidden_domain new from : joe@internet_domain.com This rule will translate any mail from user@hidden_domain so they originate from joe@internet_domain.com. I'm not sure why one would want to do this. from : joe@hidden_domain new from : info@internet_domain.com This rule will translate any mail from joe@hidden_domain so they originate from info@internet_domain.com.