Lines 1199-1204
Link Here
|
1199 |
} |
1199 |
} |
1200 |
}); |
1200 |
}); |
1201 |
|
1201 |
|
|
|
1202 |
=item msa_on_auth_networks ip.add.re.ss[/mask] ... (default: none) |
1203 |
|
1204 |
The networks or hosts which SA should treat like MSAs when relaying |
1205 |
messages from an authenticated source. |
1206 |
Unlike the hosts in msa_networks, these relays may accept mail from |
1207 |
hosts that aren't authenticated in some way and SA will not trust the |
1208 |
whole relay chain. |
1209 |
|
1210 |
When instead one of these relays is dispatching a message from an |
1211 |
authenticated source, all relays found in the message headers after the |
1212 |
relay itself will take on the same trusted and internal classifications |
1213 |
as the MSA relay itself, as defined by your I<trusted_networks> and |
1214 |
I<internal_networks> configuration. |
1215 |
|
1216 |
SA detects that a relay in this list is acting like an MSA when its |
1217 |
received header contains some kind of authenticated protocol in the |
1218 |
'via' or 'with' value. Examples of such authenticated protocols |
1219 |
include SMTPA, ESMTPA, LMTPA. |
1220 |
|
1221 |
=cut |
1222 |
|
1223 |
push (@cmds, { |
1224 |
setting => 'msa_on_auth_networks', |
1225 |
type => $CONF_TYPE_IPADDRLIST, |
1226 |
}); |
1227 |
|
1228 |
=item clear_msa_on_auth_networks |
1229 |
|
1230 |
Empty the list of msa-on-auth networks. |
1231 |
|
1232 |
=cut |
1233 |
|
1234 |
push (@cmds, { |
1235 |
setting => 'clear_msa_on_auth_networks', |
1236 |
type => $CONF_TYPE_NOARGS, |
1237 |
code => sub { |
1238 |
my ($self, $key, $value, $line) = @_; |
1239 |
unless (!defined $value || $value eq '') { |
1240 |
return $INVALID_VALUE; |
1241 |
} |
1242 |
$self->{msa_on_auth_networks} = Mail::SpamAssassin::NetSet->new(); # not new_netset |
1243 |
$self->{msa_on_auth_networks} = 0; |
1244 |
} |
1245 |
}); |
1246 |
|
1202 |
=item originating_ip_headers header ... (default: X-Yahoo-Post-IP X-Originating-IP X-Apparently-From X-SenderIP) |
1247 |
=item originating_ip_headers header ... (default: X-Yahoo-Post-IP X-Originating-IP X-Apparently-From X-SenderIP) |
1203 |
|
1248 |
|
1204 |
A list of header field names from which an originating IP address can |
1249 |
A list of header field names from which an originating IP address can |
Lines 3506-3511
Link Here
|
3506 |
$self->{trusted_networks} = $self->new_netset(); |
3551 |
$self->{trusted_networks} = $self->new_netset(); |
3507 |
$self->{internal_networks} = $self->new_netset(); |
3552 |
$self->{internal_networks} = $self->new_netset(); |
3508 |
$self->{msa_networks} = Mail::SpamAssassin::NetSet->new(); # not new_netset |
3553 |
$self->{msa_networks} = Mail::SpamAssassin::NetSet->new(); # not new_netset |
|
|
3554 |
$self->{msa_on_auth_networks} = Mail::SpamAssassin::NetSet->new(); |
3509 |
$self->{trusted_networks_configured} = 0; |
3555 |
$self->{trusted_networks_configured} = 0; |
3510 |
$self->{internal_networks_configured} = 0; |
3556 |
$self->{internal_networks_configured} = 0; |
3511 |
|
3557 |
|
Lines 3870-3876
Link Here
|
3870 |
|
3916 |
|
3871 |
# keys that should can be copied using a ->clone() method, in ->clone() |
3917 |
# keys that should can be copied using a ->clone() method, in ->clone() |
3872 |
my @CLONABLE_KEYS = qw( |
3918 |
my @CLONABLE_KEYS = qw( |
3873 |
internal_networks trusted_networks msa_networks |
3919 |
internal_networks trusted_networks msa_networks msa_on_auth_networks |
3874 |
); |
3920 |
); |
3875 |
|
3921 |
|
3876 |
my %done; |
3922 |
my %done; |