mail is not postfix. When you send something through mail/mailx you are using a smtp client, that will add whatever formatting it's configured to do. It's not really different from using outlook, eudora, mutt, etc. You pass some stuff to the client, the client wraps it up, and sends it through whatever mail service it's configured for.
When you telnet 25, you are passing directly to postfix. Either way, the stuff added in the from either from the telnet or from the mail, is because you are not sending a complete/properly formatted message, and whatever is sending, is adding what it thinks you need as a courtesy. If you want mail/mailx to append envelope/header info with something specific, rather than default host.domain.com, you might be able to do with with .mailrc or /etc/mail.rc, which can alter the behavior of mail. Good luck. Walt On Sat, Mar 28, 2009 at 10:01 AM, Sahil Tandon <sa...@tandon.net> wrote: > On Sat, 28 Mar 2009, Robinson, Eric wrote: > > > On my postfix server, when I send to outside users using the 'mail' > > command, the remote mail server rejects the messages with an 'unknown > > domain' error because they are coming from r...@host.domain.com. > > Is host.domain.com the FQDN of your Postfix server? Why is it an invalid > internet address? > > > However, if I telnet to postfix locally and submit the message using > > 'mail from:root' (no domain specified) then the messages go through fine > > and on the remote mailserver they appear to come from 'r...@domain.com'. > > Odd that host.domain.com is invalid while domain.com is OK. Please > provide > more information like the output of 'postconf -n' (see DEBUG_README), > and in the meantime read: > http://www.postfix.org/postconf.5.html#masquerade_domains > > -- > Sahil Tandon <sa...@tandon.net> >