Obambu

From miki
Revision as of 20:59, 29 September 2024 by Mip (talk | contribs) (Created page with "Obambu (https://obambu.com) is our new email server for domain '''immie.org'''. == Tips == === Send emails to test mail filters === This use <code>sendmail</code> from postfix: <source lang="bash"> #!/bin/bash # Send the email # We test both bare address and address with name ("ABC" <abc@xyz.com>). send_mail() { recipient=$1 filter=$2 echo recipient: $recipient / filter: $filter /usr/sbin/sendmail -t <<EOF From: michael.peeters@noekeon.org To: $reci...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Obambu (https://obambu.com) is our new email server for domain immie.org.


Tips

Send emails to test mail filters

This use sendmail from postfix:

#!/bin/bash

# Send the email
# We test both bare address and address with name ("ABC" <abc@xyz.com>).
send_mail()
{
    recipient=$1
    filter=$2

    echo recipient: $recipient / filter: $filter

    /usr/sbin/sendmail -t <<EOF
From: michael.peeters@noekeon.org
To: $recipient
Subject: Test email for filter: $filter

This is a test email to check that the filter
at server level works correctly.

If this mail shouldn't be sent to you, tell me ;-)

Test email for filter: $filter
EOF

    /usr/sbin/sendmail -t <<EOF
From: michael.peeters@noekeon.org
To: "Some Name Here" <$recipient>
Subject: Test email for filter: $filter

This is a test email to check that the filter
at server level works correctly.

If this mail shouldn't be sent to you, tell me ;-)

Test email for filter: $filter
EOF
}

prefix="mpe."; send_mail "${prefix}anything@immie.org" "starts with $prefix"
prefix="mip."; send_mail "${prefix}anything@immie.org" "starts with $prefix"