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:Brian Candler (B.Ca@pobox.com)
Date:Nov 3, 2006 12:16:26 am
List:net.sourceforge.lists.courier-sqwebmail

On Thu, Nov 02, 2006 at 01:23:13PM -0600, Craig Jackson wrote:

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?

Almost certainly this isn't sqwebmail's fault, but your MTA's. For many MTAs, if the uid which invokes the MTA is not a "trusted" user then it will not be able to override the return mail (MAIL FROM).

Try this yourself: login as one of your mail users (or as the virtual mailbox user if all the mailboxes are owned by the same UID) and type:

sendmail -v -f "yo@domain.com" some@elsewhere.com ... type a message .

You should see that the same problem occurs:

MAIL FROM:<ui@hostname.domain.com>

If it doesn't, paste the full exact output of what you typed here.

If it does, then you know the problem is MTA configuration. How to change that depends on your MTA. For example, in exim you need to look for the "trusted_users" and/or "trusted_groups" options.

HTH,

B.