Post new topic Reply to topic  [ 49 posts ] 
Author Message
 Post subject: HOWTO: Adding SSL support to hMailServer
PostPosted: 2005-11-25 21:01 
Developer

Joined: 2003-11-21 01:09
Posts: 6395
Location: Sweden
This short howto explains how to use SSL with hMailServer. I use a program called stunnel to do this. Stunnel can allow you to secure non-SSL aware servers, such as hMailServer.

1) Download Stunnel from http://www.stunnel.org/download/binaries.html. I used stunnel-4.14-installer.exe.

2) Install it.

3) Open C:\Program Files\stunnel\stunnel.conf. Make sure that the following lines exists in the file. These lines will do the forwarding of the traffic.

Code:
[pop3s]
accept  = 995
connect = 110
     
[imaps]
accept  = 993
connect = 143
     
[ssmtp]
accept  = 465
connect = 25


4) To run stunnel as a normal application, execute stunnel.exe. This might be good in the start until you've tested that everything works properly. When you've made sure that it works as it should, you can run stunnel.exe -install to make stunnel run as a Windows service.

Notes

From hMailServer point of view, all SSL connections appear to come from localhost since they are being forwarded by stunnel. This have the effect that hMailServer cannot run SPF and DNS blacklists tests on messages delivered over SMTP/SSL. However, the number of spammers that use SSL when delivering messages is probably low today.


Last edited by martin on 2006-07-10 12:50, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: 2005-12-02 02:45 
Senior user
Senior user

Joined: 2004-08-17 23:31
Posts: 683
Location: Santiago, Chile
If you want to use hMail to fetch mail from google Gmail and / or relay mail through google's smtp server you can use stunnel also. Note that if you are already using stunnel in server mode (i.e. as Martin described in the previous post) then you will have to run / install TWO instances of stunnel. One will run in server mode, and one in client mode. Here is the config file for the client mode version:
Code:
# Name this file client-stunnel.conf and place
# in your stunnel directory

#Some performance tunings
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1

; Use it for client mode
client = yes

; Service-level configuration

service = Stunnel-Client

# POP3 service, listens on localhost:11111
[gmail-pop3s]
accept = localhost:11111
connect=pop.gmail.com:995

# SMTP service, listens on localhost:11026
[gmail-smtps]
protocol=smtp
accept = localhost:11026
connect=smtp.gmail.com:587


To install as a service:
Code:
stunnel -install client-stunnel.conf


Then just set up hMail popfetcher to use port 11111 instead of 110. Works great!

For SMTP relaying use port 11026 (not tested by me but should work, also I have no idea how google feels about this ;) )


Top
 Profile  
 
 Post subject:
PostPosted: 2006-01-10 05:51 
Normal user

Joined: 2005-04-16 20:52
Posts: 207
Just set this up for clients with home internet and hotspots that block port 25. No issues on XPpro or 2K...
Thanks for the find, Martin!


Top
 Profile  
 
 Post subject:
PostPosted: 2006-08-28 04:06 
Normal user
User avatar

Joined: 2005-10-06 13:41
Posts: 88
Do we have to specify the Host information in the config file?

Can't just be generic, use 995 to connect to whatever host is specified in the hMail POPMail Fetcher?

Jz.

_________________
hMailserver 4.3 b232 - Built-in MySQL
Crappy Old Toshiba Laptop
Crappy Old IBM Laptop
Crappy Old AMS Tech Laptop
Win XP Home
Apache 2.0.54
PHP 5.0.5
SquirrelMail 1.4.6 RC-1
RoundCubeMail Beta2


Top
 Profile  
 
 Post subject: How do install as i service?
PostPosted: 2008-03-06 04:39 
New user
New user

Joined: 2008-03-06 04:34
Posts: 1
GlenC wrote:
If you want to use hMail to fetch mail from google Gmail and / or relay mail through google's smtp server you can use stunnel also. Note that if you are already using stunnel in server mode (i.e. as Martin described in the previous post) then you will have to run / install TWO instances of stunnel. One will run in server mode, and one in client mode. Here is the config file for the client mode version:
Code:
# Name this file client-stunnel.conf and place
# in your stunnel directory

#Some performance tunings
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1

; Use it for client mode
client = yes

; Service-level configuration

service = Stunnel-Client

# POP3 service, listens on localhost:11111
[gmail-pop3s]
accept = localhost:11111
connect=pop.gmail.com:995

# SMTP service, listens on localhost:11026
[gmail-smtps]
protocol=smtp
accept = localhost:11026
connect=smtp.gmail.com:587


To install as a service:
Code:
stunnel -install client-stunnel.conf


Then just set up hMail popfetcher to use port 11111 instead of 110. Works great!

For SMTP relaying use port 11026 (not tested by me but should work, also I have no idea how google feels about this ;) )


I have installed Stunnel and created the client-stunnel.conf file but i dont know have to install this as a service. i am using Windows vista. could someone help me install this as a service?

Any help would be much appreciated!

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: 2008-03-06 05:32 
Senior user
Senior user

Joined: 2007-06-21 06:52
Posts: 370
Location: Alaska
The post you quoted (for some reason) is for a client config, not for hMailServer. Did you follow the original post and run "stunnel -install" as indicated?


Top
 Profile  
 
 Post subject:
PostPosted: 2008-03-06 14:46 
Normal user
User avatar

Joined: 2008-01-11 16:02
Posts: 171
Location: near Ravenna (Italy)
sorry, I resolved my issue, I did not implement the smtp auth on the client. In these days I work to servers for at least 15h a day and sometimes fall down....


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2008-04-07 16:00 
Senior user
Senior user

Joined: 2006-08-01 21:24
Posts: 728
Location: Padova, Italy
mmm what about performance / reliability with stunnel martin?

in the past with other mailserver i've got communication trouble with stunnel and mailserver . so i've choose to not use stunnel.


what about now?


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2008-04-07 18:20 
Senior user
Senior user

Joined: 2007-06-21 06:52
Posts: 370
Location: Alaska
I have a small installation, but FWIW I've been using STunnel (v4.20) for all my client IMAP & SMTP traffic for over a year now with literally 0 problems, and it's very fast.


Top
 Profile  
 
 Post subject: Securing hMailServer with Stunnel and OpenSSL
PostPosted: 2008-07-04 03:24 
New user
New user

