I've set up postfix to be a mail server on my linode VPS. My intent is to have an account for
user@mydomain.org for each user account on the server. These email accounts should be able to both send and recieve.
Currently, I can send email when ssh'ed into my server. I can do this either via local telet or from mutt.
I can also recieve external emails successfully, but *only* if they are from a remote telnet. For example, if from my home computer I use 'telnet mail.mydomain.org 25' I can create and send an email that arrives in my user account's Maildir on the server. However, when I send an email from mutt on my home computer to
myuser@mydomain.org it doesn't arrive. I get the following lines in my `systemctl -l status postfix` output for which I've currently obscurred some actual URLs/emails, but this was for an email sent from my university email account (here
My.Account@university.edu) to my user on my linode vps (here
myuser@mydomain.org).
Code:
Jul 21 07:47:39 astro postfix/smtpd[5739]: connect from mailserver03.university.edu[146.189.144.106]
Jul 21 07:47:39 astro postfix/smtpd[5739]: NOQUEUE: reject: RCPT from mailserver03.university.edu[146.189.144.106]: 454 4.7.1 <myuser@liXXXX-XXX.members.linode.com>: Relay access denied; from=<My.Account@university.edu> to=<myuser@liXXXX-XXX.members.linode.com> proto=ESMTP helo=<mailserver04.university.edu>
Jul 21 07:47:40 astro postfix/smtpd[5739]: disconnect from mailserver03.university.edu[146.189.144.106] ehlo=1 mail=1 rcpt=0/1 data=0/1 rset=1 quit=1 commands=4/6
Despite having a valid reverse DNS and MX entry - which has been confirmed by countless online tools and by successful telnet to mydomain.org, the entry on the second line shows the "to" address as
myuser@liXXXX-XXX.members.linode.com (where the X's are numbers). Where is this address coming from? I understand why my postfix smtp server is rejecting these incoming emails as liXXXX-XXX.membsers.linode.com is not one of the entries for $mydestination. But where, why, and how is the to address getting changed from
user@mydomain.org to
user@liXXXX-XXX.memers.linode.com?