Send mail from file
cat /home/varac/projects/email/testmails/wrong-cc.eml | sendmail -t
Swaks
export FROM=varac@dev.bitmask.net; export TO=varac@dev.bitmask.net
swaks -f $FROM -t $TO --body .gtube
Test TLS
swaks -f $FROM -t $TO --tls
Special chars
swaks -f $FROM -t $TO \
--header "Content-Type: text/plain; charset='utf-8'\nSubject: special char test: öäüß@øñ€" \
--body "special char body test: öäüß@øñ€"
Use smtps port
swaks -f $FROM -t $TO --tlsc
Attachment
swaks -f $FROM -t $TO --attach ~/leap/mail/random_10mb.img
smtp auth and tlsc
swaks -f $FROM -t $TO --tlsc -au varac -ap xxx
swaks --to $TO --from $FROM --auth LOGIN --auth-user $FROM --server mail.example.org \
--protocol SSMTP -4
Postfix Stresstest
20 connections in parallel, 50kB each, 100 mails = 5mB total:
time smtp-source -s 20 -l 51200 -m 100 -c -f $FROM -t $TO localhost:25
Sendmail
echo -e "From: ${FROM}\nTo: ${TO}\nCc: {CC}\nSubject: subj\n\nbody" | sendmail -f $FROM $TO
SendEmail
echo test | sendemail -f $FROM -t $TO,$CC