google.com: XXX.XXX.XXX.XXX is neither permitted nor denied by best guess record for domain of apache@

If you are using mail() to send an email, with PHP, and you are getting the following error…

spf=neutral (google.com: 69.55.XXX.XXX is neither permitted nor denied by best guess record for domain of [email protected]) [email protected]
Return-Path: <[email protected]>

You can force the ‘mailfrom’ by adding -f[email protected], after the headers.

$send = mail($to, $subject, $message, implode("\r\n", $headers), '-f'.$from);

CPANEL – Sorry, the domain is already pointed to an IP address that does not appear to use DNS servers associated with this server

(XID h96ukf) Sorry, the domain is already pointed to an IP address that does not appear to use DNS servers associated with this server. Please transfer the domain to this servers nameservers or have your administrator add one of its nameservers to /etc/ips.remotedns and make the proper A entries on that remote nameserver.

Looks like we can disable this verification on CPANEL.
WHM > Server Setup > Tweak Settings

  • Allow Creation of Parked/Addon Domains that are not registered
  • Allow Creation of Parked/Addon Domains

WooCommerce – change Related Products title

// Change WooCommerce related products title
add_filter('gettext', 'change_relatedproducts_title', 10, 3);
add_filter('ngettext', 'change_relatedproducts_title', 10, 3);
function change_relatedproducts_title($translated, $text, $domain)
{
     if ($text === 'Related products' && $domain === 'woocommerce')
         $translated = esc_html__('Check out our other products', $domain);
     return $translated;
}

nagios problems 4.4.3

qh: Failed to init socket ‘/usr/local/nagios/var/rw/nagios.qh’

For this, I had to edit my (/etc/nagios/)nagios.cfg and

QUERY HANDLER INTERFACE
# This is the socket that is created for the Query Handler interface
#query_socket=/var/lib/nagios/rw/nagios.qh 
query_socket=/usr/local/nagios/var/rw/query.sh

Another problem occurred while trying to start nagios..

For this problem, this is the solution found

mkdir /usr/local/nagios/var/rw
chown nagios.nagios /usr/local/nagios/var/rw
service nagios restart