9 messages in net.sourceforge.lists.courier-sqwebmailRe: [sqwebmail] Hostname file
FromSent OnAttachments
Craig JacksonNov 2, 2006 11:22 am 
Sam VarshavchikNov 2, 2006 3:19 pm 
Brian CandlerNov 3, 2006 12:16 am 
Brian CandlerNov 4, 2006 1:10 am 
Sam VarshavchikNov 4, 2006 6:31 am 
Brian CandlerNov 5, 2006 12:24 am 
Craig JacksonNov 5, 2006 4:27 am 
Brian CandlerNov 5, 2006 2:32 pm 
Craig JacksonNov 5, 2006 5:18 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [sqwebmail] Hostname fileActions...
From:Sam Varshavchik (mrs@courier-mta.com)
Date:Nov 4, 2006 6:31:14 am
List:net.sourceforge.lists.courier-sqwebmail

Brian Candler writes:

On Thu, Nov 02, 2006 at 06:20:12PM -0500, Sam Varshavchik wrote:

Craig Jackson writes:

I have created the hostname file so that the domain on outgoing email is correct. However, the mail from: domain continues to be the host name of the server. Mail is being bounced by servers that perform DNS lookups. Why would sqwebmail do this? How do I fix this?

The return address is set based on the login address. If you are using system accounts, the login address does not return a domain, so your mail server will use its own default for the return address, and that's what you need to reconfigure.

You mean, when sqwebmail invokes sendit.sh:

exec @mailer@ $DSN -f "$1"

that sqwebmail sets $1 to "username" and not "username@<hostname-setting>" ?

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.