Joined: 2008-07-04 03:13
Posts: 3
The hMailServer does a great job of SMTP, POP3 and IMAP. But what if you want to use the secure versions of those things? Well, you can wait for the next version, or do a little work yourself.

Well, I thought about using Stunnel for that before I read the guide here. So I went about doing so, and got it to work. Then, when I later found the guide here, I noticed it was short on a few topics. Specifically, it is missing how to create your own certificate to make Stunnel more secure.

I went through more than a few guides on OpenSSL, and most were written for LINUX users. In most of these, they liked calling everything a pem file. They also all like to talk about c_rehash, which you won't need for what is being done here.

So I decided that would make my own howto which would add to this one, go over creating a basic, self signed certificate with OpenSSL, and installing it in Stunnel, all inside Windows.

I have done this on Pro 2000 and XP Home, so it should work most places. Mileage may vary.

One guide I found, "Creating a Self-Signed Certificate using OpenSSL for use with Microsoft Internet Information Services (IIS) 5" by Dylan Beattie, January 2003, uses more of a Microsoft file format, extensions, and so on.

This guide is based off that one, but I diverge where it starts talking about IIS. This is for Stunnel which is being applied to hMailServer, not IIS!

Prerequisites:

Knowing this is legal where you are. Not all places have the same laws for using encryption, and that is all I have to say on that because I am not a legal advisor.

Pre-compiled OpenSSL tools for Windows from Shining Light Productions. You can also compile your own version of the OpenSSL tools using cygwin, or mingw, but this is the fastest way.

The OpenSSL tools uses the Visual C++ Runtime DLL, msvcr90.dll. If this is missing from your system, you will need to install the Microsoft Visual C++ 2008 Redistributable Package (x86).

For configuring OpenSSL, use this copy of openssl.conf or play with your own to figure it all out. This way is a lot quicker.

The most recent Stunnel Binaries for Windows.

What to do:

If you plan on making this install of OpenSSL a long term thing, and making your own Certificate Authority to sign multiple certificates, set the variables in your path and system variables. Otherwise, you can just run the set commands from DOS, and be done with it.

Install the OpenSSL tools to:

c:\OpenSSL

Make sure you have msvcr90.dll on your system, or install the C++ runtime to get it.

Now I am going to go through this part quick. If you want more explanation, read Dylan Beattie's guide.

Open up the command prompt. Start > Run > cmd

set path=%path%;C:\OpenSSL\bin
set OPENSSL_CONF=c:\ssl\openssl.conf

md c:\ssl
md c:\ssl\keys
md c:\ssl\requests
md c:\ssl\certs
cd c:\ssl

copy con database.txt
^Z

That is the control and z keys. No shift needed.

copy con serial.txt
01
^Z


NOTE: the 1024 below is to make a 1024 bit KEY. You could also do 2048, and other fun things.

Choose one:
openssl genrsa -des3 -out keys/ca.key 1024
OR:
openssl genrsa -nodes -out keys/ca.key 1024

des3 or nodes. . . If making a CA to do other, internally signed certificates, use a des3 passphrase, and make a second cert signed by the first for Stunnel. However, if you are only going to make one cirt, or you may make another later but don't have any long term plans, DON'T use a pass phrase so nodes.

The pass phrase is to secure the cert from unauthorized use, and to allow it to be sent via email. This is not needed if it will only live on one machine.

Stunnel will never start as a service with a machine on boot if you use a pass phrase! So one of the cirts you make will have to be without a pass phrase, or will have to have the pass phrase stripped off.


Next, do a self signed CIRtificate for three years:

openssl req -config openssl.conf -new -x509 -days 1095 -key keys/ca.key -out certs/ca.cer

Optionally, make a transportable DER file to import the key's recognition into systems without compromising the key:

openssl x509 -in certs/ca.cer -outform DER -out certs/ca.der

The point of a DER file is that it can be linked through the web, and not compromise a certificate/key pair. It allows you to install trust through a browser, which if you are making a private CA to make keys for a number of machines and/or services, will cut down on headaches.

Lets say you have an internal web server, database server, and mail at three offices on local servers using a VPN to keep it all straight. You can trust some big company, and pay them lots of money to let you trust them, and get real keys, OR you can make your own CA, trust it, and use a DER to cause your users to trust it without popping up a warning every time.

Moving on. .. .

You now have a working key and certificate pair, and can skip to installing it into Stunnel. However, if you want to use this as a CA, and make more certificates off it, you then need to do the following:

openssl genrsa -des3 -out keys/client.key 1024

openssl req -new -nodes -key keys/client.key -out requests/client.req

openssl ca -days 730 -keyfile keys/ca.key -cert certs/ca.cer -in requests/client.req -out certs/client.cer

That makes an unsigned, un-pass phrased, key and certificate pair that last for two years.


Installing into Stunnel:

Install Stunnel into c:\Program Files\stunnel, or wherever you want. Let it make the assorted shortcuts.

Under Start > Programs > Stunnel it should make the following:

Edit stunnel.conf
Manual
Run stunnel
Service install
Service start
Service stop
Service uninstall
Uninstall stunnel

You can install and test the service at this point. You will be using the default certificate, and not very secure since that is well documented and therefore decryptable.

When ready to install your certificate/key pair, stop the service, go to the Stunnel folder, and rename stunnel.pem to stunnel.mep, or some other file you will remember.

Make a new stunnel.pem, or copy the old and edit it. Whatever you like.

In the old stunnel.pem you will notice it has something like this:

-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQCxUFMuqJJbI9KnB8VtwSbcvwNOltWBtWyaSmp7yEnqwWel5TFf
[BLA BLA BLA]
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
MIICDzCCAXigAwIBAgIBADANBgkqhkiG9w0BAQQFADBCMQswCQYDVQQGEwJQTDEf
[BLA BLA BLA]
-----END CERTIFICATE-----

You want to replace the top part with what is in c:\ssl\keys\client.key, and the bottom with what is in c:\ssl\certs\client.cer

To attach the layer of trust to the CA key inside Stunnel, put the ca.der into the Stunnel folder, and add this line to the stunnel.conf:

CAfile = ca.der

That adds the trust, but avoids the whole c_rehash requirements for making CApath work.

If you just made one key, and not two, join together c:\ssl\keys\ca.key, and c:\ssl\certs\ca.cer in the new stunnel.pem, and don't bother with the CAfile because the signer is inside the same certificate.

