>Hi all,
>       Another issue from the newbie.  I have sqwebmail running pretty much the
>way that I want it; however, I noticed one error that is driving me crazy.
>My qmail server is set up such that all of the "local" users (e.g. on my
>LAN) use it as an SMTP relay and as a POP-3 host.  So, any time a local
user
>sends a message (say, with Outlook), the message goes out with a FROM
header
>that looks like this:
>
>FROM: [EMAIL PROTECTED]
>
>This is fine - exactly what I want.  HOWEVER, when I use the webmail
>interface, the FROM header looks like this:
>
>FROM: [EMAIL PROTECTED]
>
>This is a bad thing (as I found out the hard way) because my mail server
and
>firewall are not set up to accept mail for the domain mail.xxxx.com;
>therefore, when I send a message with via sqwebmail and someone replies,
the
>reply gets bounced.
>
>Now, I read the INSTALL file and found that the configuration file
>/usr/local/share/sqwebmail/hostname is supposed to fix this very problem:
><snip>
>   /usr/local/share/sqwebmail/hostname - when SqWebMail is installed with
>   a  basic  configuration for a single domain, SqWebMail sets the domain
>   in  the  return  address  for  outgoing messages to the defined system
>   hostname.  If  this file exists it will be used instead of the defined
>   system hostname.
><snip>
>
>My mail server's defined hostname is "mail.xxxx.com"; that explains the
FROM
>header that I didn't like.
>
>So, I created /usr/local/share/sqwebmail/hostname with one line:
>xxxx.com
>
>I notice that when I log in via sqwebmail, the banner at the top of the web
>page has now changes to read [EMAIL PROTECTED] (it used to read
>[EMAIL PROTECTED]), but when I compose a message, the FROM field still
says
>[EMAIL PROTECTED]
>
>I tried modifying my /etc/host file to remove the mail.xxxx.com entry
>(replaced it with just xxxx.com) but this did not help either.
>
>Of course, I can edit the FROM field every time I compose an email message,
>but that is cumbersome, and eventually I'd forget to do it.  So, is there
>another solution?

OK, I came up with A solution, but I am not sure (a) which part of it is the
actual solution (b) why it worked (c) why the
/usr/local/share/sqwebmail/hostname file does not work as advertised.

Anyway, here is the solution I came up with
(1) create the /usr/local/share/sqwebmail/hostname file with my hostname
(e.g. xxxx.com)
(2) in /etc/sysconfig/network, I changed the HOSTNAME field from
mail.xxxx.com to xxxx.com
(3) rebooted the server

This STILL did not solve the problem, so I went into my home directory on
the mail server (e.g. /home/jmurray) and grep'd all of the files for the
string 'mail.xxxx.com'.  Guess what?  I found that the file
Maildir/sqwebmail-config (which appears to be the user's individual
preferences) contained this entry
'FROM="Jason+20Murray"+20<[EMAIL PROTECTED]>.  Once I fixed that entry
(by changing mail.xxxx.com to xxxx.com), the problem went away.  This FROM
entry in the sqwebmail-config file is not configurable from the
"Preferences" page of the sqwebmail interface; thus it looks like once it
gets set, it stays that way forever (unless you hand-edit the
sqwebmail-config file like I did).

Now, I created a new test user and logged in as it via sqwebmail; I found
that when composing messages, the FROM field was now [EMAIL PROTECTED], as
I want.  I do not know if modifying the /etc/sysconfig/network file made
sqwebmail set the FROM entry in testuser1's sqwebmail-config file or not.

Has anyone else had any experience in this area that they can comment on?

Thanks,
Jason


Reply via email to