Skip to content

Managing Your Sender Signatures

Andrew Theken edited this page Dec 12, 2014 · 2 revisions

Postmark requires you to configure "Sender Signatures." Sender Signatures are email addreses that you have verified through a number of different methods. At a bare minimum, when a new Sender Signature is added to your account, an verification email is sent to that address, with a link requesting the recipient to authorize Postmark to send mail on their behalf. This process is very similar to the normal verification emails you get when you create accounts on websites like facebook and twitter. This verification step is helpful in ensuring a high delivery rates, and to prevent unauthorized parties from impersonating email addresses that they do not "own."

Postmark provides additional protections through industry standard "DKIM" and "SPF" protocols. Using these two systems will improve your email delivery rates when you configure them, however neither is required to manage your sender signatures.

The PostmarkAdminClient allows you to Create, Read, Update, and Delete Sender Signatures.

Creating a new Sender Signature:

var adminClient = new PostmarkAdminClient("<account token>");
var signature = await adminClient
	.CreateSignatureAsync("sender@example.com", "John Appleseed");

NOTE: You will need to follow the link in the verification email sent to sender@example.com in order to start using this sender signature.

Updating a Sender Signature:

var adminClient = new PostmarkAdminClient("<account token>");

var signatureId = 42;
var updatedSignature = await adminClient
    .UpdateSignatureAsync(signatureId, "Johnny Appleseed");

Getting a Single Sender Signature:

var adminClient = new PostmarkAdminClient("<account token>");

var signatureId = 42;
var signature = await adminClient
    .GetSignatureAsync(signatureId);

Getting a List of Sender Signatures:

var adminClient = new PostmarkAdminClient("<account token>");

var signatures = await adminClient
	.GetSenderSignaturesAsync();

foreach(var signature in signatures.SenderSignatures){
	Console.WriteLine(signature.EmailAddress);
}

Deleting a Sender Signature:

var adminClient = new PostmarkAdminClient("<account token>");

var signatureId = 42;
var result = await adminClient
	.DeleteSignatureAsync(signatureId);

if(result.Status == PostmarkStatus.Success){ /* Continue... */}
Clone this wiki locally