If your key has something like this at the top:

Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,[BLA BLA BLA]

It is pass phrased, and Stunnel won't like it for the purposes of starting as a service. To strip a pass phrase key down to a non-encrypted key:

openssl rsa -in keys/client.key -out keys/open.key

That just removes the triple des layer, and gives you the key. Like I said, that extra layer of encryption is to protect the key in email.

If your key could be exposed other ways, that is due to a poorly secured machine. That starts with locked doors, and if needed, breaking the fingers of children who play with the server they are not supposed to touch! It has nothing to do with the triple des on this key.

And that, in a nutshell, is how to make a CA and use it to improve the security levels of Stunnel.

The rest is the same as above.


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2008-07-05 00:14 
Normal user

Joined: 2008-06-23 18:47
Posts: 96
Another useful way to generate a certificate and key is to use XAMPP's openssl to do it. Download the entire XAMPP package. Then go to [xampp location]\apache. Edit the makecert.bat file to meet your needs - there are two lines i edit.

Code:
bin\openssl rsa -in privkey.pem -out server.key

To change the name of your key, you need to change this portion of the line above to yourkeyname.key
Code:
server.key

Now you need to edit another line
Code:
bin\openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 365

Here this portion can be changed to alter the certificate name
Code:
server.crt

The key's name (must be the same that you used above - yourkeyname.key)
Code:
server.key

And the number of days the certificate is valid for
Code:
365


After you've changed those things, execute the batch file and fill in the information. The certificate and key will be generated in the following two directories:
Certificate: [xampp dir]\apache\
key: [xampp dir]\apache\

You can either specify these as the location of your cert and key in the HMail Admin interface, or copy them to whatever location you want and then specify those in HMail admin interface.

Note: if you leave the makecert.bat file as it was written and execute it, and then fill in the information, you will get a cert and key valid for 1 year in the following locations:
Certificate: [xampp dir]\apache\conf\ssl.crt
key: [xampp dir]\apache\conf\ssl.key

_________________
hMailServer v5.2.1 Build 360
XAMPP 1.70
Horde Groupware Webmail 1.2.3
Windows Server 2003 SBS


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2008-07-07 23:18 
New user
New user

Joined: 2008-07-07 21:55
Posts: 4
hello,
not having much luck with the adding SSL support

I am running win 2000 server/IIS 5; 4.4.1 b273 Hmailserver

I am using my ISP and they are requiring me to us SSL port the standard one for POP3 995 and SMTP 465

I have setup and running stunnel


not sure what I am doing wrong but none of the mails from the web server using the portal software MWPX - Next

not sure what to change in hmailserver to get everything working again...

sorry for being a pain..


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2008-07-07 23:39 
Developer

Joined: 2003-11-21 01:09
Posts: 6395
Location: Sweden
Quote:
not sure what I am doing wrong but none of the mails from the web server using the portal software MWPX - Next


None of them are what? None of them are received? Is the web server located in the same network? Is the portal software configured to deliver to hMailServer over SSL using the port you've set up? Does anything appear in the hMailServer logs when you're trying to send using the portal software? Are you using real internet domain names or have you made up your own test domain?


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2008-07-08 01:14 
New user
New user

Joined: 2008-07-04 03:13
Posts: 3
Quote:
I am running win 2000 server/IIS 5; 4.4.1 b273 Hmailserver


Have you tried seeing if turning on the stunnel securing 443 to 80 lets you run https? This would confirm if stunnel is working.

Quote:
I am using my ISP and they are requiring me to us SSL port the standard one for POP3 995 and SMTP 465


Do you mean for clients to talk to your server they must use secured ports, or for you to download things from your ISP's server, you have to use secured ports? Depending on the use, you have to set up as a client, a server, or run both.

Quote:
not sure what I am doing wrong but none of the mails from the web server using the portal software MWPX - Next


I'm not sure what your use of a portal has to do with any of this.

Is your server a client of the portal? Is it being managed locally or remotely by the portal?

Until you confirm that stunnel is working, I'm not sure that any sort of portal even matters.

Quote:
not sure what to change in hmailserver to get everything working again...


Again? If it worked without stunnel before, then it works without stunnel now. They may just be blocking the ports and until you use the new ports, it may not work.

Here is an idea just to check basic connections. Turn off stunnel, change the ports in both the mail server and a client to the secure port numbers. This will NOT make it secure, but it will let you find out if those ports are open. Then, after you know the ports are open, switch back to normal port numbers, and do more testing on stunnel.

Also, remote port sweeping software, or pinging to the particular ports may get you some information.

Lastly, I did not see you say that you tried turning on the stunnel logging. This really sounds more like a stunnel issue than an hmailserver issue. But there is no indication that you have checked for that.

If as you indicate, hmailserver was working, then it is still working. You could try checking mail locally on that machine to confirm this. Just set the client to check by IP address, or localhost. Once you have it pass or fail locally, then the question of if it is hmail or stunnel is answered.

--k


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2008-07-08 01:17 
New user
New user

Joined: 2008-07-07 21:55
Posts: 4
None of them are what? are going to the hmailserver. I do not see anything in the "Status-- Processed message field"

None of them are received? Yes send a test message to myself and nothing came through

Is the web server located in the same network? yes

Is the portal software configured to deliver to hMailServer over SSL using the port you've set up? I guess that was my question I have portal software setup to go to 127.0.0.1 and port 25; is that correct?

Does anything appear in the hMailServer logs when you're trying to send using the portal software? Sending the log

Are you using real internet domain names Yes

sorry for the other message..

hope this helps


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2008-07-08 01:32 
Developer

Joined: 2003-11-21 01:09
Posts: 6395
Location: Sweden
I'm trying to help you to solve the problem, I won't solve it for you - you have to think for yourself as well. :)

I asked whether anything appeared in the logs when you're trying to send. I didn't ask for a copy of your logs. :)

Can you connect to hMailServer over SSL using your email client? Have you tried that to confirm that the server is listening properly?

Quote:
I guess that was my question I have portal software setup to go to 127.0.0.1 and port 25; is that correct?

If you the portal software is running on the same computer as hMailServer and you want it to connect on port 25 without using SSL, then yes, that seems right.


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2008-07-08 01:49 
New user
New user

Joined: 2008-07-07 21:55
Posts: 4
konrad wrote:
Quote:
I am running win 2000 server/IIS 5; 4.4.1 b273 Hmailserver


