MX, SMTP, POP, records

bluestrobe

Platinum Member
Aug 15, 2004
2,033
1
0
I am trying to setup a email server on my network The server is on a static IP with the SMTP and POP pass through rules set on the router (D-Link DFL-200). Anyways, I installed hMailServer and set it up the best I could with the instructions. I went to my domain name company and had the following forwarded to my wan IP "smtp.domain.com, pop.domain.com." I also did the same for the MX records along with "mail.domain.com" as suggested on the web site.

When sending out a email via Outlook Express, I get the following error:

The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'test@gmail.com'. Subject 'test', Account: 'me@domain.com', Server: 'smtp.domain.com', Protocol: SMTP, Server Response: '553 sorry, relaying denied from your location [XX.XX.XXX.XXX] (#5.7.1)', Port: 25, Secure(SSL): No, Server Error: 553, Error Number: 0x800CCC79

and just trying to synch with the account gets me this error after it prompts me for the UN/PW and rejecting anything I put in:

There was a problem logging onto your mail server. Your Password was rejected. Account: 'me@domain.com', Server: 'pop.domain.com', Protocol: POP3, Server Response: '-ERR authorization failed', Port: 110, Secure(SSL): No, Server Error: 0x800CCC90, Error Number: 0x800CCC92

As for the setup in Outlook, I just have user name (full email address), password, and pop.domain.com and smtp.domain.com entered in the proper fields. I do not any of the special features checked.

Obviously something is wrong, any suggestions on what it might be or what direction I might take to solve this issue?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
The first is your server telling you that you can't relay through it, you need to figure out how to tell it to let your internal network range relay mail through it. The second is it telling you that you can't login, you need to verify your username/password in the mail system if they're separate from the OS accounts.
 

bluestrobe

Platinum Member
Aug 15, 2004
2,033
1
0
The username/password are separate from my computer accounts. I know I've entered it right when prompted but it rejects me every time. As for the relaying part, I'll have to research that since I couldn't find anything reegarding relaying in the software except for relaying to another port on the network. This is a complete headache.
 

bluestrobe

Platinum Member
Aug 15, 2004
2,033
1
0
I tested the server and I can send emails out through my web site as a local host but I still can't connect remotely. Anyone ever used this server software before?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Nope. Generally you just specify hosts or network ranges that are allowed to relay and it just works. There are more complicated setups possible with things like SMTP AUTH but I doubt you want to go that route right now. From a quick look at their docs it looks like all you might have to do is add an appropriate "IP range" and tell it to allow relaying from that range.

I just looked up SMTP error 553 and it's "mailbox name not allowed" so it looks like both issues could stem from the one account problem.
 

bluestrobe

Platinum Member
Aug 15, 2004
2,033
1
0
I have set the IP range as my wan IP and one as the localhost IP. I have my SMTP host set to mail.domain.com. As of now, I can log in and check the mail in the email account on the server. However, I can not send email to it and when I do I get the following error in the email that gets bounced back:

Delivery to the following recipient failed permanently:

me@domain.com

Technical details of permanent failure:
PERM_FAILURE: SMTP Error (state 13): 530 SMTP authentication is required.

Sending an email with me@domain.com through outlook express gives me the following error:

The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'me@gmail.com'. Subject 'test', Account: 'test account', Server: 'smtp.domain.com', Protocol: SMTP, Server Response: '530 SMTP authentication is required.', Port: 25, Secure(SSL): No, Server Error: 530, Error Number: 0x800CCC79

So I have made some progress but not much for today.
 

bluestrobe

Platinum Member
Aug 15, 2004
2,033
1
0
Another dumb question. When setting up domains (hosts, not MX records), should I make "smtp.domain.com", "mail.domain.com" and "pop.domain.com" and have them directed to the wan IP or is this wrong/unnecessary?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
You have SMTP auth required for relaying, that's probably not what you want.

You can setup the hostnames however you want, it doesn't matter.
 

bluestrobe

Platinum Member
Aug 15, 2004
2,033
1
0
I fixed the issue above. I went to the vendor web site and got on their forums. The biggest issue right now is trying to get emails to reach hotmail/msn customers since their servers are viewing me as spam. I was told to visit this web page to resolve it but haven't figured out the root issue on my end yet.

http://www.hmailserver.com/doc...ges_to_specific_server
 

skyking

Lifer
Nov 21, 2001
22,889
6,054
146
Without a reverse DNS (PTR) record, you will likely face the same spam server issues with many mailservers. I've had qwest and a small local ISP make the necessary record on their DNS server, but not all ISP's will do it.
 

bluestrobe

Platinum Member
Aug 15, 2004
2,033
1
0
I have a screen shot of how my domain name records are set up. Anyone mind taking a look at them and letting me know what is wrong? I don't want to post them here though. PM me if you want to help. My knowledge of domain name records is about as advanced as setting up the domain name to point to an IP.
 

bluestrobe

Platinum Member
Aug 15, 2004
2,033
1
0
I made my mind up, I'm done messing with setting up a mail server. I'll be looking for a remote/external server. Thanks for the help everyone.