generate spf-entry also for 'mail'-record when no mxservers are specified, fixes #1314

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2013-12-09 13:57:03 +01:00
parent 904f412495
commit a5b1065195

View File

@@ -257,6 +257,9 @@ class bind
/*&& $domain['spf'] == '1' */
) {
$zonefile.= $this->settings['spf']['spf_entry'] . "\n";
if (in_array('mail', $records)) {
$zonefile.= str_replace('@', 'mail', $this->settings['spf']['spf_entry']) . "\n";
}
}
/**