Have you tried seeing if turning on the stunnel securing 443 to 80 lets you run https? This would confirm if stunnel is working.[
konrad wrote:


Yes this works

konrad wrote:
Quote:
I am using my ISP and they are requiring me to us SSL port the standard one for POP3 995 and SMTP 465


Do you mean for clients to talk to your server they must use secured ports, or for you to download things from your ISP's server, you have to use secured ports? Depending on the use, you have to set up as a client, a server, or run both.


when I am sending to ISP must use a secured ports for Outlook.. I realize yesterday that when I use the email function within the portal software I recieve a message from ISP that states I need to use a secure ports; so only when I send from the portal software functions I need to use hmailserver and on port 465/25

konrad wrote:
Quote:
not sure what I am doing wrong but none of the mails from the web server using the portal software MWPX - Next


I'm not sure what your use of a portal has to do with any of this.

using hmailserver is only way that I know how to get portal software email function to work with my ISP and web sites; I am running some support network web site for a special needs groups and computer group
konrad wrote:
Is your server a client of the portal? Is it being managed locally or remotely by the portal?

locally.. I have mod some of the other functions up for the special needs web site.
konrad wrote:
Until you confirm that stunnel is working, I'm not sure that any sort of portal even matters.

port 443 is working and i have tested that
Quote:
not sure what to change in hmailserver to get everything working again...


Again? If it worked without stunnel before, then it works without stunnel now. They may just be blocking the ports and until you use the new ports, it may not work.

Here is an idea just to check basic connections. Turn off stunnel, change the ports in both the mail server and a client to the secure port numbers. This will NOT make it secure, but it will let you find out if those ports are open. Then, after you know the ports are open, switch back to normal port numbers, and do more testing on stunnel.

Also, remote port sweeping software, or pinging to the particular ports may get you some information.

Lastly, I did not see you say that you tried turning on the stunnel logging. This really sounds more like a stunnel issue than an hmailserver issue. But there is no indication that you have checked for that.

If as you indicate, hmailserver was working, then it is still working. You could try checking mail locally on that machine to confirm this. Just set the client to check by IP address, or localhost. Once you have it pass or fail locally, then the question of if it is hmail or stunnel is answered.

--k


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2008-07-08 02:07 
New user
New user

Joined: 2008-07-07 21:55
Posts: 4
martin wrote:
I'm trying to help you to solve the problem, I won't solve it for you - you have to think for yourself as well. :)


I asked whether anything appeared in the logs when you're trying to send. I didn't ask for a copy of your logs. :)


understand that.. sorry.. thought that you have seen the logs more then I have and it would help.. sorry.. me bad for being proactive. :?

Can you connect to hMailServer over SSL using your email client? No; only use it to send emails from the mail functions within portal software

Have you tried that to confirm that the server is listening properly? No. gone looking for a port listener..
Quote:
I guess that was my question I have portal software setup to go to 127.0.0.1 and port 25; is that correct?

If you the portal software is running on the same computer as hMailServer and you want it to connect on port 25 without using SSL, then yes, that seems right.[/quote]
checked the code for CDO.Configuration I am sending the request is smtpserverport 465


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2008-07-08 18:50 
New user
New user

Joined: 2008-07-04 03:13
Posts: 3
OK. Now I think we are getting somewhere.

konrad wrote: Have you tried seeing if turning on the stunnel securing 443 to 80 lets you run https? This would confirm if stunnel is working.

"Yes this works"

GOOD!

From what you have said, you use the portal to do things, and the portal talks to hmailserver, which in turn talks to the ISP. The ISP requires SSL.

The issue is you have to use both non-encrypted and encrypted ports.

See, the portal to hmailserver is non-encrypted. That can be done on 127.0.0.1:25. But hmailserver talking to your ISP must be done on your public IP using SSL.

This means that on your pubic IP, or on a different port on 127.0.0.1, you need to bind stunnel to take the SMTP and tunnle it to 465. It will do this in client mode, not server mode.

You can not just use the default settings and let the programs try and take over all ports. This is because both stunnel and hmailserver will want to use port 25.

If you are using your ISP as a SMTP relayer, which is what it soulds like, you could bind stunnel to some arbitrary port, as a SSL client of the ISP's mail server port 465. Then use that arbitrary port and localhost in the SMTP Relayer settings in hmailserver.

I think that is what you are needing to do to solve what you seem to have described.


Top
 Profile  
 
 Post subject: Re: Securing hMailServer with Stunnel and OpenSSL
PostPosted: 2008-12-01 18:37 
Normal user

Joined: 2007-03-20 12:13
Posts: 40
konrad wrote:
--- SNIP --


NOTE: the 1024 below is to make a 1024 bit KEY. You could also do 2048, and other fun things.

Choose one:
openssl genrsa -des3 -out keys/ca.key 1024
OR:
openssl genrsa -nodes -out keys/ca.key 1024

des3 or nodes. . . If making a CA to do other, internally signed certificates, use a des3 passphrase, and make a second cert signed by the first for Stunnel. However, if you are only going to make one cirt, or you may make another later but don't have any long term plans, DON'T use a pass phrase so nodes.

The pass phrase is to secure the cert from unauthorized use, and to allow it to be sent via email. This is not needed if it will only live on one machine.

Stunnel will never start as a service with a machine on boot if you use a pass phrase! So one of the cirts you make will have to be without a pass phrase, or will have to have the pass phrase stripped off.

-- SNIP --


I'm running into a problem while following the OpenSSL guide konrad posted. The "-nodes" argument doesn't seem to exist in the following command, openssl genrsa -nodes -out keys/ca.key 1024. Did I miss a step?


Top
 Profile  
 
 Post subject: Re:
PostPosted: 2011-03-13 05:00 
New user
New user

Joined: 2011-03-13 04:54
Posts: 18
i dont understand this part of the statment-nor can i find any refrences to popfetcher in faq
where are these settings im using version hMailServer 5.3.3 - Build 1879
Quote:

Then just set up hMail popfetcher to use port 11111 instead of 110. Works great!

For SMTP relaying use port 11026 (not tested by me but should work, also I have no idea how google feels about this ;) )


is this the setting you are refering to ?
http://elementofthemachine.com/pop.jpg
and the same for smtp settings?


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-13 15:30 
Moderator
User avatar

