• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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