Mailproblem

Hi again Jeff

Typing hostname from the command line returns the correct, new hostname for the server so it's obviously setup OK-ish. Squirrelmail still shows the old hostname though when it gives the 550 error when trying to send an email.

Is there a setting somewhere else where it's getting this name from?

Thanks for your help

Jon
 
When you send email through the server (perhaps from your local email program, or from the mail command when logged in) as well does it come from the proper hostname?

If it's only squirrelmail giving you the problem then there's a setting somewhere in squirrelmail you'll need to change.

Jeff
 
When sending email from my local email program using the server as the SMTP server, the headers of the email only show the new server name so it looks like you could be right and that it's just a Squirrelmail thing.

In fact, I've just emailed a default account which normally bounces back and it's arrived in the mailbox correctly. Ha-ra!

It must be a Squirrelmail thing. Any ideas where the config files are?

Thanks again for your help

Jon
 
Hi again

Fixed it! There was a variable $domain in the squirrelmail config.php file and I've changed that and it's now all working.

There is still a problem though in that emails sent using Squirrelmail from the default mailbox of an account are from [email protected] rather than [email protected]. I've searched this forum to see how it can be modified but can't find anything.

Anyone know?

Cheers

Jon
 
This issue happens when connected directly to the IP

I just stuped over the same 550 error and the reason was this suspicios code in squirrel-mail

PHP:
/**
 * Default Domain
 *
 * The domain part of local email addresses.
 *   This is for all messages sent out from this server.
 *   Reply address is generated by $username@$domain
 * Example: In [email][email protected][/email], example.com is the domain.
 * @global string $domain
 */
$domain = $_SERVER['HTTP_HOST'];
while (sizeof(explode('.', $domain)) > 2) {
        $domain = substr($domain, strpos($domain, '.') + 1);
}
First it gets its name from the host request (in my case the IP-Address) and then it does always reduce it to <name>.<tld> (what a weird idea).

I will report this to squirrel-mail, as this seems to be a major restriction/bug. Or does this originate from Direct Admin?

K<o>
 
Last edited:
Aha :-)

Just got this reply!
Hello,

I believe our squirrelmail.sh does that. It looks like something from a long time ago, likely a quick solution to the issue.

Looks like a more current/correct solution is required.

Thank you,

John
--------------------------------------------------
DirectAdmin Web Control Panel
http://www.directadmin.com
 
hmmm it works

have to restart exim and go too the emai with

user.com/squirrelmail
not
server.com/squirrelmail

seen to work...
 
Back
Top