Joined: 2007-06-14 05:12
Posts: 9562
Location: 'The Outback' Australia
No

The 'popfetcher' is YourDomain >> YourAccount >> external account

The SMTP relayer is on Settings >> Protocol >> SMTP >> Delivery of email

_________________
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
Documentation


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-13 23:25 
New user
New user

Joined: 2011-03-13 04:54
Posts: 18
mattg wrote:
No

The 'popfetcher' is YourDomain >> YourAccount >> external account

The SMTP relayer is on Settings >> Protocol >> SMTP >> Delivery of email


totaly understood thanks


Top
 Profile  
 
 Post subject: Re:
PostPosted: 2011-03-14 07:21 
New user
New user

Joined: 2011-03-13 04:54
Posts: 18
the first post works
this post i tryed many things -i had to enable the service for some reason wasnt running-all port scans to local host revealed that the ports were not open
i shut down the service
i tryed running
stunnel client-stunnel.conf
and then did a port scan and ports 11111 11026 did not show as open ports
i used lookatlan and 7th sphere port scanner and really good old school port scanner & netstat

the over all goal is to have my smtp to relay to google or get google and everyone else to except my out going mail
stunnel didnt seem to work out for me for the second half-any help?
i run elementofthemachine.com if you want to give a look -all other ports function

GlenC wrote:
If you want to use hMail to fetch mail from google Gmail and / or relay mail through google's smtp server you can use stunnel also. Note that if you are already using stunnel in server mode (i.e. as Martin described in the previous post) then you will have to run / install TWO instances of stunnel. One will run in server mode, and one in client mode. Here is the config file for the client mode version:
Code:
# Name this file client-stunnel.conf and place
# in your stunnel directory
#Some performance tunings
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1

; Use it for client mode
client = yes

; Service-level configuration

service = Stunnel-Client

# POP3 service, listens on localhost:11111
[gmail-pop3s]
accept = localhost:11111
connect=pop.gmail.com:995

# SMTP service, listens on localhost:11026
[gmail-smtps]
protocol=smtp
accept = localhost:11026
connect=smtp.gmail.com:587


To install as a service:
Code:
stunnel -install client-stunnel.conf


Then just set up hMail popfetcher to use port 11111 instead of 110. Works great!

For SMTP relaying use port 11026 (not tested by me but should work, also I have no idea how google feels about this ;) )


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-14 15:37 
Normal user
User avatar

Joined: 2010-03-30 19:30
Posts: 227
Location: uʍop ǝpısdn
May I ask why you dug up an old thread and are fiddling with stunnel? hMailServer has support for sending SSL email built in to the version you are using. Way back when this thread was created, it didn't but it does now.

_________________
hMailServer 5.4-B1929 Alpha on Server 2008 R2 VM
MySQL 5.5.15, IIS 7.5, PHP 5.3.6 via FastCGI, RoundCube 0.5.4
XenServer 6.0 on 2x HP DL380 G5 16GB RAM each
VM data on Thecus 1U4200XXXR iSCSI SAN


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-14 21:07 
New user
New user

Joined: 2011-03-13 04:54
Posts: 18
making a certificalte and installing it is a bit much
my google search for hmail gmail produced this link i used it it worked half way

my problem with hmail is that it wants private key file and a name - i think the name can be anything but the private key file who knows nothing comes up exept api stuff - i google it i came up with somthing but stunnel seem easyer

is private keyfile manditory -another of many question on my research
i made a certificate they mention nothing about a private key file
is private keyfile something hmail uses for slang as certificate - i dont know
i keep reading and i will will solve it eventually

when im done i will document it

rjk wrote:
May I ask why you dug up an old thread and are fiddling with stunnel? hMailServer has support for sending SSL email built in to the version you are using. Way back when this thread was created, it didn't but it does now.


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-14 21:27 
Normal user
User avatar

Joined: 2010-03-30 19:30
Posts: 227
Location: uʍop ǝpısdn
All you need to do is go to Settings > Protocols > SMTP and then select the "Delivery Of E-Mail" tab, enter the outgoing server name (smtp.gmail.com), username and password, and port (465) and then tick the little box that says "Use SSL". You should then be relaying all outgoing email via Google.

As set up now, it doesn't verify the SSL Certificate, making it vulnerable to Man-in-the-Middle attacks. To make hMailServer verify the certificates, follow the instructions on this page: http://www.hmailserver.com/documentation/latest/?page=reference_sslcertificates about halfway down the page.

_________________
hMailServer 5.4-B1929 Alpha on Server 2008 R2 VM
MySQL 5.5.15, IIS 7.5, PHP 5.3.6 via FastCGI, RoundCube 0.5.4
XenServer 6.0 on 2x HP DL380 G5 16GB RAM each
VM data on Thecus 1U4200XXXR iSCSI SAN


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-14 21:34 
New user
New user

Joined: 2011-03-13 04:54
Posts: 18
worked like a charm thank you
rjk wrote:
All you need to do is go to Settings > Protocols > SMTP and then select the "Delivery Of E-Mail" tab, enter the outgoing server name (smtp.gmail.com), username and password, and port (465) and then tick the little box that says "Use SSL". You should then be relaying all outgoing email via Google.

As set up now, it doesn't verify the SSL Certificate, making it vulnerable to Man-in-the-Middle attacks. To make hMailServer verify the certificates, follow the instructions on this page: http://www.hmailserver.com/documentation/latest/?page=reference_sslcertificates about halfway down the page.


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-14 21:53 
New user
New user

Joined: 2011-03-13 04:54
Posts: 18
you seem to have this down
i dont really want to relay it i just want it to work any links?


rjk wrote:
All you need to do is go to Settings > Protocols > SMTP and then select the "Delivery Of E-Mail" tab, enter the outgoing server name (smtp.gmail.com), username and password, and port (465) and then tick the little box that says "Use SSL". You should then be relaying all outgoing email via Google.

As set up now, it doesn't verify the SSL Certificate, making it vulnerable to Man-in-the-Middle attacks. To make hMailServer verify the certificates, follow the instructions on this page: http://www.hmailserver.com/documentation/latest/?page=reference_sslcertificates about halfway down the page.


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-14 22:14 
Senior user
Senior user
User avatar

Joined: 2005-10-13 21:28
Posts: 2486
Location: Lithuania
wethecom wrote:
you seem to have this down
i dont really want to relay it i just want it to work any links?

