Come on, honestly: ESMTP (port 587) - possible or not?

Hi all,
a special question to the ones invoked into JavaMail:
Is a connection to a ESMTP-server (port 587) possible with JavaMail? (And if yes - how?)
Certainly this is about sending mails via Gmail. And yes, I read http://java.sun.com/products/javamail/FAQ.html#gmail - and tested the demo-program. It works, but it turned out to use port 465. The problem is that Google advises its users to use port 587 und if you offer a webmail-client (which allows people to set a custom SMTP-port), these users will choose 587.
I read tons of howtos und code-examples and tried out dozens combinations of properties-settings and SMTPTransport-Connects, but I didn't succeed to send a message to Gmails server on port 587. The "best" I got was a "javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?". Most of the time JavaMail tried to fallback and failured on port 25.
I feel like "shetline2" on this thread:
http://forum.java.sun.com/thread.jspa?forumID=43&threadID=706550
He faced exactly the same experiences like me. Unfortunately this thread ended without a solution.
And one more bonus-question:
Is it possible to determine "on-the-fly" which kind of "secure connection" the server expects? In my Thunderbird I found "TLS - if possible"!??
Thanks a lot for all hints and stuff!
Best regards
Stephan
This is to show that I wasn't to lazy to try out (all the commented lines were one      unsuccessful shot):
public static Session assembleJavaxMailSession(SmtpConnectionBean
smtpConnection) {
// Welches Protokoll?
String proto = smtpConnection.isSslConnection() ?
MailTransportProtocolEnum.SMTP_SSL.getProtocolId() :
MailTransportProtocolEnum.SMTP.getProtocolId();
// Properties holen und Werte aus der Bean setzen
Properties props = getProperties();
// props.setProperty("mail.transport.protocol", proto);
// props.setProperty("mail." + proto + ".host", smtpConnection.getSmtpHost());
// props.setProperty("mail." + proto + ".port", smtpConnection.getSmtpPort());
// props.setProperty("mail." + proto + ".quitwait", "false");
// // Bei SSL noch ein paar mehr Properties...
// if(smtpConnection.isSslConnection()) {
// props.setProperty("mail.smtps.socketFactory.class",
// "javax.net.ssl.SSLSocketFactory");
// props.setProperty("mail.smtps.socketFactory.port",
// smtpConnection.getSmtpPort());
// props.setProperty("mail.smtps.socketFactory.fallback", "false");
// props.setProperty("mail.smtps.starttls.enable","true");
props.setProperty("mail.smtp.host", smtpConnection.getSmtpHost());
props.setProperty("mail.smtp.port", smtpConnection.getSmtpPort());
// // SMTP-Auth?
// SmtpAuthenticator smtpAuthenticator = null;
// String smtpAuthUser = smtpConnection.getSmtpAuthUser();
// String smtpAuthPass = smtpConnection.getSmtpAuthPass();
// if((smtpAuthUser != null) && (smtpAuthPass.length() >= 1) &&
// (smtpAuthPass != null) && (smtpAuthPass.length() >= 1)) {
// smtpAuthenticator = new SmtpAuthenticator(smtpAuthUser, smtpAuthPass);
// // Authentifizierung erzwingen
// props.setProperty("mail." + proto + ".auth" , "true");
// Session session = Session.getInstance(props, smtpAuthenticator);
Session session = Session.getInstance(props, null);
// Just in case...
session.setDebug(true);
return(session);
// javax.mail.Session und MimeMessage erstellen
Session jms = JavamailUtils.assembleJavaxMailSession(smtpConnection);
MimeMessage mm = this.assembleMimeMessage(mailBasis, jms,
facesContext.getViewRoot().getLocale());
// Mail versenden
// // Der einfache Weg
// Transport.send(mm);
// // Der komplizierte Weg
// SMTPTransport transport =
// (SMTPTransport)jms.getTransport(smtpConnection.isSslConnection() ?
// MailTransportProtocolEnum.SMTP_SSL.getProtocolId() :
// MailTransportProtocolEnum.SMTP.getProtocolId());
// transport.setStartTLS(true);
// transport.connect(smtpConnection.getSmtpHost(),
// smtpConnection.getSmtpPortAsInt(),
// smtpConnection.getSmtpAuthUser(),
// smtpConnection.getSmtpAuthPass());
// transport.sendMessage(mm, mm.getAllRecipients());
// transport.close();
// Welches Protokoll?
String protocol = smtpConnection.isSslConnection() ?
MailTransportProtocolEnum.SMTP_SSL.getProtocolId() :
MailTransportProtocolEnum.SMTP.getProtocolId();
SMTPTransport transport = (SMTPTransport)jms.getTransport(protocol);
// SMTP-Auth?
String smtpAuthUser = smtpConnection.getSmtpAuthUser();
String smtpAuthPass = smtpConnection.getSmtpAuthPass();
if((smtpAuthUser != null) && (smtpAuthPass.length() >= 1) &&
(smtpAuthPass != null) && (smtpAuthPass.length() >= 1)) {
jms.getProperties().setProperty("mail." + protocol + ".auth", "true");
transport.connect(smtpConnection.getSmtpHost(),
smtpConnection.getSmtpPortAsInt(),
smtpConnection.getSmtpAuthUser(),
smtpConnection.getSmtpAuthPass());
else {
transport.connect();
transport.sendMessage(mm, mm.getAllRecipients());
transport.close();

I haven't evaluated all the details of the RFC 2476, but it works fine for me.
Use:
java -Dmail.smtp.starttls.enable=true -Dmail.smtp.port=587 smtpsend -A -d -M smtp.gmail.com -U user -P password ...You can't directly find out which type of connection the server expects,
but you can try the different connection types until one works.

Similar Messages

  • Is SMTP SSL on port 587 possible ?

    Hi,
    I read that TLS is fully supported but is SMTP/S submission on port 587 possible ?
    Thx for your help
    Emmanuel

    Have you specifically configured your mail server to use port 465?
    By default, Mac OS X Server doesn't use this port.
    Port 465 is used by SSMTP but Mac OS X Server doesn't implement this. It uses the more common SMTPS (SMTP w/ TLS).
    The main difference is that SSMTP encrypts the entire connection (like HTTPS vs HTTP) whereas SMTPS starts off unencrypted and then switches to SSL when both the client and the server recognize that each other support it. SMTPS is far more widely implemented (and it's what Mail.app, amongst others, uses).

  • Cannot send email via Hotmail through port 587 with Secure Connection (SSL) set

    Something is blocking my attempts to send email (with Outlook Express) via my hotmail.com account. The error I receive is as follows:
    Your server has unexpectedly terminated the connection. Possible causes for this include server problems, network problems, or a long period of inactivity. Account: 'Hotmail', Server: 'smtp.live.com', Protocol: SMTP, Port: 587, Secure(SSL): Yes, Error Number: 0x800CCC0F
    When Hotmail.com first changed over to a POP3 server (Sept 2009), I could send emails through them using port 587, which they require. But then something happened, with no changes on my part, to disable my ability to send.
    I have checked and rechecked my Outlook Express account settings. I can send email through another third-party mail account (at 1&1 Internet.com) using port 587, which does not require setting SSL to yes. I can also ping the Hotmail SMTP server via port 587 and receive a response from it.
    I connect to Verizon DSL via a Westell 327W modem/router. Clearly it is not blocking port 587 without SSL. Does it have the capability to block SSL traffic? Or is the Verizon server the culprit, not allowing emails to be sent via Hotmail.com?
    Two different computers on my LAN have the same problem sending emails via Hotmail.com. I have tried everything the Hotmail people have suggested; at this point they think it is an ISP problem, hence this post. This problem doesn't make sense to me and is driving me crazy. Can anyone help me with this?
    Thanks.

    You can still have your reply address set to your hotmail address. And you don't have to really remember to do anything. Configure your client for the HOTMAIL account with Verizon's outgoing server. It will automatically send via Verizon. You don't reveal your verizon.net address, you are just using their server to transmit.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
    "All knowledge is worth having."

  • Why port 587 as opposed to 25?

    This morning I booted up my computer, and suddenly, while I could receive all my mail on all my mail account, I couldn't SEND anything -- on either my .mac accounts, my comcast accounts, or my domain name account.
    While reading another thread here on this topic, someone suggested switching to port 587 instead of 25. I did so, and now my mac account sends perfectly.
    I'm glad of this, but why did this work? I always like to know why something works so I can troubleshoot in the future and know if it's a solution I can try for future problems.

    You are correct, sir. But something changed.
    It helped because while something changed to block connections on port 25, 587, which is also useable for email submission, was not blocked.
    Ff we Google "port 587" we find, among other things, the relevant RFC. RFCs are how internet standards are proposed and defined.
    http://www.ietf.org/rfc/rfc2476.txt
    One relevant section:
    "Port 587 is reserved for email message submission as specified in this document. Messages received on this port are defined to be submissions. The protocol used is ESMTP [SMTP-MTA, ESMTP], with additional restrictions as specified here.
    "While most email clients and servers can be configured to use port 587 instead of 25, there are cases where this is not possible or convenient. A site MAY choose to use port 25 for message submission, by designating some hosts to be MSAs and others to be MTAs."
    That's why.
    -Fred

  • Sending email using IMAP through SMTP Port 587

    Hi,
    I have been sending Mail Merged email to people in organizations that I am active in, using IMAP embedded in StarOffice 5.2 (on Windows 98 Second Edition). This worked fine until a few weeks ago when I received an error message stating that AOL, as part of their anti-spam efforts, was no longer accepting third-party emails on default port 25. All third-party email must now use port 587. I looked in the IMAP dialog and in the Tools -> Options dialog, but did not see any place to change the SMTP port. The AOL error message information page had instructions for changing the port in other applications (Outlook, Eudora, etc.), but not for StarOffice. So, I have some questions:
    1.Is it possible to change the port in StarOffice 5.2?
    2.If not, how does StarOffice 8 send Mail Merged email? Does it use IMAP, and if so, can the port be changed?
    3.Also, I like the integrated configuration in StarOffice 5.2, where database fields can be directly accessed in the Insert -> Fields -> Other dialog. In looking at the Mail Merge section in "SO8_What's New.pdf", it appears that Mail Merge in StarOffice 8 is restricted to predefined fields. Could I still access fields from my existing databases?
    These is a lot of questions, but right now I am blocked from sending Mail Merged emails which is imparing communications with volunteers who are running educational programs. I appreciate any and all help that anyone can provide.

    Please try this out!!!!!!!!!
    You can send emails using Outlook also. You can send email over Microsoft Exchange with this object (or another email server, using IMAP/POP).
    Sub SendMailOutlook(aTo, Subject, TextBody, aFrom)
    'Create an Outlook object
    Dim Outlook 'As New Outlook.Application
    Set Outlook = CreateObject("Outlook.Application")
    'Create e new message
    Dim Message 'As Outlook.MailItem
    Set Message = Outlook.CreateItem(olMailItem)
    With Message
    'You can display the message To debug And see state
    '.Display
    .Subject = Subject
    .Body = TextBody
    'Set destination email address
    .Recipients.Add (aTo)
    'Set sender address If specified.
    Const olOriginator = 0
    If Len(aFrom) > 0 Then .Recipients.Add(aFrom).Type = olOriginator
    'Send the message
    .Send
    End With
    End Sub

  • Port 25 works fine for SSL/SMTP, but not port 587?

    So after doing a rather painful migration to new hardware to support 10.5 from a previously working 10.4 config...
    I got SSL working -- web service is fine, mail service is fine for all ports for POP and IMAP...but not port 587.
    - It's open on my firewall
    - There's no software firewall impeding it
    - Trying to telnet to port 587 results in nothing
    It's as if the server isn't even listening to the port...
    And the odd part?
    - Mac OS X desktop clients report they can't connect on 587. Changing the port to 25 and leaving everything else the same (auth type, username, password) -- suddenly it works...BUT
    - The iPhone is configured for port 587 and works every time.
    My guess it that iPhone auto falls back to port 25 if all else fails, I can't explain why it would work. Bigger question, I suspect something got munged in the migration...is it possible it needs to be told to listen on 587 as well?

    I saw that site...it mentions adding port 587 specifically -- or commenting out "the appropriate lines of master.cf"
    I assume that means to uncomment out the submission port in that file -- or would it be better to add 587 specifically?
    Also, I never allow unauth SMTP (even inside my network) -- I would want to continue to impose that on the submission port and the normal port 25; how do I do this?
    Thanks in advance for the help.

  • HyperTerminal sees a COM port but VISA does not

    It should not be possible that HyperTerminal sees a COM port but VISA does not. Does anyone know why or have any ideas?
    Here's some more info: I wrote a LabView (LV) program and deployed it (via the Application Builder) to some of our production department's PCs (some Windows XP and some Windows 7). We use it to set up products we design and manufacture through our device's USB serial port. The USB port is actually a virtual COM port (VCP) - a USB to Serial converter or "bridge". We have a custom driver for our device and since each device's USB bridge chip is programmed with a different serial number, every time we connect a new device to the PC the installer runs and assigns a new COM port number. This is so our customers can use multiple devices on a PC. Fine. On one of our production PC's we were close to  COM900 ports (HyperTerminal sees only up to COM256) when suddenly Win7 would not allow any more. We were able to uninstall orphaned (non-present) COM ports from DeviceManager ("DM") by starting it from a command console (DOS window) with a special command-line switch, "set devmgr_show_nonpresent_devices=1" then "start devmgmt.msc" (I have this in a batch file). In DM View menu you can "Show hidden devices" and uninstall them as if they were connected. I've also tried uninstalling them the normal way when the device was actually connected. Either way, sometimes, not always, depending on the COM port number, after reusing that port number by installing a new device which picks up that old, freed-up number, LV VISA doesn't see it. In other words, when "Refresh" is clicked in the COM port VISA list box, any new devices installed should be and normally are seen. (Refresh is not needed if the application is started after the device's driver is installed. It is only need if the LV application is open with the new device is added.) However, HyperTerminal does see it and lists it in the Properties screen, the "Connect using..." list box. And the port works with HyperTerminal. (Of course we've tried rebooting after uninstalling and/or reinstalling the device, with the same results.)
    When I've spoken to the NI Applications Engineers in the past about serial port issues (not about this problem) they have confirmed that if HyperTerminal can see the port then NI VISA should also see it. This is crazy. I am posting this in hope that someone can shed some light on this problem.
    Thank you. -Ed

    Good catch. Yes, we're using the Silicon Labs CP2102 and have created a "custom driver" installation package. Our new PCBs have a factory-programmed chip, so the PC reuses that COM port (COM3 on that PC). The problem is when we we re-program the CP2102 (setIDs exe) with our PID, and device strings (including the S/N), the PC runs our installer and assigns the next COM port number. I was hoping that maybe it would go up to 64K or something! Anyway, it surpassed COM256 but we ran into this problem when almost up to COM900.)
    There is a registry entry for each SN device, which shows the assigned port. If we delete the key with regedit, the COM port database (don't know the file name) still has the port number. That's where Device Manager comes in. It seems to allow us to manually delete the ports, but it would take quite a while to delete 900. (I was trying to make a batch file for DevCon, but couldn't get it to see the HW ID of the devices in need of deletion.) So we tried manually deleting a few. After doing that Device Manager shows that Windows (and HyperTerminal) can reuse the port number when a new device (new SN) is installed, but, as you know from this post, VISA cannot see unless I manually add it in MAX.
    I can't see how it has anything to do with the Silicon Labs driver. I might have to delete ALL of MY devices, then uninstall the driver files, reboot, then reinstall, as you suggested with the SiLabs driver. However, I don't see how VISA will now see these changes. VISA must have it's own database. That's what I thought deleting the ports in MAX would clear out, like a fresh install, but apparently not.
    I've been through Silicon Labs' tech support on other issues and they've been able to help on some. I could run this by them.
    BTW, have you noticed that Silicon Labs' chip and driver, while faster than NI's own "bridge" or serial-USB converter (I returned it because at $100 it's performance was worse than a $20 converter you can buy in Staples), is substantially slower than a real serial port? For example, our device can transmit 250 readings per second (a 12 byte string). A real serial port used with my LabView program can keep up, i.e.., graph & tabulate at that rate, but with a VCP we only get about 70 RPS. Same code. Can't figure this one out. They say the've tested the driver to 900 KB claimed. We're using 115KB here. Anyway, the VCP driver makes it look like a COM port which LV thinks it is. Why is it slower than a real port when the USB should be able to work almost 10 times faster than I'm using it (up to 1024 bytes per mSec per the full-speed USB spec, which SiLabs claims they verified)?
    Anyway, I appreciate your help. Thanks! -Ed

  • Network Drive Mapping for users who have Port 445 (possibly others) Blocked by their ISP to a Server 2008 system

    Nice to see my original posts are still up.  I was hoping that in the ensuing time someone had found a solution.  At least I can now see many other posting the same problems.  :)  Thought I was losing it for a while.
    We have 100% proven that the problem (in our case) is from the ISP blocking port 445 (possibly others but 445 for SURE) with the reasoning that it prevents the spread of some Internet "worms".  It also just happens to prevent people who work
    from home from being able to map to their network drives at work.
    What I was hoping was that eventually someone would comer up with a solution for this short of having to load a server using a different OS from Windows.  The SMB protocol is the one needing port 445 as far as I can tell.  Not all ISP block
    port 445 and the laptops that use those ISP's  have no problem.  Unless they travel.  Then it is "hit or miss" as to whether the ISP for the Hotel they stay at blocks it.
    I have run multiple tests to prove that this was in FACT the problem.  Even the particular ISP in question which is a very large national ISP company freely admits they do this supposedly to prevent the spread of an unnamed Internet Worm.  It also
    happens to prevent Business use of their Internet by Home Subscribers at they cannot map to their Business Servers which also need port 445 to map.
    I have used WebDAV successfully to get around this but at a huge loss of speed and performance.  Cloud services all do essentially the same thing and all have pretty much the same loss of speed.
    If anyone has come across a method of allowing a drive mapping to be rerouted to any other port, that is the only hope I have short of changing to an alternate OS for the Office Server and even then I cant be sure until I try if it would help.  I read
    somewhere about the possibility of routing through a proxy but again, the problem would still be that the requests for mapping are expected on port 445 on the server and they will not get through even to the proxy since the originating ISP is the one blocking
    the port from the User's system. 
    Any help or suggestions would be greatly appreciated  I have posted this question now for several years with no one yet providing a working solution.  Hope burns Eternal though :)

    Yes, OwnCloud is an option as well as many others.  Even self hosted Cloud services such as the WD MyCloud all work.  The problem is speed.  JungleDisk is the best I have found so far.  I am not sure exactly what they use to allow the
    drive mapping but it seems to work faster that anything else I have found.
    VPN's don't work.  At least none of them I have tried.   I can connect a VPN with no problem.  But still cannot map a drive over it.   Actually, there are some issues with the VPN as well but these are just a matter of methodology. 
    Mapping to the FQDN works for some people while others require the public IP.  Some users on some ISP's can map using the FQDN, others have to map to the IP.  That in itself was a bit odd.
    I have tried every trick I could find including adding  the IP and/or FQDN to the Windows Hosts file on the server as well as on the client systems.  This actually did help to get the VPN to connect in some cases.  However, it still would
    not allow me to map a drive letter.
    I can create a Network Place,  This also works.  But it will not allow me to MAP that "network place" to a drive letter.  I have tried multiple utilities that allow mapping of Drive letters to almost anything but they wont work to map to a
    Network Place.
    The software that needs the mapped drive is a SQL database which runs on port 2004.  The program itself has no problems at all connecting to the server to run the database.  Even on systems which cannot map to the needed drive letter for the documents
    referred to in the database.    Users can run it and look up all kinds of material but it it is only a half-solution since the database refers to files stored in a "common-mapped" drive letter.  Which I cannot Map.
    I have tried every possible configuration of the VPN setup I could find, I have even tried a "Test System" with the NIC connected directly to the T1 Modem.  With all firewalls off and no AV software.  Even if that had worked,  there is no
    way I could run like that.  But it didn't.  Same issues.  All this did was put the blame squarely on the User's ISP which was the only reason I did it.  I had to rule out even the slightest chance that it was something in our equipment.
    This was already almost a certain fact since the same user could take their laptop to a WiFi Hotspot at a fast food restaurant and connect as well as map the drive.  As soon as they went back home, no drive.  On the ones I could convince to pay
    the extra charges, if they switched to a business connection from their ISP, No Problems.
    On most MiFi or other Cellular Internet devices, No Problem,  Although that had a habit of changing.  We had a few that worked for a while, then they got a software update for their MiFi which immediately blocked the ability to map.  Others
    it would be that some models of Cellular HotSpot units worked while other would not work even if both came from the same carrier.
    Coincidentally, we had none of these problems before two other events occurred: 
    One was the release of Server 2008 R2, (which was a kid of "surprise" change for all of us used to Server 2008 R1.  Welcomed changes, but not expected with a simple SP release. 
    The other was IPV6 finally became a reality:  June of 2012.
    This left us with much head scratching as to what was the real cause of the problem.  It took months to narrow it down to port blocking by the Outside ISP's with a 100% certainty.  Even tried reloading a system with Server 2008 R1 just to rule
    that out.  As well as disabling IPV6 on every network device.  The problem stayed with the User when Outside and which ISP they were connected to.
    Currently we are using a mix of normal VPNs for those who can run them, and CLOUD access for those who can't.  Even this is problematic since we have to keep both the local copy and the cloud copy in constant sync so that everyone sees the same versions
    of the same files on each one.
    Sorry to make this so long but I wanted to cover everything to show that we tried it all.  The only thing left short of getting the ISP's to remove the port blocks would be to find a way to route the SMB file requests around port 445 in some way. 
    I have been told that this is easy enough if using a file system other than Windows but that is not an option even if true. 
    Thanks for the updates and ideas.  I keep hoping that eventually there will be some secure method for mapping a drive letter that does not depend on having port 445.

  • Server not contacted on Port 587

    Hello--This problem relates to the update of 10.4.7. Mail just fine before, repaired permissions before and after update. Used Mail and was not able to first send, error message (could not contact server on Port 25. Came to this forum and saw topics on possible problem with 10.4.7 update. Repaired permissions, reinstalled combo update, repaired permissions again, and now was able to receive email but could not send, was now getting error message that server could not be contacted on port 587. Have tried most of the solutions talked about here. Socks proxy off, moving Mail folder from Home Library to desktop, trashing plist. etc. We are able to send and receive mail using Netscape and my wife's school server. So the problem lies somewhere with Mail. Any new ideas on this problem with port 587. We count on Mail very much and getting it up and running would be great. Thanks for the help.
    John

    Sorry, This problem is with the iBook, have held off for the moment on updating the iMac.
    John

  • Comcast Port 587 Not Working

    Comcast contacted me to change to port 587 because my account was sending spam. I've done this and can't send or receive email. I've restarted mail, my computer, I've checked and unchecked SSL. I've contacted Comcast and they say it's a Mac issue. I'm clearly doing something wrong, I just can't figure out what it is. I get mail on my iPhone using 587, but not my iMac. If it were possible to cut and paste on the iPhone, I wouldn't care, but need the iMac for document creation and response.
    Anyone know what little thing I'm not doing that could fix this problem?

    I recieved a similar email from Comcast saying "Comcast has determined that your computer(s) have been used to send unsolicited email ("spam"), which is generally an indicator of a virus."
    I have no idea why I recieved this (waiting for a representative from Comcast Customer Security Assurance to call me back), but I'm sure it's related to the port change from 25 to 587.
    Now I've been using port 465 for secure SMTP connections for... years probably. However, the configuration for server authentication seems to have changed.
    The solution was to change the username under authentication from "userxyz" to "[email protected]". (I use my primary Comcast username, in case that makes a difference.)
    The best part was when I called Comcast and they told me I had to call Apple for help configuring the Mail.app client. Yeah, it's their problem.

  • Smtp port 587 not working

    after upgrading from 10.5.2 to 10.5.4 we are no longer able to use port 587 for smtp... only port 25 no SSL works.
    we have followed the suggestions in the the below posts....
    http://discussions.apple.com/thread.jspa?messageID=7291740&#7291740
    (recommenting smtps inet n - n - - smtpd in /etc/postfix/master.cf to enable smtp to run in the first place)
    http://discussions.apple.com/thread.jspa?messageID=7513032&#7513032
    (enabling port 587 in /etc/postfix/master.cf)
    we are also getting the following warnings in mail.log
    Jul 19 14:04:07 xserve postfix/smtpd[5658]: warning: connect to private/tlsmgr: No such file or directory
    Jul 19 14:04:08: --- last message repeated 1 time ---
    Jul 19 14:04:08 xserve postfix/smtpd[5658]: warning: problem talking to server private/tlsmgr: No such file or directory
    Jul 19 14:04:08 xserve postfix/smtpd[5658]: warning: no entropy for TLS key generation: disabling TLS support
    however not sure if that is really related - as we are only using SSL certificates not requiring... so presumably smtp should still work?
    any help appreciated.

    btw. if we do a telnet test, it first establishes a connection but then we get the following instantly:
    "Connection closed by foreign host."
    also checked that the firewall is configured correctly and lets traffic on port 587 in...
    ds.

  • Leopoard / Mail 3.1 and port 587

    Hello,
    I am starting with leopard and mail 3.1.
    I have to change the port to go to port 587.
    I canot find where to do it.
    Help please.

    Hello and thank you.
    However, I knew how to do it in previous release of Mail.
    As you said : there was a place called "réglages des serveurs" (tune the s"erveurs")
    Mail, preferences,account, advanced ...... but the "reglages des serveurs " does not exist anymore
    in Mail in the new release Mail 3.1
    Therefore I dont know how to change (SMTP) PORT from 25 to 587.

  • I need to modify Postfix to listen to port 587

    Mountain Lion Server OS X 10.8.4
    Running Mail service with Postfix and Dovecot. In production with several mailboxes.
    I need to modify Postfix to listen to port 587. I should be able to telnet to port 587, and finally send mail via 587.
    587 already redirects to 25 via the firewall, but external devices need to visit the internal subnet without modifications to the mail app.
    At this stage I just want to get it working with password authentication.   SSL is a project for another day.
    Here's my understanding of the OS X Postfix config:
    /etc/services file:
    Maps service names to port numbers.  Port 25 is  "smtp" and port 587 is "submission".
    /etc/postfix/master.cf file:
    Loads Postfix preferences. Service configurations for "smtp" and "submission" are listed at the top of the file. Each service configuration can be modified with parameters (-o variable_name_here=value_here).
    I found many discussion boards with instructions for enabling 587. They suggest removing the comment syntax for the existing "submission" line:
    # submission inet n - - n - smtpd
    My server didn't have a comment, the line was already enabled:
    submission inet n - - n - smtpd
    I restarted services and 587 didn't work.
    Then I tried a more direct approach:
    587 inet n - - n - smtpd
    This had no effect.
    After each attempt to enable 587 I test with:
    telnet 127.0.0.1 587
    And I get: Connection Refused
    I used the Server app and turned Mail off and on. This stops and starts Postfix.
    I also used commands to restart Postfix:
    postfix stop
    postfix start
    sudo postfix stop
    sudo postfix start
    postfix reload
    sudo postfix reload
    Nothing opens 587.  Any ideas? Thanks in advance for your insights.
    -SE30Emulation

    @Kraftwerk: You cannot change the TCP port used for SMTP.  Well, technically, you can, but then no other mail servers on the Internet will find and communicate with your mail server.  So... forget that.
    The ISP controls the terms and conditions for the network connection, and particularly controls the network and network access.  There's just no way 'round that either, as the ISP has the network position to implement port blocks and firewalls, and usually the contractual authority to allow or deny access.
    With the proper (static) network connection and proper DNS, there is nothing to struggle with; this stuff works. 
    Which implies your ISP does not offer static connections, or there's an ISP error, or you're attempting to operate a mail server on a dynamic address.  None of this works.
    You might try mailhop service — if that's permitted within the limits of the terms of service — but it'll be easier and cheaper to host your mail elsewhere.  Or to get a static IP address and proper public DNS, if your ISP offers that. 
    SMTP services are also tied to DNS, as well; other mail servers use DNS checks to detect rogue (spam) servers, and a mail server erroneously configured on a dynamic IP address will have mismatched DNS, and other mail servers will detect that and drop mail from and often to that mail server; that server is indistinguishable from a spam engine.
    There's rather more the ISP can do as part of best-practices networking, too.  TCP port 25 connections both inbound and outbound are usually spam engines operating on malware-infested, so it's common to block that traffic to reduce the volume of spam.  Various ISPs will further blacklist dynamic IP address blocks, which means other SMTP servers using these blacklist services will ignore servers in these address ranges.
    Get static IP.  Or host elsewhere.  Or (if permitted) mail hop. 

  • SMTP does not start on port 587

    I just activated IMAP and SMTP on an old G5 Server running the latest version of Leopard.
    Everything, but for one thing, runs fine.  IMAP works correctly from both the local network and any distant network I could try it.  SMTP runs fine on the local network but only on port 25.  Nothing is listening on port 587, or 465.  Hence, SMTP does not work from a distant network. 
    The firewall is off, but even from the localhost, or any machine for that matter, telneting to port 587 does not get an answer :
    telnet 127.0.0.1 587
    Trying 127.0.0.1...
    telnet: connect to address 127.0.0.1: Connection refused
    telnet: Unable to connect to remote host
    I did activate ssl for smtp in the Advance>Security tab.  It uses the same selfsigned certificate as IMAP, which works fine.  I can also tunnel in from a distant machine and SMTP will work. 
    I tried to uncomment the following four lines in master.cf
    #smtps     inet  n       -       n       -       -       smtpd
    #  -o smtpd_tls_wrappermode=yes
    #  -o smtpd_sasl_auth_enable=yes
    #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    but I only lost connection on port 25 and got nothing on port 587.  This feels good, but I have no idea where to go from here.
    Any one has any suggestion ?

    I understand well that this is exactly SMTP, but just running on a different port, port 587, for submission, while port 25 is for relaying between server
    That's pretty much it, except that port 587 should be configured to accept mail from authenticated users only (as determined by the line:
      -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    This enables authenticated users (e.g. users who have accounts on the server) to send mail through the server without restriction (e.g. they can be remote) while unauthenticated users (including remote mail servers sending mail to your domain) use the standard port 25
    should I uncomment the lines for smtps in order to use SSL ?
    smtps is still different from SMTP (25) and submission (587). Both SMTP and Submission can use SSL if you enable tls support - tls enables a connection to start off insecure/unencrypted and switch to encrypted if both the client and server acknowledge they support it. It's generally not recommended to require SSL/TLS unless you're sure every client that's going to use that service can support (and is configured to use) encryption.
    smtps (which requires SSL) is now deprecated in favor of TLS (which allows the server to support both encrypted and unencrypted connections on the same port number).

  • Is This Porting Scenario Possible?

    I saw the other post that was similar to this, and it didn't answer my question.
    I was wondering if it is possible to port out my main line's phone number to Ring Central (since I use my main FS line as my main business line), and have Verizon reassign me a new number (for my main line on the FS account) without getting charged a ETF?
    Can the porting department make a note on the account so once the main number is ported, it will be replaced with a new number? That way I will not be charged an ETF since I still want to continue my service (just split my business number into a new service to separate it from my personal FS plan).
    If it is possible, how would I go about doing this? I would have to port out the main line's number to Ring Central first since it takes up to 10 business days to complete the porting process to Ring Central.
    Are there any fees involved in this?
    Thanks in advance for anyone's help.

    Hello eja185,
    Thank you so much for reaching out to us in the community forums on this issue. We are making a change in our billing system to meet the needs of our customers with this EXACT concern! We are currently migrating to a bill format called account level pricing (ALP). ALP is when the account is bill for the minutes and each line on the Family Share Plan is bill individually for access to the minutes. Now I know what you are thinking! What does that mean to ME? It means that there is NOT a primary line anymore and you can move lines as you see fit. In addition to that, access to the minutes will be distributed evenly amongst the mobile numbers, thus making it easy to identify who's responsible for any overages that may occur. 
    You mentioned in your posting that you want to keep your main line separate from your personal line for business purposes. We have a great option that can accommodate this type of request. I can transfer your primary line into a sub-account under your name that will be bill out completely separate from your current account. This way you will have two separate bills and won't incur an early termination fee if your agreement hasn't been fulfilled. Many people take advantage of this option for accounting purposes with their company and/or for tax purposes. If you are interested in this option then feel free to send me a private message with your full name & mobile number. We can discuss this option in further details for you. I look forward to hearing from you.
    Thank you...

Maybe you are looking for

  • A questin about field mapping

    >>Source Message Type SourceMT            1..1 person                 0..unbounded              first_name        1..1                          last_name         1..1  >>Target Message Type TargetMT            1..1 person             0..unbounded   

  • Duplicate programs listed in "Open With" menu

    Whenever I control-click a file and want to select "Open With", there are duplicate programs listed. For example, if I want to open an AIFF file, QuickTime 7.6.2 shows up twice in the list along with iTunes, WaveBurner (a Logic Pro program) and other

  • Problem with Excel automation refnum

    While presenting ActiveX functions to students, I ran into an unexpected problem : only half of the PCs were able to work with Excel after the initial basic steps : place an automation refnum on the front panel right-click the automation refnum, then

  • IPhone 4:  Bluetooth Issues - Hands Free Phone in vehicle

    All, This is my first Apple post.  I usually go out and Google and find/figure things out on my own, but I am stumped! I recently upgraded my wife to an iPhone 4 16gb Black from an iPhone 3GS 8gb.  With the 3GS, we were able to pair the phone with ou

  • IPhoto 08, photos lost

    I've got an iMac with Leopard and iPhoto 08. I tried to import photos from backups created with previous iPhoto versions. First it seemed impossible to read these both CD's and DVD's onto which the backups were created (created from iPhoto). After su