Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd March 2011, 10:59
vmos vmos is offline
Member
 
Join Date: Nov 2008
Posts: 57
Thanks: 1
Thanked 0 Times in 0 Posts
Default How to get apache to send TLS encrypted mail

Good morning, a client wants the mail sent from a form on their website to be encrypted with TLS.
The site is already encrypted with an SSL certificate. We have another postfix server that uses optional TLS for it's mail and it's got apache on it so I've been testing with that but so far I've not been able to get it to use TLS when sending from apache.
These are ubunutu 10.04 servers, can anyone point me in the right direction?
Reply With Quote
Sponsored Links
  #2  
Old 23rd March 2011, 16:55
gw1500se gw1500se is offline
Junior Member
 
Join Date: Mar 2011
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think you mean Postfix. TLS is an encryption protocol for transmitting between mail servers. The packets while on the net are encrypted. The mail itself is unencrypted while on the servers. If you want some kind of of encryption (e.g. PGP) that allows only the recipient to read the mail then you can do that with Apache but it is not TLS.
Reply With Quote
  #3  
Old 23rd March 2011, 17:07
vmos vmos is offline
Member
 
Join Date: Nov 2008
Posts: 57
Thanks: 1
Thanked 0 Times in 0 Posts
Default

yes I do mean postfix, our linux servers use apache and postfix, a few of them also use TLS.
But those other servers are all for use with people using mail clients and whatnot, in this case the mail is going to be generated on the server itself when a user fills in a form on the website.
For reasons that I can't yet figure out, I can't get the server to start a TLS session when sending these particular mails
Reply With Quote
  #4  
Old 23rd March 2011, 18:54
gw1500se gw1500se is offline
Junior Member
 
Join Date: Mar 2011
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That wouldn't have anything to do with Apache. I don't know what your network configuration is, obviously but are the working servers using the same firewall/router as the one in question? What router/firewall are you using? Cisco for example, by default, disables SCP. I suspect the problem is not with Postfix but with your firewall/router not allowing Postfix to see the TLS request.

Last edited by gw1500se; 23rd March 2011 at 18:57.
Reply With Quote
  #5  
Old 24th March 2011, 13:11
vmos vmos is offline
Member
 
Join Date: Nov 2008
Posts: 57
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

it's nothing to do with the router or the firewall. TLS sessions were working fine when relaying mail via server A to server B but not when sending a mail from a php script on server A to server B.

It's working now but I don't know which of my config changes fixed it. That might be a problem as I have to go and do it on two other servers now.
Reply With Quote
Reply

Bookmarks

Tags
apache, mail, tls, ubuntu

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Email Working ISPConfig3 Squirrelmail and Courier etc Ian Wilson Installation/Configuration 17 19th June 2013 22:58
Cannot send or receive mail after setup 50CentOS HOWTO-Related Questions 3 11th June 2010 15:10
Sending emails with custom FROM email address merisor Installation/Configuration 4 8th February 2010 16:27
421 Unexpected failure Lizard King Installation/Configuration 20 7th July 2009 20:43
Postfix problem and few questions Gimly Installation/Configuration 12 7th July 2009 16:27


All times are GMT +2. The time now is 23:10.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.