29 lines
558 B
Plaintext
29 lines
558 B
Plaintext
{
|
|
$OUT = "";
|
|
|
|
#--------------------------------------------------
|
|
# Now check for SMTP smart host
|
|
#--------------------------------------------------
|
|
|
|
if (
|
|
$SMTPSmartHost
|
|
&&
|
|
($SMTPSmartHost ne 'off')
|
|
&&
|
|
($SMTPSmartHost !~ /^\s*$/)
|
|
)
|
|
{
|
|
# Is the smtp-auth-proxy enabled?
|
|
if (${'smtp-auth-proxy'}{'status'} eq 'enabled')
|
|
{
|
|
$OUT .= ":localhost:26";
|
|
}
|
|
else
|
|
{
|
|
$OUT .= ":$SMTPSmartHost";
|
|
}
|
|
}
|
|
|
|
chomp ($OUT);
|
|
}
|