Stop top posting first. Forum is read from top to the bottom and not bottom to top.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-14 22:18 
Normal user
User avatar

Joined: 2010-03-30 19:30
Posts: 227
Location: uʍop ǝpısdn
Sorry, I am not sure what you are asking. First you way you want to relay through Google, and then you say that you don't.

Could you please provide us with your requirements, in as much detail as possible?

_________________
hMailServer 5.4-B1929 Alpha on Server 2008 R2 VM
MySQL 5.5.15, IIS 7.5, PHP 5.3.6 via FastCGI, RoundCube 0.5.4
XenServer 6.0 on 2x HP DL380 G5 16GB RAM each
VM data on Thecus 1U4200XXXR iSCSI SAN


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-14 23:09 
New user
New user

Joined: 2011-03-13 04:54
Posts: 18
im using current version march 2011
i want smtp to work with thunder bird setup
i want smtp to deliver my mail
here are the current setting
http://elementofthemachine.com/smtp.jpg
http://elementofthemachine.com/ssl.jpg
http://elementofthemachine.com/protocals.jpg

this server is the server im using to type this message i have full access to it



rjk wrote:
Sorry, I am not sure what you are asking. First you way you want to relay through Google, and then you say that you don't.

Could you please provide us with your requirements, in as much detail as possible?


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-14 23:12 
New user
New user

Joined: 2011-03-13 04:54
Posts: 18
this was writen in my original post- there are alot of post i realize you dont want to read everything

the over all goal is to have my smtp to relay to google or get google and everyone else to except my out going mail
stunnel didnt seem to work out for me for the second half-any help?
i run elementofthemachine.com if you want to give a look -all other ports function


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-14 23:43 
New user
New user

Joined: 2011-03-13 04:54
Posts: 18
as in down i mean you understad hmail
not posting order sorry for miscomuincating

dzekas wrote:
wethecom wrote:
you seem to have this down
i dont really want to relay it i just want it to work any links?

Stop top posting first. Forum is read from top to the bottom and not bottom to top.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-14 23:59 
Normal user
User avatar

Joined: 2010-03-30 19:30
Posts: 227
Location: uʍop ǝpısdn
OK a few things: First, your SSL certificate is not going to work, because you haven't loaded the private key file. You should have been prompted to download the private key file when you signed up with StartSSL and got your certificate. You will need to go back to the StartSSL interface and choose the "decrypt private key" option, then upload your private key and enter the password for it. Once you have done that, you will be able to download the private key in unencrypted form, and then you wil be able to load that into hMailServer.

Second, is SSL required? You will save yourself a lot of hassle if you disable SSL.

Third, does your ISP block port 25? If not, you can disable the relaying through Gmail's servers, and send directly, also saving you some hassle. If they do block port 25, find out whether you can relay through their servers.

_________________
hMailServer 5.4-B1929 Alpha on Server 2008 R2 VM
MySQL 5.5.15, IIS 7.5, PHP 5.3.6 via FastCGI, RoundCube 0.5.4
XenServer 6.0 on 2x HP DL380 G5 16GB RAM each
VM data on Thecus 1U4200XXXR iSCSI SAN


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-15 00:15 
New user
New user

Joined: 2011-03-13 04:54
Posts: 18
set to no ssl port 25
and thunderbird setting accept but dont really work
http://elementofthemachine.com/thunderbird.jpg
here is port scan saying port is open and that it is not actively refusing
http://elementofthemachine.com/portscan.jpg

server gives this error

"band@elementofthemachine.com" ***"
"IMAPD" 5292 525 "2011-03-14 18:03:44.830" "75.68.144.74" "SENT: 3 OK LOGIN completed"
"IMAPD" 1868 525 "2011-03-14 18:03:44.830" "75.68.144.74" "RECEIVED: 4 append "Sent" (\Seen) {420}"
"IMAPD" 1868 525 "2011-03-14 18:03:44.830" "75.68.144.74" "SENT: + Ready for literal data"
"IMAPD" 4932 525 "2011-03-14 18:03:45.142" "75.68.144.74" "SENT: 4 OK APPEND completed"
"APPLICATION" 1868 "2011-03-14 18:03:48.215" "SMTPDeliverer - Message 140 - Connection failed: Host name: elementofthemachine.com, message: No connection could be made because the target machine actively refused it"
"APPLICATION" 3588 "2011-03-14 18:03:48.215" "SMTPDeliverer - Message 140: Message could not be delivered. Scheduling it for later delivery."
"APPLICATION" 3588 "2011-03-14 18:03:48.215" "SMTPDeliverer - Message 140: Message delivery thread completed."





rjk wrote:
OK a few things: First, your SSL certificate is not going to work, because you haven't loaded the private key file. You should have been prompted to download the private key file when you signed up with StartSSL and got your certificate. You will need to go back to the StartSSL interface and choose the "decrypt private key" option, then upload your private key and enter the password for it. Once you have done that, you will be able to download the private key in unencrypted form, and then you wil be able to load that into hMailServer.

Second, is SSL required? You will save yourself a lot of hassle if you disable SSL.

Third, does your ISP block port 25? If not, you can disable the relaying through Gmail's servers, and send directly, also saving you some hassle. If they do block port 25, find out whether you can relay through their servers.


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-15 00:25 
New user
New user

Joined: 2011-03-13 04:54
Posts: 18
as for blocking i use comcast in new england usa and the port scan from another computer to the server shows it open


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-15 00:44 
New user
New user

Joined: 2011-03-13 04:54
Posts: 18
port 25 no ssl


