Thanks for your kind helps. I have a domain in registrar saying it’s foo.com. Registrar has the email forwarding feature, so u...@foo.com will be forwarded to my gmail.
I am not sure that, the registrar will forward email based on message header address or RCPT TO address? Yes I can setup rules on their management panel, such as u...@foo.com forward to l...@yahoo.com, u...@foo.com forward to te...@gmail.com. Thanks again. Henrik > > On 10-18-2021 4:31 am, Henrik Peng wrote: > > > > There are the domain registrars who have email forwarding for the > > user's domains. > > > > Do you know the forwarding happens against the "to:" address in the > > message's header, or in SMTP's talking session (the rcpt to: command)? > > > > I asked this question b/c I saw some mailing lists were not forwarded > > correctly. Those messages' "to:" addresses are the list address, so > > they were not forwarded by the rules setup by users. > > > > I am kind of confused by the question. Who/what is doing the forwarding, > domain registrars or users and where? If there are rules in postfix to > forward, redirect, rewrite the recipient then postfix will use the RCPT > TO address. If you are talking about users setting rules in sieve then > sieve uses the header "to:" address and has no knowledge of what info > was given during the smtp session commands. > > Are you talking about the registrar has example1.com forwarded to > example2.com at the DNS level? Doesn't that just mean a lookup for > example1.com is given the IP for example2.com? Which means the mail > server at example2.com is receiving an email addressed to > u...@example1.com? That depends on how postfix is configured to receive > mail for example1.com if at all. What do the logs show? What the email > rejected for relying or as unknown user? >