Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Unable to send to local domains
PostPosted: 2013-05-23 13:22 
New user
New user

Joined: 2013-04-25 17:12
Posts: 10
Location: Germany
Hi,

I posted this already in General Discussions and got the info to better address this issue here.

I installed hMailServer to forward mails to another mailserver. We have a special local domain name "fax", which will be handled on the other mailserver. But I cannot send mails to addresses like "name@fax" at all. I get a "550" error:

Code:
MAIL FROM:hansotto@mail.de
250 OK
RCPT TO:012345@fax
550 A valid address is required.


The mail address 012345@fax is perfectly legal according to RFC standards! I tried the same on a postfix installation and do not get this error as expected.

Please also have a look at http://www.hmailserver.com/forum/viewtopic.php?f=7&t=24632 where I already checked the RFCs to validate my problem.

Thanks!


Top
 Profile  
 
 Post subject: Re: Unable to send to local domains
PostPosted: 2013-05-23 16:16 
Developer

Joined: 2010-04-24 23:16
Posts: 5873
Location: Michigan, USA
The issue is that hmail does not allow domains without a suffix so @fax or @localhost will not work. I posted a special experimental build for someone with that restriction turned off but not sure it'll ever make it into official releases.
Bill

_________________
hMailServer build LIVE on my servers: 5.4-B2014011501
Latest test builds: http://www.hmailserver.com/forum/viewtopic.php?f=10&t=21420
Urgent? Bored? JOIN US ON IRC!
DOGE ME: DSqtEcqP3Qv6Tj2XrGNpDmEUkSBcpBsuWk


Top
 Profile  
 
 Post subject: Re: Unable to send to local domains
PostPosted: 2013-05-23 16:51 
New user
New user

Joined: 2013-04-25 17:12
Posts: 10
Location: Germany
Well, I really wonder why this restriction (outside the RFC specs) was implemented in the first place.
So, there seems to be not much of a chance to get an official version working correctly anytime soon. What about your fix? Is it in one of the current experimental builds?

Thanks, Stephan!


Top
 Profile  
 
 Post subject: Re: Unable to send to local domains
PostPosted: 2013-05-23 17:21 
Developer

Joined: 2010-04-24 23:16
Posts: 5873
Location: Michigan, USA
MisterX wrote:
Well, I really wonder why this restriction (outside the RFC specs) was implemented in the first place.
So, there seems to be not much of a chance to get an official version working correctly anytime soon. What about your fix? Is it in one of the current experimental builds?

Thanks, Stephan!

No idea why it was done like it was in 1st place, would have to ask martin. I'd guess it was assumed a valid email address should follow patter user@domain.suffix as that's what the regex that determines if the address is considered valid or not.

No the change is not in the latest experimental. It was in just 1 special build:
Quote:
2013-01-25
*** SPECIAL BUILD - DO NOT USE UNLESS NEEDED ***
*** SPECIAL BUILD -DO NOT USE unless you want emails over 1MB delayed until after 9pm! ***
* Mod'd hmail regex to allow domains without suffixes such as localhost or workflow@noreply for MS Sharepoint services
* Block SPF +ALL special build patch removed


