Skip to content

Latest commit

 

History

History
279 lines (197 loc) · 6.11 KB

README.md

File metadata and controls

279 lines (197 loc) · 6.11 KB

Marketing tools

https://www.getdrip.com/features

Outlook 2013

  • Root: "Inbox"
  • To recognize standard folder names delete .pst/.ost file after account setup
  • Fix folder subscription, see: ${D}/mail/courier-outlook-subscribe-bug.sh (Outlook 2007)

MacOS Mail.app

Advanced/IMAP Path Prefix: "INBOX"

Open winmail.dat

https://github.com/Yeraze/ytnef

See: ${D}/repo/debian/pool/main/y/ytnef/

MIME type: application/ms-tnef

Set up Google Apps mailing

https://toolbox.googleapps.com/apps/checkmx/

Mail account migration

Send all messages in an mbox file to an email address

See: ${D}/mail/mbox_send2.py

Email sending and receiving

  • SSL?
  • headers: From, from name, To, Reply-to, Return-path, SMTP "MAIL FROM:"

Courier catchall address

http://www.courier-mta.org/makehosteddomains.html http://www.courier-mta.org/dot-courier.html

echo "|pipe/command" > /var/mail/domain.net/user/.courier-foo-default

IMAP PLAIN authentication

D0 CAPABILITY D1 AUTHENTICATE PLAIN echo -en "\0USERNAME\0PASSWORD" | base64 D2 LOGOUT

Email forwarding (srs)

Build Courier SRS

apt-get install -y build-essential libsrs2-dev libpopt0
git clone https://github.com/szepeviktor/couriersrs
cd couriersrs
./configure --sysconfdir=/etc
make
make install

See package: http://szepeviktor.github.io/

Create users SRS0 and SRS1.

echo "|/usr/bin/couriersrs --reverse" > /etc/courier/aliasdir/.courier-SRS0-default
echo "|/usr/bin/couriersrs --reverse" > /etc/courier/aliasdir/.courier-SRS1-default

Set up SRS secret

./couriersrs -v
pwgen 30 1 > /etc/srs_secret

Add forwarding alias

user: |/usr/bin/couriersrs username@external-domain.net

Kitchen sink (drop incoming messages)

See the description of /etc/courier/aliasdir in man dot-courier DELIVERY INSTRUCTIONS

echo > /etc/courier/aliasdir/.courier-kitchensink

Add alias: ANY.ADDRESS@ANY.DOMAIN.TLD: kitchensink@localhost

Spamassassin test and email authentication

sudo -u daemon -- spamassassin --test-mode -D < msg.eml

# For specific tests see: man spamassassin-run
sudo -u daemon -- spamassassin --test-mode -D dkim < msg-signed.eml

opendkim -vvv -t msg-signed.eml

Sender ID (From:)

SPF (HELO, MAIL FROM:)

DKIM

ADSP

An optional extension to the DKIM E-mail authentication scheme.

https://unlocktheinbox.com/resources/adsp/

Domain Keys

Deprecated.

SenderID

?

DMARC

Specs: https://datatracker.ietf.org/doc/draft-kucherawy-dmarc-base/?include_text=1

http://www.returnpath.com/solution-content/dmarc-support/what-is-dmarc/

Bulk mail

Body parts
  • Descriptive From name "Firstname from Company"
  • Descriptive subject line
  • Short preview line at top of the message
  • Link to online version (newsletter archive)
  • Short main header line
  • Subheader lines
  • Sections: image + title + description + call2action https://litmus.com/subscribe
Footer
  • Sender's contact details (postal address, phone number)
  • Who (name, email address, why) is subscribed
  • Unsubscribe link
Email headers
Others

Email templates

Email tests

White lists

RBL-s (DNSBL)

List of blacklists: https://mxtoolbox.com/problem/blacklist/

Anti-abuse's list: http://www.anti-abuse.org/

bl.spamcop.net
cbl.abuseat.org
b.barracudacentral.org
dnsbl.sorbs.net
http.dnsbl.sorbs.net
dul.dnsbl.sorbs.net
misc.dnsbl.sorbs.net
smtp.dnsbl.sorbs.net
socks.dnsbl.sorbs.net
spam.dnsbl.sorbs.net
web.dnsbl.sorbs.net
zombie.dnsbl.sorbs.net
dnsbl-1.uceprotect.net
dnsbl-2.uceprotect.net
dnsbl-3.uceprotect.net
pbl.spamhaus.org
sbl.spamhaus.org
xbl.spamhaus.org
zen.spamhaus.org
bl.spamcannibal.org
psbl.surriel.com
ubl.unsubscore.com
rbl.spamlab.com
dyna.spamrats.com
noptr.spamrats.com
spam.spamrats.com
cbl.anti-spam.org.cn
cdl.anti-spam.org.cn
dnsbl.inps.de
drone.abuse.ch
httpbl.abuse.ch
korea.services.net
short.rbl.jp
virus.rbl.jp
spamrbl.imp.ch
wormrbl.imp.ch
virbl.bit.nl
rbl.suresupport.com
dsn.rfc-ignorant.org
ips.backscatterer.org
spamguard.leadmon.net
opm.tornevall.org
multi.surbl.org
ix.dnsbl.manitu.net
tor.dan.me.uk
rbl.efnetrbl.org
dnsbl.dronebl.org
access.redhawk.org
db.wpbl.info
rbl.interserver.net
query.senderbase.org
bogons.cymru.com
csi.cloudmark.com

Check RBL-s

cat anti-abuse.org.rbl|xargs -I%% host -tA $(revip "$IP").%% 2>&1|grep -v "not found: 3(NXDOMAIN)"

Trendmicro ERS

wget -qO- --post-data="_method=POST&data[Reputation][ip]=${IP}" https://ers.trendmicro.com/reputations \ | sed -n 's;.*<dd>\(.\+\)</dd>.*;\1;p' | tr '\n' ' '

Response: "IP Unlisted in the spam sender list None"