RIGHTS=texk[nl]1 OK CAPABILITY completed"
"TCPIP" 5932 "2011-03-14 18:42:30.382" "TCPConnection - Posting AcceptEx on 0.0.0.0:25"
"SMTPD" 5932 668 "2011-03-14 18:42:30.397" "75.68.144.74" "SENT: 220 WETHECOM-SERVER ESMTP"
"IMAPD" 3444 667 "2011-03-14 18:42:30.397" "75.68.144.74" "RECEIVED: 3 login "band@elementofthemachine.com" ***"
"IMAPD" 3444 667 "2011-03-14 18:42:30.397" "75.68.144.74" "SENT: 3 OK LOGIN completed"
"SMTPC" 4556 666 "2011-03-14 18:42:30.397" "75.68.144.74" "RECEIVED: 220 WETHECOM-SERVER ESMTP"
"SMTPC" 4556 666 "2011-03-14 18:42:30.397" "75.68.144.74" "SENT: EHLO WETHECOM-SERVER"
"SMTPD" 4728 668 "2011-03-14 18:42:30.444" "75.68.144.74" "RECEIVED: EHLO WETHECOM-SERVER"
"SMTPD" 4728 668 "2011-03-14 18:42:30.444" "75.68.144.74" "SENT: 250-WETHECOM-SERVER[nl]250-SIZE 20480000[nl]250 AUTH LOGIN"
"IMAPD" 3676 667 "2011-03-14 18:42:30.444" "75.68.144.74" "RECEIVED: 4 list "" "Sent""
"IMAPD" 3676 667 "2011-03-14 18:42:30.444" "75.68.144.74" "SENT: * LIST (\HasNoChildren) "." "Sent"[nl]4 OK LIST completed"
"SMTPC" 2064 666 "2011-03-14 18:42:30.444" "75.68.144.74" "RECEIVED: 250-WETHECOM-SERVER"
"SMTPC" 3676 666 "2011-03-14 18:42:30.444" "75.68.144.74" "RECEIVED: 250-SIZE 20480000"
"SMTPC" 4112 666 "2011-03-14 18:42:30.460" "75.68.144.74" "RECEIVED: 250 AUTH LOGIN"
"SMTPC" 4112 666 "2011-03-14 18:42:30.460" "75.68.144.74" "SENT: AUTH LOGIN"
"SMTPD" 5044 668 "2011-03-14 18:42:30.460" "75.68.144.74" "RECEIVED: AUTH LOGIN"
"SMTPD" 5044 668 "2011-03-14 18:42:30.460" "75.68.144.74" "SENT: 334 VXNlcm5hbWU6"
"SMTPC" 5308 666 "2011-03-14 18:42:30.460" "75.68.144.74" "RECEIVED: 334 VXNlcm5hbWU6"
"SMTPC" 5308 666 "2011-03-14 18:42:30.475" "75.68.144.74" "SENT: QWRtaW5pc3RhdG9y"
"IMAPD" 4376 667 "2011-03-14 18:42:30.475" "75.68.144.74" "RECEIVED: 5 subscribe "Sent""
"IMAPD" 4376 667 "2011-03-14 18:42:30.475" "75.68.144.74" "SENT: 5 OK Subscribe completed"
"SMTPD" 5308 668 "2011-03-14 18:42:30.475" "75.68.144.74" "RECEIVED: QWRtaW5pc3RhdG9y"
"SMTPD" 5308 668 "2011-03-14 18:42:30.475" "75.68.144.74" "SENT: 334 UGFzc3dvcmQ6"
"SMTPC" 5904 666 "2011-03-14 18:42:30.475" "75.68.144.74" "RECEIVED: 334 UGFzc3dvcmQ6"
"SMTPC" 5904 666 "2011-03-14 18:42:30.475" "75.68.144.74" "SENT: ***"
"SMTPD" 4544 668 "2011-03-14 18:42:30.475" "75.68.144.74" "RECEIVED: ***"
"SMTPD" 4544 668 "2011-03-14 18:42:30.491" "75.68.144.74" "SENT: 535 Authentication failed. Restarting authentication process."
"TCPIP" 2064 "2011-03-14 18:42:30.491" "TCPConnection - Posting AcceptEx on 0.0.0.0:143"
"IMAPD" 2064 669 "2011-03-14 18:42:30.491" "75.68.144.74" "SENT: * OK IMAPrev1"
"SMTPC" 5904 666 "2011-03-14 18:42:30.491" "75.68.144.74" "RECEIVED: 535 Authentication failed. Restarting authentication process."
"SMTPC" 5904 666 "2011-03-14 18:42:30.491" "75.68.144.74" "SENT: ***"
"IMAPD" 5388 669 "2011-03-14 18:42:30.491" "75.68.144.74" "RECEIVED: 1 capability"
"IMAPD" 5388 669 "2011-03-14 18:42:30.491" "75.68.144.74" "SENT: * CAPABILITY IMAP4 IMAP4rev1 CHILDREN IDLE QUOTA SORT ACL NAMESPACE RIGHTS=texk[nl]1 OK CAPABILITY completed"
"SMTPD" 4376 668 "2011-03-14 18:42:30.491" "75.68.144.74" "RECEIVED: QUIT"
"SMTPD" 4376 668 "2011-03-14 18:42:30.507" "75.68.144.74" "SENT: 221 goodbye"
"IMAPD" 5388 669 "2011-03-14 18:42:30.507" "75.68.144.74" "RECEIVED: 3 login "band@elementofthemachine.com" ***"
"IMAPD" 5388 669 "2011-03-14 18:42:30.507" "75.68.144.74" "SENT: 3 OK LOGIN completed"
"SMTPC" 4376 666 "2011-03-14 18:42:30.507" "75.68.144.74" "RECEIVED: 221 goodbye"
"APPLICATION" 3780 "2011-03-14 18:42:30.522" "SMTPDeliverer - Message 162: Message delivery thread completed."
"IMAPD" 5540 669 "2011-03-14 18:42:30.522" "75.68.144.74" "RECEIVED: 4 append "Sent" (\Seen) {418}"
"IMAPD" 5540 669 "2011-03-14 18:42:30.522" "75.68.144.74" "SENT: + Ready for literal data"
"IMAPD" 5932 669 "2011-03-14 18:42:30.772" "75.68.144.74" "SENT: 4 OK APPEND completed"


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-15 00:45 
New user
New user

Joined: 2011-03-13 04:54
Posts: 18
last call for sanity


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-15 00:57 
Moderator
User avatar

Joined: 2007-06-14 05:12
Posts: 9562
Location: 'The Outback' Australia
wethecom wrote:
set to no ssl port 25
and thunderbird setting accept but dont really work
http://elementofthemachine.com/thunderbird.jpg
here is port scan saying port is open and that it is not actively refusing
http://elementofthemachine.com/portscan.jpg

In Thunderbird set user in the form user@domain.com

port scanning will only normally detect available INCOMING ports to your server.

_________________
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
Documentation


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-15 01:09 
New user
New user

Joined: 2011-03-13 04:54
Posts: 18
http:\\elementofthemachine.com\thunderbird2.jpg
dose this answer your question?

