• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

is it safe to stop the "repair" utility

tkalfaoglu

Silver Pleskian
I have had the "repair" running for over half an hour, just to update all DNS entries with my new SPF entries.
("apply template" was not appealing).

it's been at this stage while the system gives "invalid login" to every poor sucker that tries to fetch mail:
(...)
-- Restoring DNS server configuration... done: Ok
-- Restoring mail server configuration... started.
==> Checking for: mailsrv_conf_init... ok
==> Checking for: mail_handlers_init... ok
==> Checking for: mailsrv_entities_dump... ok
==> Checking for: mail_admin_aliases... ok
==> Checking for: mail_auth_dump... ok
==> Checking for: mailman_lists_dump... ok
==> Checking for: mail_kav8_restore... ok
==> Checking for: mail_responder_restore... ok
==> Checking for: mail_imap_restore... ok
==> Checking for: mail_spam_restore... ok


My question is: Is it safe to ctrl-c out of it?
 
Hi tkalfaoglu,

... if you just would want to update your DNS entries, consider using "DNS Zone Template: server_dns Utility" instead of using a whole "repair" procedure:


Consider reading more about the cli-command-usage for Plesk... you might be surprised, how powerfull and time saving these commands are. :D

A nice cli command, to update/change/modify/adjust DNS settings is "dns" for example:

REMOVE spf - setting:
Code:
/usr/local/psa/bin/dns -d domain.com -txt "v=spf1 +a +mx -all"
ADD spf - setting:
Code:
/usr/local/psa/bin/dns -a domain.com -txt "v=spf1 +a +mx -all"
RESET to template:
Code:
/usr/local/psa/bin/dns --reset domain.com



While we are just at SPF - entries, consider adding some modifications in your server template, as for example:

v=spf1 +a +mx +ip4:<ip.mail> ?all

Note: There are several possible placeholders, which you can use with Plesk - complete list:

<domain>
<ip> // <ipv6>
<ip.dns> // <ipv6.dns>
<ip.mail> // <ipv6.mail>
<ip.web> // <ipv6.web>
<ip.webmail> // <ipv6.webmail>

... and while we are at the place to update/change/modify/adjust settings for one domain, you might ask yourself, if you could modify such settings as well in a complete row for all domains hosted on your server? Sure... here you go with an example:

Add the standard SPF record to the psa database:
Code:
mysql -u admin -p`cat /etc/psa/.psa.shadow` psa -e "select dns_zone_id,displayHost from dns_recs GROUP BY dns_zone_id ORDER BY dns_zone_id ASC;" | awk '{print "INSERT INTO dns_recs (type,host,val,time_stamp,dns_zone_id,displayHost,displayVal) VALUES ('\''TXT'\'','\''"$2"'\'','\''v=spf1 +a +mx -all'\'',NOW(),"$1",'\''"$2"'\'','\''v=spf1 +a +mx -all'\'');"}' | mysql -u admin -p`cat /etc/psa/.psa.shadow` psa

Update Plesk with:
Code:
mysql -Ns -uadmin -p`cat /etc/psa/.psa.shadow` -D psa -e 'select name from domains' | awk '{system("/usr/local/psa/admin/bin/dnsmng --update "$1)}'
 
Last edited by a moderator:
Back
Top