Page 1 of 1

Sned email using external account

Posted: 2011-06-25 08:56
by amsbas
Hi guys,

I'm new with hmail, and I read most documents in the site but I didn't find what I'm looking for.

I already install stand-alone hmailserver with local domain (test.local) I don't have internet domain everything is going fine I can send email from (user1@test.local) to (user2@test.local)

Then I create external account for each user:
(user1@gmail.com) with account (user1@test.local)
(user2@gmail.com) with account (user2@test.local)

The pop3 is downloading good and each user getting his email normally.

Now what I need is to send emails from local account using external account to any internet email for example:

(user1@test.local) want to send email to (test1@hotmail.com) so (test1@hotmail.com) should receive email from (user1@gmail.com)

Please help me guys I hope it's possible to do it.

Re: Sned email using external account

Posted: 2011-06-25 11:36
by dzekas
You don't need hacks with non existing local domains, if you want to send emails from external account to external account in your email server. Setup IP range for your workstation IP address and allow external-to-external deliveries without authentication in hMailServer administrator utility. Make sure that don't do that for Internet range. Only selected IP addresses must be able to relay mail without authentication.

Re: Sned email using external account

Posted: 2011-06-25 16:34
by amsbas
Actually I didn’t get it, but the client doesn’t have internet in their workstations and I want to keep them like this for some reasons also I want them to email each other’s internally even if there is no internet.

If your idea same as I need please give me more explanation.

Re: Sned email using external account

Posted: 2011-06-25 17:09
by Bill48105
amsbas wrote:Actually I didn’t get it, but the client doesn’t have internet in their workstations and I want to keep them like this for some reasons also I want them to email each other’s internally even if there is no internet.

If your idea same as I need please give me more explanation.
This help?
http://www.hmailserver.com/documentatio ... t_up_local

When you say they have no internet, I assume that means you are blocking them in the router or removed their gateway/router IP or something along those lines since the computers NEED TCP/IP to talk to a mail server, even a local one on the same network..
Bill

Re: Sned email using external account

Posted: 2011-06-25 17:21
by amsbas
Yes I'm blooking them from using internet but they have TCP/IP active and the can comunicate with hmailserver and send emails to each other

Re: Sned email using external account

Posted: 2011-06-25 17:33
by Bill48105
amsbas wrote:Yes I'm blooking them from using internet but they have TCP/IP active and the can comunicate with hmailserver and send emails to each other
OK so in that case you followed the directions I linked to and it's working & you are set?
Bill

Re: Sned email using external account

Posted: 2011-06-25 18:54
by amsbas
the link you send is for how to install local intanet mail, I'm already done with it long time ago but my problem is how to send using external account

Re: Sned email using external account

Posted: 2011-06-25 18:57
by amsbas
Please read my first post, maybe I didn't explain my issue very well so if you have any doubt let me know

Re: Sned email using external account

Posted: 2011-06-25 19:25
by rolaids0
You'll have issues sending as gmail or other services that publish spf records. Your best bet here is to relay through them.

Re: Sned email using external account

Posted: 2011-06-25 19:44
by dzekas
amsbas wrote:Please read my first post, maybe I didn't explain my issue very well so if you have any doubt let me know
Do you want to rewrite sender information (replace user@local-address with user@gmail.com), when local user tries to send email to external address?

Re: Sned email using external account

Posted: 2011-06-26 02:47
by Bill48105
amsbas wrote:Please read my first post, maybe I didn't explain my issue very well so if you have any doubt let me know
Oh yeah sorry I should have read the post before I.. WAIT I DID READ IT! Problem it is a mess & makes no sense. You either want to have a stand-along local-only server OR you have real server setup properly to work on the internet. There is no in between, or at least not if you actually expect people to accept your email.
Bill

Re: Sned email using external account

Posted: 2011-06-26 03:10
by amsbas
dzekas wrote:
amsbas wrote:Please read my first post, maybe I didn't explain my issue very well so if you have any doubt let me know
Do you want to rewrite sender information (replace user@local-address with user@gmail.com), when local user tries to send email to external address?

yes exactly

Re: Sned email using external account

Posted: 2011-06-26 03:18
by amsbas
Bill48105 wrote:
amsbas wrote:Please read my first post, maybe I didn't explain my issue very well so if you have any doubt let me know
Oh yeah sorry I should have read the post before I.. WAIT I DID READ IT! Problem it is a mess & makes no sense. You either want to have a stand-along local-only server OR you have real server setup properly to work on the internet. There is no in between, or at least not if you actually expect people to accept your email.
Bill
Hi Bill :) first don't think I'm kidding I'm just wondring if you understand my question :roll: .

I already have the server and this server is connected to internet

Re: Sned email using external account

Posted: 2011-06-26 04:45
by Bill48105
amsbas wrote:Hi Bill :) first don't think I'm kidding I'm just wondring if you understand my question :roll: .

I already have the server and this server is connected to internet
Hard to say for sure what you mean, I can only guess. (Probably why you've had 3 different people respond to you here but get nowhere)

Sounds like you setup fake local domain & use 'external accounts' in hmail (pop3 pulling) to grab email from gmail which I take it is working fine. But you want to reply out to those emails as if you are sending from the original gmail account not your fake domain by setting @gmail.com as your email address in your email client. You can't really do that by sending directly to public servers since receiving servers will see it is spoofed/faked & usually reject it. You'd need to send thru a valid gmail server. If gmail lets you relay thru them then great go that way (create route in hmail or set them up as smart host) otherwise it is a fruitless adventure & a big waste of time.
Bill

Re: Sned email using external account

Posted: 2011-06-26 05:20
by amsbas
Really now you get exact what I need, and I gave gmail as example actually I have different domain so how I can do this route in my purpose especially each user has different user name and password.

Re: Sned email using external account

Posted: 2011-06-26 14:40
by Bill48105
Route is for 1 destination domain (like all mail sent to gmail) vs smart host (smtp relayer) is to route ALL mail except those defined in Routes. When you setup a route or relayer you have option to use smtp auth where you define user/pass that hmail logs in with before sending. Most remote hosts don't restrict that sender match the user/pass that was used but some could. In other words try it with one of your user's user/pass combo & see if the remote allows it or not otherwise might be not possible since hmail doesn't have option to use diff user/pass when sending.
Bill

Re: Sned email using external account

Posted: 2011-06-26 18:07
by amsbas
Thanks
I'll give try and comeback to you