

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
8 messages in net.sourceforge.lists.courier-sqwebmailRe: [sqwebmail] A problem with "From"...| From | Sent On | Attachments |
|---|---|---|
| Peter Burden | Nov 20, 2007 4:09 am | |
| Paweł Tęcza | Nov 20, 2007 4:45 am | |
| Peter Burden | Nov 20, 2007 5:18 am | |
| Paweł Tęcza | Nov 20, 2007 5:54 am | |
| Peter Burden | Nov 20, 2007 7:12 am | |
| Paweł Tęcza | Nov 20, 2007 7:29 am | |
| Peter Burden | Nov 20, 2007 7:39 am | |
| Paweł Tęcza | Nov 20, 2007 7:50 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread 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" address | Actions... |
|---|---|---|
| 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.
Looking at the create message screen this appears correctly at the top RH corner of the screen but under "From:" the default value in the input box is still "Peter Burden" <peterb@linux>
Next you can study a code of webmail/auth.c file (hint: myhostname()
function).
Good luck! :)
Pawel
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Courier-sqwebmail mailing list Cour...@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-sqwebmail







