Customized email address


Goal: setup me@riowing.net and forward to RioCnC@gmai.com
done by MTA postfix

Steps:
Domain server: point MX record to riowing.net
OS: user rio must exist since me@riowing.net is alias of rio@riowing.net
Email server: AWS EC2 named riowing.net, Ubuntu18
Install postfix: apt-get install postfix
Config:
vi /etc/postfix/main.cf
add this line: myhostname = riowing.net
virtual_alias_domains is not involved here since no virtual domain
vi /etc/aliases
add this line: me: rio
run this: sudo postmap /etc/postfix/virtual
create this file: sudo vi /etc/postfix/virtual
add this line: rio@riowing.net RioCnC@gmail.com
run this: sudo newaliases
Check status:
#service postfix status
#netstat -ltnp | grep 25
AWS:
contact AWS support to unblock outgoing port 25, which is blocked by default.
open incoming port 25 from security group.
Notes: IMAP and POP3 are not configured since emails are forwarded to gmail.
Debugging:
Telnet to port 25 and watch response to commands such as “RCPT TO”
log files: /var/log/mail.log and mail.err
restart server: sudo service postfix restart or reload

email

AWS fails to Redirect emails, and there is no cure


I asked SES (Amazon Simple Email Service) to Redirect(instead of forward) my emails to Gmail.

It works most of the time, but fails redirecting emails from Framos.com, who makes GeniCam cameras for us.

Here is the error message:”This message was not eligible for redirection because the sender was not authorized according to the published SPF record”

When I googled this message, two items showed up, but both unanswered.

This failure is a result of fighting email spoofing. Here is my explanation, in an intuitive way.

Framos tells the world (by SPF) who is allowed to send email for him.

(decent servers respect his request, such as SES)

Since Framos doesn’t list SES on his list, SES doesn’t send (same as redirect) his email to me.

Redirection failed by design, and nothing can be done to fix this.

I expect when more domains publish SPF, more emails will fail to redirect.

Extra notes:

Redirecting is different from forwarding.

When SES “forward” Framos’s email to me, and I hit Reply button, I am replying to my SES address, instead of Framos.

With “redirect”, I reply to Framos, which is what I wanted.