Squirrelmail from domain

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
joelmoss
Forum User
Forum User
Posts: 10
Joined: Thu Apr 28, 2005 4:58 am

Squirrelmail from domain

Unread post by joelmoss »

i thought this was fixed in the latest version, but I have the latest version 1.4.4-4 but still my clients are complaining that when sending mail it displays it as from user@servername.com instead of user@usersdomain.com. so when the recipient replies to the mail, it gets sent to user@servername.com instead of user@usersdomain.com

Is anyone else still having this problem and if so, how do I fix it?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

You'll probably see that the newer config.php is sitting in there as config.php.rpmnew. Just mv that to config.php and you should be fine
joelmoss
Forum User
Forum User
Posts: 10
Joined: Thu Apr 28, 2005 4:58 am

Unread post by joelmoss »

No I already checked the config. There is no config.php.rpmnew. What options do I need to change?
joelmoss
Forum User
Forum User
Posts: 10
Joined: Thu Apr 28, 2005 4:58 am

Unread post by joelmoss »

*bump* is no-one else having this problem?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

the config.php is where that gets set, so if you dont have one, then something is horribly horribly wrong. Dogs and cats, living together... mass hysteria!
joelmoss
Forum User
Forum User
Posts: 10
Joined: Thu Apr 28, 2005 4:58 am

Unread post by joelmoss »

config.php exists, but what option to set as I am using Squirrelmail with Plesk. The config.php file can't be set to one domain, as multiple domains are used.
joelmoss
Forum User
Forum User
Posts: 10
Joined: Thu Apr 28, 2005 4:58 am

Unread post by joelmoss »

so am I right in saying that this version of squirrelmail does not work with Plesk?
jclawson
Forum User
Forum User
Posts: 21
Joined: Fri Feb 18, 2005 5:42 am

Unread post by jclawson »

I am having this problem as well. There is no rpmnew config file after the upgrade. Can you post what the config.php file should be?
jclawson
Forum User
Forum User
Posts: 21
Joined: Fri Feb 18, 2005 5:42 am

Unread post by jclawson »

Ahhh! ok... the file /usr/share/squirrelmail/config/config.php is a symbolic link to /etc/squirrelmail/config.php... the config.php.rpmsave is in /etc/squirrelmail :-D

although... the rpmsave is the exact same file as config.php...

To fix the problem add the following to config_local.php

preg_match("/^(http:\/\/)?([^\/]+)/i", $_SERVER["HTTP_HOST"],$matches);
$host = $matches[2];
preg_match("/[^\.\/]+\.[^\.\/]+$/", $host, $matches);
$domain = $matches[0];
Post Reply