PDA

View Full Version : Getting 550 user unkown mail error on newly install


Paul
09-28-2007, 07:59 AM
If you get something similar to the message below on a new install after you have created an account check the hostname on the machine.

Sep 28 08:29:31 somewhere courieresmtpd: error,relay=::ffff:192.168.9.4,from=<yummy@somewhere.com>,to=<love@myserver.com>: 550 User unknown.

Your machine cannot have the same hostname as an account that you have created. So if your machine is named myserver.com and you create an account with the domain name myserver.com you will get a 550 error when sending to any of the email accounts because courier is attempting to deliver to a system account because the server has the same name as the account.

We always suggest naming your server something descriptive. For instance if you are building a general purpose web server name the server something like web.myserver.com. Another example would be if you are building a mail server name the server something specific purpose like mail.myserver.com. Obviously you can name a server anything that you would like ie: myfavoritething.myserver.com will work as well.

To change the hostname on your server follow the steps below.

Step 1:
# hostname myfavoritething.myserver.com

Step 2.
Open the file /etc/sysconfig/network in your favorite editor and modify the file.
# vi /etc/sysconfig/network

* If you want to use a gui you can simply type "setup" and follow the menus.

Step 3:
Restart your mail service and rebuild your mail databases.
/usr/local/dsm/scripts/fixmail

As always if have any problems submit a support request. http://support.zervex.com