Brian Candler wrote:
On Sat, Nov 04, 2006 at 09:31:37AM -0500, Sam Varshavchik wrote:
Looking at the code (newmsg.c where it execs SENDITSH), I think this
argument is set to login_returnaddr(). In that function, if the login name
doesn't contain "@" then the configured domain is appended by calling
myhostname(). Therefore, the MTA never has to add its own default domain.
Or
have I misread the code?
That's true, but myhostname() will return the system hostname, if all else
fails.
Indeed, but that is not the *MTA* adding its own configured default domain
name.
Also, the OP said that they had set sqwebmail's 'hostname' file, and that
the value they had put in there was being used by sqwebmail in the RFC2822
From: header (therefore they had put the file in the right place)
Because if I add @abbott-simses.com to $1 in sendit.sh I get this error
from exim in sqwebmail. So sqwebmail is adding the system hostname
(serval) and disregarding the hostname file I created.
exim: bad -f address "cjackson@ser...@abbott-simses.com": malformed
address: @abbott-simses.com may not follow cjackson@serval
Thanks.
Craig