8 messages in net.sourceforge.lists.courier-sqwebmailRe: [sqwebmail] A problem with "From"...
FromSent OnAttachments
Peter BurdenNov 20, 2007 4:09 am 
Paweł TęczaNov 20, 2007 4:45 am 
Peter BurdenNov 20, 2007 5:18 am 
Paweł TęczaNov 20, 2007 5:54 am 
Peter BurdenNov 20, 2007 7:12 am 
Paweł TęczaNov 20, 2007 7:29 am 
Peter BurdenNov 20, 2007 7:39 am 
Paweł TęczaNov 20, 2007 7:50 am 
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] A problem with "From" addressActions...
From:Peter Burden (pete@gmail.com)
Date:Nov 20, 2007 7:12:24 am
List:net.sourceforge.lists.courier-sqwebmail

On 20/11/2007, Paweł Tęcza <pte@uw.edu.pl> wrote:

"Peter Burden" <pete@gmail.com> writes:

On 20/11/2007, Paweł Tęcza <pte@uw.edu.pl> wrote: Hi Peter,

I hope that following command helps you:

sudo sh -c 'echo "ptwol.net" > /etc/courier/defaultdomain'

If a place of your Courier configuration is different, then fix the command, of course :)

OK - checked that, the file, on my installation is at /usr/lib/courier/etc/defaultdomain and is already set to " ptwol.net " So presumably "sqwebmail" isn't reading this file, so did I do something wrong configuring "sqwebmail" or in building "sqwebmail" [I normally compile packages from source.]

Do do have any experiences with programming in C language? If so, then firstly please check a path to defaultdomain file in webmail/htmllibdir.h file:

grep HOSTNAMEFILE webmail/htmllibdir.h

Found this and it says #define HOSTNAMEFILE "/usr/lib/courier/etc/defaultdomain"

[as I'd expect]

had a quick look at the my_hostname() function code and that also looks quite OK. Also tried shutting down all the Courier software, clearing the browser cache and restarting to no effect.

Also found a file called /usr/lib/courier/etc/webadmin/added/defaultdomain, this also said "ptwol.net" [Had to set a symlink from /usr/lib/courier/etc/aliases to this region before aliases created in webadmin were handled by makealiases !]

I've hacked a few "syslog()" calls into auth.c and from the log can positively confirm that it is reading "ptwol.net" from the defaultdomain file and that the value returned from auth.c's login_returnaddr() is pet@ptwol.net as it should be.

Next you can study a code of webmail/auth.c file (hint: myhostname()

function).

Good luck! :)