Email addresses have @mail.(domain).com but should just be @(domain).com

I'm setting up a new Snow Leopard server and can't figure out why the email address isn't looking right. I'm total noob at this, so it's probably a very easy fix. I just used the GUI "Configure Mail Service" in Server Admin to setup the mail service. I created a user in Workgroup Manager. Then logged into WebMail and tested it out. I sent a message to my Yahoo email and a short while later it came through. But instead of showing test@(domain).com in the from: field, it showed test@mail.(domain).com. I replied to it and several minutes later (I'm guessing the greylisting thing is why it took so long) I was able to see it on my WebMail. But when I tried to send an email from my Yahoo account to test@(domain).com it didn't go through and I got a failure notice from Yahoo's mail server.

Main part was:
<tetst@(domain).com>:
(mail server's IP address) does not like recipient.
Remote host said: 554 5.7.1 <test@(domain).com>: Relay access denied
Giving up on (mail server's IP address).

Any help or tips would be greatly appreciated.

Thanks!

Intel iMac, Intel MacBook Pro, Mac OS X (10.6.2),  iPhone 3G 8GB

Posted on Apr 28, 2010 12:57 PM

Reply
10 replies

Apr 29, 2010 3:52 PM in response to Garner

Hi,

If this happens only with webmail (squirrelmail) then you have to edit the entry $domain in /etc/squirrelmail/config/config.php on your server via terminal.

It requires that your know how to handle the editor vi and of course using terminal on OS X.

Just startup terminal and enter vi /etc/squirrelmail/config/config.php
next step is to jump to the entry $domain and replace the hostname with your domainname.

Thats it.

Greetings
Eldrik

May 3, 2010 1:15 PM in response to foilpan

Sorry to add to this discussion but I have the same problem. However, mine is not on Webmail but on the main email accounts. Whenever I send to a mailing list for example mailgroup@confcast.net the email says mailgroup@server.confcast.net. I have had a quick look in the postfix main.cf file but couldn't see anything there.

Appreciate any advice here as it's a similar problem.

Thanks,

Jordan

May 12, 2010 1:06 PM in response to Jordan Millar

Jordan Millar wrote:
Found it!!! At least the answer to my question.

Couldn't find it anywhere inside Server Admin but stumbled across it elsewhere. You need to go to the link similar to this one. From there you can edit many things including the host name address.

http://mail.yourdomain.net/mailman/admin/

(You may have to change the http to https for your site.)

Jordan


Thanks for the info. Unfortunately I'm setting this server up offline (most of the time) so the website isn't pointing to it. It's still pointing to our current mail server that's running 10.4.11 Server. The settings look the same from what I can tell inside Server Admin and the main.cf file. I tried going to mailserver.local/mailman/admin (and variations of that) and couldn't get anything.

I also have to test if it's only webmail or if it also affects Mail.app users also.

May 17, 2010 7:47 AM in response to Garner

Well, I've got the new email server online and the link suggested by Jordan ( http://mail.mydomain.com/mailman/admin/) doesn't seem to work.

I attempted to change the /etc/squirrelmail/config/config.php file. When I updated the $domain = with my domain name in single 'quotes' (at first I didn't use the single quotes and the emails came through as myname@myhostnamecom.myhostname.com!) it worked correctly. 🙂

Thanks eldrik! Problem solved.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Email addresses have @mail.(domain).com but should just be @(domain).com

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.