Of course, sorry my reply wasn't clear but that was understood, however I do very much appreciate that you clarified this.
Just to clarify things a bit more, here's how you can change the "From: " address using plain
Make sure that you give a valid from address so that rejected emails can be seen.
Send mail with your Gmail address:
$ mail firstname.lastname@example.org -f email@example.com
Now, if you check your
your-company.com emails you may, or may not , see the mail sent with your Gmail address. The
your-company.com email server (MTA) can:
a) Accept the mail for delivery (valid domain, even if coming from a non-domain address)
b) Accept, but, force a delay (reason: valid domain, but, comes from a non-domain address). In this case, your local MTA,
postfix, will keep the mail in queue, and retry after the grey-listing delay.
c) Reject outright (reason: valid domain, but, comes from a non-domain address: Looks like Spam, spam, spam, lovely spaaam).
d) Accept it, then chuck it away quietly.
In cases a) & b) the message might end up in a
Spam folder instead of the
-f email-addr option (which is actually an MTA option), all mail servers will simply reject the message--what the heck is
Try these tests, if you care:
$ mail firstname.lastname@example.org -f email@example.com
Gmail will reject outright. Check on Yahoo for rejection.
$ mail firstname.lastname@example.org -f email@example.com
Yahoo will accept, but, drop the message into
$ mail firstname.lastname@example.org -f email@example.com
Here, the rejection message itself will be rejected. Who, then, gets that message?--Exercise left for reader.
Given all these problems, you can see why I suggested configuring and using modern MUAs like