mail.elementofthemachine.com."
"IMAPD" 4376 667 "2011-03-14 19:04:50.843" "75.68.144.74" "RECEIVED: 26 append "Sent" (\Seen) {420}"
"IMAPD" 4376 667 "2011-03-14 19:04:50.843" "75.68.144.74" "SENT: + Ready for literal data"
"TCPIP" 3780 "2011-03-14 19:04:50.859" "Connecting to mail.elementofthemachine.com..."
"TCPIP" 5932 "2011-03-14 19:04:50.859" "TCPConnection - Posting AcceptEx on 0.0.0.0:25"
"SMTPD" 5932 688 "2011-03-14 19:04:50.859" "75.68.144.74" "SENT: 220 WETHECOM-SERVER ESMTP"
"SMTPC" 5904 687 "2011-03-14 19:04:50.859" "75.68.144.74" "RECEIVED: 220 WETHECOM-SERVER ESMTP"
"SMTPC" 5904 687 "2011-03-14 19:04:50.859" "75.68.144.74" "SENT: EHLO WETHECOM-SERVER"
"SMTPD" 4376 688 "2011-03-14 19:04:50.874" "75.68.144.74" "RECEIVED: EHLO WETHECOM-SERVER"
"SMTPD" 4376 688 "2011-03-14 19:04:50.874" "75.68.144.74" "SENT: 250-WETHECOM-SERVER[nl]250-SIZE 20480000[nl]250 AUTH LOGIN"
"SMTPC" 5932 687 "2011-03-14 19:04:50.874" "75.68.144.74" "RECEIVED: 250-WETHECOM-SERVER"
"SMTPC" 4376 687 "2011-03-14 19:04:50.874" "75.68.144.74" "RECEIVED: 250-SIZE 20480000"
"SMTPC" 4556 687 "2011-03-14 19:04:50.874" "75.68.144.74" "RECEIVED: 250 AUTH LOGIN"
"SMTPC" 4556 687 "2011-03-14 19:04:50.874" "75.68.144.74" "SENT: AUTH LOGIN"
"SMTPD" 3444 688 "2011-03-14 19:04:50.874" "75.68.144.74" "RECEIVED: AUTH LOGIN"
"SMTPD" 3444 688 "2011-03-14 19:04:50.874" "75.68.144.74" "SENT: 334 VXNlcm5hbWU6"
"SMTPC" 4556 687 "2011-03-14 19:04:50.874" "75.68.144.74" "RECEIVED: 334 VXNlcm5hbWU6"
"SMTPC" 4556 687 "2011-03-14 19:04:50.874" "75.68.144.74" "SENT: QWRtaW5pc3RhdG9y"
"SMTPD" 5932 688 "2011-03-14 19:04:50.874" "75.68.144.74" "RECEIVED: QWRtaW5pc3RhdG9y"
"SMTPD" 5932 688 "2011-03-14 19:04:50.874" "75.68.144.74" "SENT: 334 UGFzc3dvcmQ6"
"SMTPC" 5904 687 "2011-03-14 19:04:50.890" "75.68.144.74" "RECEIVED: 334 UGFzc3dvcmQ6"
"SMTPC" 5904 687 "2011-03-14 19:04:50.890" "75.68.144.74" "SENT: ***"
"SMTPD" 4376 688 "2011-03-14 19:04:50.890" "75.68.144.74" "RECEIVED: ***"
"SMTPD" 4376 688 "2011-03-14 19:04:50.890" "75.68.144.74" "SENT: 535 Authentication failed. Restarting authentication process."
"SMTPC" 3444 687 "2011-03-14 19:04:50.890" "75.68.144.74" "RECEIVED: 535 Authentication failed. Restarting


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-15 01:10 
New user
New user

Joined: 2011-03-13 04:54
Posts: 18
ive chack all paswords and they are simple passwords and correct
passwords will change when this works


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-15 01:19 
Moderator
User avatar

Joined: 2007-06-14 05:12
Posts: 9562
Location: 'The Outback' Australia
In Thunderbird

Tools >> Account Settings >> [Choose account] >> Server settings

What is recorded as username?
That should be in the form user@domain.com

in your case 'band@elementof themachine.com' and should NOT be simply 'band'

_________________
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
Documentation


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-15 01:37 
New user
New user

Joined: 2011-03-13 04:54
Posts: 18
http://elementofthemachine.com/account.jpg


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-15 01:41 
Normal user
User avatar

Joined: 2010-03-30 19:30
Posts: 227
Location: uʍop ǝpısdn
wethecom wrote:
http://elementofthemachine.com/account.jpg

mattg wants a screenshot of the account configuration from Thunderbird, not from hMailServer.

_________________
hMailServer 5.4-B1929 Alpha on Server 2008 R2 VM
MySQL 5.5.15, IIS 7.5, PHP 5.3.6 via FastCGI, RoundCube 0.5.4
XenServer 6.0 on 2x HP DL380 G5 16GB RAM each
VM data on Thecus 1U4200XXXR iSCSI SAN


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-15 02:12 
Moderator
User avatar

Joined: 2007-06-14 05:12
Posts: 9562
Location: 'The Outback' Australia
accessed remotely at poster request, and all sorted.

Username needed to be set in account and SMTP settings in Thunderbird

_________________
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
Documentation


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-15 02:14 
New user
New user

Joined: 2011-03-13 04:54
Posts: 18
solution was to remove all setting from smtp relay
http://elementofthemachine.com/solution.jpg


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-15 02:35 
New user
New user

Joined: 2011-03-13 04:54
Posts: 18
this was a cool tool to see hmail log files live as they were being made for debugging

http://www.baremetalsoft.com/baretail/


Top
 Profile  
 
 Post subject: Re: HOWTO: Adding SSL support to hMailServer
PostPosted: 2011-03-15 02:39 
Moderator
User avatar

Joined: 2007-06-14 05:12
Posts: 9562
Location: 'The Outback' Australia
wethecom wrote:
solution was to remove all setting from smtp relay
http://elementofthemachine.com/solution.jpg

That was another problem
You were trying to send to yourself as the SMTP relayer.

We hadn't gotten to that one yet in this thread.

wethecom wrote:
this was a cool tool to see hmail log files live as they were being made for debugging

http://www.baremetalsoft.com/baretail/

Also cool was for me to VNC to your server from my web browser. Allows sandboxing and makes it safer at my end.

_________________
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
Documentation


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 49 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