A quick shell script to MX records for gmail using linode-cli:

#!/bin/sh

linode-domain -a record-create -l "$1" -t MX -P 1 -R ASPMX.L.GOOGLE.COM.
linode-domain -a record-create -l "$1" -t MX -P 5 -R ALT1.ASPMX.L.GOOGLE.COM.
linode-domain -a record-create -l "$1" -t MX -P 5 -R ALT2.ASPMX.L.GOOGLE.COM.
linode-domain -a record-create -l "$1" -t MX -P 10 -R ALT3.ASPMX.L.GOOGLE.COM.
linode-domain -a record-create -l "$1" -t MX -P 10 -R ALT4.ASPMX.L.GOOGLE.COM.

Usage:

./script.sh example.com