Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email firstname.lastname@example.org
From: Walt Park (waltparkgmail.com)
Date: Sat Mar 28 2009 - 10:39:32 CDT
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.
On Sat, Mar 28, 2009 at 10:01 AM, Sahil Tandon <sahiltandon.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 roothost.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 'rootdomain.com'.
> Odd that host.domain.com is invalid while domain.com is OK. Please
> more information like the output of 'postconf -n' (see DEBUG_README),
> and in the meantime read:
> Sahil Tandon <sahiltandon.net>