My situation is that I want my ubuntu server with postfix to forward system mail to my email address ([email protected] as below), using mailgun as an SMTP server (forwardingdomain.com as below).
I have configured virtual_alias_maps as follows:
@FQDNhostname [email protected]
along with smtp_generic_maps
@FQDNhostname [email protected]
When I send a test email, for example:
echo "This is a test email 12" | mail -s "Test Email 12" postmaster
I am getting an error in mailgun logs where To Address = [email protected], while also recipient = [email protected].
Huh?