As you can see that was a few months ago and unless you want emails over 1MB delayed until 9pm you wouldn't want to use it. :D Quite a few changes have occured in hmail since then too so I probably need to post an updated build based on the latest & greatest with the change. If I recall the reason I didn't leave the change in the experimentals was because I wanted to confirm if it was RFC compliant and wasn't sure if it'd break anything for other people. (Unlikely it'd break anything but it could potentially allow more spam/viruses in since searching logs I found it blocked a lot of junk.)

I had been tempted to add an INI setting to allow people to define their own regex but didn't want to bother if no one would use it or if the change became permanent.
Bill

_________________
hMailServer build LIVE on my servers: 5.4-B2014011501
Latest test builds: http://www.hmailserver.com/forum/viewtopic.php?f=10&t=21420
Urgent? Bored? JOIN US ON IRC!
DOGE ME: DSqtEcqP3Qv6Tj2XrGNpDmEUkSBcpBsuWk


Top
 Profile  
 
 Post subject: Re: Unable to send to local domains
PostPosted: 2013-05-23 17:53 
Developer

Joined: 2010-04-24 23:16
Posts: 5873
Location: Michigan, USA
FYI I posted a new build based on latest code with the regex changed to not require suffix:
viewtopic.php?f=10&t=21420&p=131113#p131113

Quote:
2013-05-23 5.4-B2013052301
* Updated to B1949+ base
* Mod'd hmail regex to allow domains without suffixes such as localhost or workflow@noreply for MS Sharepoint services

_________________
hMailServer build LIVE on my servers: 5.4-B2014011501
Latest test builds: http://www.hmailserver.com/forum/viewtopic.php?f=10&t=21420
Urgent? Bored? JOIN US ON IRC!
DOGE ME: DSqtEcqP3Qv6Tj2XrGNpDmEUkSBcpBsuWk


Top
 Profile  
 
 Post subject: Re: Unable to send to local domains
PostPosted: 2013-05-24 15:01 
New user
New user

Joined: 2013-04-25 17:12
Posts: 10
Location: Germany
Thanks very much. I will try that out. Since we just need to store & forward mails I hope the alpha status of the software will not matter so much.

Regarding the RFCs: I think I read the RFCs correct (if you followed my original thread). The easiest way to see it is that there might be mail addresses on the Top Level Domains as well, like mail@com or mail@org. Although I don't know if anyone uses this.


Top
 Profile  
 
 Post subject: Re: Unable to send to local domains
PostPosted: 2014-01-11 08:20 
Developer

Joined: 2010-04-24 23:16
Posts: 5873
Location: Michigan, USA
Hey MisterX,
Just so you know I ended up adding INI setting to hmail to allow mail admin to set the valid email pattern regex. That way you can allow domains without suffix just by setting INI value & don't need to use that special build with ti hard-coded. I haven't posted it yet but will soon.
Bill

_________________
hMailServer build LIVE on my servers: 5.4-B2014011501
Latest test builds: http://www.hmailserver.com/forum/viewtopic.php?f=10&t=21420
Urgent? Bored? JOIN US ON IRC!
DOGE ME: DSqtEcqP3Qv6Tj2XrGNpDmEUkSBcpBsuWk


Top
 Profile  
 
 Post subject: Re: Unable to send to local domains
PostPosted: 2014-01-14 11:15 
New user
New user

Joined: 2013-04-25 17:12
Posts: 10
Location: Germany
Thanks for the info. Will this end up in a final release?


Top
 Profile  
 
 Post subject: Re: Unable to send to local domains
PostPosted: 2014-01-14 19:13 
Developer

Joined: 2010-04-24 23:16
Posts: 5873
Location: Michigan, USA
MisterX wrote:
Thanks for the info. Will this end up in a final release?

More than likely unless it causes problems. I need to get a test build up though for people to try out & give feedback

_________________
hMailServer build LIVE on my servers: 5.4-B2014011501
Latest test builds: http://www.hmailserver.com/forum/viewtopic.php?f=10&t=21420
Urgent? Bored? JOIN US ON IRC!
DOGE ME: DSqtEcqP3Qv6Tj2XrGNpDmEUkSBcpBsuWk


Top
 Profile  
 
 Post subject: Re: Unable to send to local domains
PostPosted: 2014-01-25 21:56 
Developer

Joined: 2010-04-24 23:16
Posts: 5873
Location: Michigan, USA
fyi posted up test build with the ini settings for this & MANY other changes if you want test it out:
viewtopic.php?f=10&t=21420

_________________
hMailServer build LIVE on my servers: 5.4-B2014011501
Latest test builds: http://www.hmailserver.com/forum/viewtopic.php?f=10&t=21420
Urgent? Bored? JOIN US ON IRC!
DOGE ME: DSqtEcqP3Qv6Tj2XrGNpDmEUkSBcpBsuWk


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 


Who is online

Users browsing this forum: No registered users and 3 guests



Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group