11 one-liners with this tag.
All one-liners tagged mail
Change the password of a Plesk mailbox
#plesk bin mail --update info@example.com -passwd 'NewSecurePassword'
Check a domain's DKIM key in DNS
$dig +short default._domainkey.example.com TXT
Check the mail configuration in Plesk without changes
#plesk repair mail -n
Create an email mailbox in Plesk from the command line
#plesk bin mail --create info@example.com -mailbox true -passwd 'NewSecurePassword'
List all email addresses on a Plesk server
#plesk db "SELECT CONCAT(m.mail_name, '@', d.name) AS adresse, m.postbox FROM mail m JOIN domains d ON d.id = m.dom_id ORDER BY d.name, m.mail_name"
Look up the MX records of a domain
$dig +short example.com MX
Look up the reverse DNS (PTR) of an IP address
$dig +short -x 203.0.113.10
Mailbox disk usage per domain in Plesk
#du -sh /var/qmail/mailnames/*/ 2>/dev/null | sort -rh | head -20
Show the DMARC policy of a domain
$dig +short _dmarc.example.com TXT
Show the SPF record of a domain
$dig +short example.com TXT | grep -i "v=spf1"
Verify reverse DNS of a mail server IP (FCrDNS)
$ptr=$(dig +short -x 203.0.113.10 | head -n 1); echo "PTR: $ptr"; dig +short "$ptr" A