Specifing port for smtp connection

Hi,
Could someone confirm the equivalence of these two ways of specifying an SMTP server's port?
a) constructing a new URLName with the string "smtp://<host>:<port>" and then connecting using the Transport class
b) constructing an URLName with "smtp://<host>", specifying the session property "smtp:mail:port" and then connecting using Transport
And is one preferred over the other?
Thanks in advance,
Tim

yes in the second option i need in fact mean specifying the property "mail.smtp.port" !

Similar Messages

  • Using a different port for SMTP

    Where can I change my preference of port number for SMTP? I would like to use 366 since I think my ISP is blocking port 25.

    Your ISP blocks inbound and/or outbound 25?
    Port 25 is used for server-server communication and can't be changed.
    If your ISP blocks port 25 inbound, then your server can't receive mail from other servers, even if you change it's port.
    If your ISP blocks 25 outbound, you still need to send to a destination port 25. For outbound, the only thing you can do is relay through your ISP (either from client, or configure postfix to relay through ISP).
    When people add alternate ports for SMTP, it's for the mail client to submit mail to the server. From there, server-server is always going to have a dest port of 25.
    If you wish to add an alternate port (you said you wanted 366) for mail submission, edit /etc/postfix/master.cf
    Find this line:
    smtp inet n - n - - smtpd
    add another below it (location doesn't really matter) like this:
    366 inet n - n - - smtpd
    Then stop/start mail server and port 366 will accept smtp connections.
    FYI- the standard port for smtp submission is 587. Doesn't matter if you want to use another port (366), just make sure you're not trampling on another service which may use that port.
    Jeff

  • Ports for External Connection

    Hi, i have one problem, i dont know what's ports i need to open in my modem for one user in other network connect in my network. I need to make a NAT for this, but i need to know apple remote port for external connection. And sorry for my english, bad.
    thank's.

    You need to open TCP and UDP port 3283 and, for ARD 2.0 and later, TCP and UDP port 5900. For encrypted file transfer (ARD 3.x), open TCP port 22. You may also need to open TCP (and perhaps UDP) 5988 and 5989, though it's not clear under what circumstances this will be necessary.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Discussions page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums, in the User Tips Library and in the Apple Knowledge Base before you post a question.
    Regards.

  • Change http port for Adobe Connect Pro?

    I'm running Adobe Connect Pro 7.5 and would like to change the HTTP port Adobe Connect Pro uses.  I've changed this from 80 to 90 in the Adobe Connect Pro console and saved.  Then restarted my Adobe Connect Pro application.  When I go to the URL http:\\<servername>:90 I get a "Connot Connect to Webpage" error.  If I change it back to 80 the URL http:\\<servername>:80 works.
    Does anyone know how I can change the port for  Adobe Connect Pro 7.5?  Is there another step I need to do on my Windows 2003 server?

    I've had to "cache" uploaded videos by playing them shortly before the audience will see them. For me, the cache holding time when using Adobe's servers is about 5 minutes.

  • Opening specific ports for video

    Hi!
    I want to open some ports for one specific host on the inside network. I want the host to be able to call out to any host on the internet. What is the easiest way to do this?
    I have many public IP adresses so the inside host can easily be Natted with one of the public adresses.
    /Lajja1234

    Easiest way,
    Do a one to one translation and open the right ports on the Outside ACL..
    Just like 5 commands and that will do it

  • Getting error 'opening port for MGR  (Connection refused).

    Hi Guys,
    I m getting below, while starting replicat on target.
    GGSCI (ggtarget) 16> start replicat RLOAD
    Sending START request to MANAGER ...
    ERROR: opening port for MGR MGR (Connection refused).
    GGSCI (ggtarget) 20> view param mgr
    PORT 7809
    USERID orgg, PASSWORD orgg
    PURGEOLDEXTRACTS /ggs/dirdat/*, USECHECKPOINTS
    GGSCI (ggtarget) 21> view param rload
    REPLICAT RLOAD
    USERID orgg, PASSWORD orgg
    ASSUMETARGETDEFS
    HANDLECOLLISIONS
    APPLYNOOPUPDATES
    GETUPDATEBEFORES
    reperror default, discard
    DISCARDFILE ./dirrpt/rload.dsc, purge
    MAP HR.TCUSTORD, TARGET HR.TCUSTORD;
    MAP HR.TCUSTMER, TARGET HR.TCUSTMER;
    from Source I could able to do the telnet to target...
    What could be issue ???

    Hi,
    Error:
    GGSCI (ggtarget) 16> start replicat RLOAD
    Sending START request to MANAGER ...
    ERROR: opening port for MGR MGR (Connection refused).
    You can start Manager, but when you try to start Replicat, GGSCI gives me a connection timeout error
    Solution:
    GoldenGate uses a TCP/IP socket to communicate between local processes. When you issue a START, STOP, SEND, or other command in GGSCI, the command interface will try to open a local port for the process.
    Here is how to find out which local ports these processes are listening on. In the dirpcs directory, there will be one file for each running GoldenGate process.
    For Manager, the file name will be MGR.pcm.
    For Extract, it will be <GROUP_NAME>.pce.
    For Replicat, it will be <GROUP_NAME>.pcr.
    These are text files that can be viewed by using cat or any equivalent command. For example, the MGR.cpm file content will read like this:
    PROGRAM MGR PROCESSID MGR PORT sys1.4356 PID 60070
    After the keyword PORT will be the local hostname and the port number that Manager is supposed to be running on. In the preceding example, the hostname is sys1, and the port is 4356.
    The program (ggsci) tries to use that hostname to communicate to the process (Extract/Replicat/Manager) when the command is issued in GGSCI. If you get a timeout or connection-refused error on the command, that means GoldenGate could not connect to the local host. Most of the time, you should have no problem connecting to a local host, but when you have the wrong IP address or routine table configured in your TCP/IP settings, connection errors can happen.
    To troubleshoot this, follow the steps below
    1. Try to ping that host name from the OS shell to see if it goes to the correct IP address (which should be the one for the local system).
    2. If the ping is successful, try to telnet to the Manager port on your local host. You will be able to see your telnet session connect if a Manager is listening on that port.
    Here is an example:
    shell>telnet
    telnet> open sys1 4356
    Trying 100.100.100.100...
    Connected to sys1.oracle.com (100.100.100.100).
    Escape character is '^]'.
    3. If your telnet session times out or gets a connection-refused error, that means either the hostname is wrong or the port number is wrong.
    If the ping to the hostname listed in the pcm/pce/pcr file fails, or if you cannot connect your telnet session to the port listed in the file(s), contact your network engineers to get the TCP/IP issue resolved.
    Hope this information helps.
    Thanks & Regards
    Santhosh

  • TS3899 what is the outgoing server port for smtp

    what is the outgoing server port for smtp

    Google is your friend for searching for SMTP configuration for your Email provider
    25 is blocked by most providers (because of spam)
    465 and 587 are the ports used by authenticated SMTP setups.

  • Setting up 2nd Ethernet port for NAS connection

    Hi
    I want to split out my internet and NAS drive access across my two Ethernet ports.
    Port 1 is connected to my router and connects to the internet.
    Port 2 is connected to a gigabit switch and then into two NAS drives. I have set up the second ethernet port with a manual ip and it says it is connected. But when I use Command K to connect to the ip address of the NAS, it cannot connect. Previously this worked fine when everything was going out of Ethernet port 1.
    I suspect I have not set up Ethernet port 2 correctly. So far I have set it up for manual configuration and given it an ip address of 192.168.1.17 (the NAS is 192.168.1.18, Ethernet 1 is 192.168.119). Nothing else has been entered.
    Any advice gratefully received. Thanks

    Ping the destination address 192.168.1.19 from a terminal window and see if it responds.

  • Tracing TCP Source/Destination Addresses/Ports for ongoing connections

    On Solaris 10 U4 through U7, I'm trying the following just to perform basic tracking of TCP source/destination addresses and ports, using code similar to what is available in tcpsnoop_snv and tcptop_snv.
    The odd thing is that the addresses/ports appear to be zeroed out - are they being cached outside of the conn_t data structure?
    #!/usr/sbin/dtrace -Cs
    #pragma D option switchrate=10hz
    #pragma D option bufsize=512k
    #pragma D option aggsize=512k
    #include <sys/file.h>
    #include <inet/common.h>
    #include <sys/byteorder.h>
    #include <sys/socket.h>
    #include <sys/socketvar.h>
    /* First pass, for all TCP Read/Write actions, collect source/destination
       IP + Port - after a few secs, print them all out */
    fbt:ip:tcp_send_data:entry
      /* Outgoing TCP */
      self->connp = (conn_t *)args[0]->tcp_connp;
    fbt:ip:tcp_rput_data:entry
      /* Incoming TCP */
      self->connp = (conn_t *)arg0;
    fbt:ip:tcp_send_data:entry,
    fbt:ip:tcp_rput_data:entry
    /self->connp/
      /* fetch ports */
    #if defined(_BIG_ENDIAN)
      self->lport = self->connp->u_port.tcpu_ports.tcpu_lport;
      self->fport = self->connp->u_port.tcpu_ports.tcpu_fport;
    #else
      self->lport = BSWAP_16(self->connp->u_port.tcpu_ports.tcpu_lport);
      self->fport = BSWAP_16(self->connp->u_port.tcpu_ports.tcpu_fport);
    #endif
      /* fetch IPv4 addresses */
      this->fad12 =
        (int)self->connp->connua_v6addr.connua_faddr._S6_un._S6_u8[12];
      this->fad13 =
        (int)self->connp->connua_v6addr.connua_faddr._S6_un._S6_u8[13];
      this->fad14 =
        (int)self->connp->connua_v6addr.connua_faddr._S6_un._S6_u8[14];
      this->fad15 =
        (int)self->connp->connua_v6addr.connua_faddr._S6_un._S6_u8[15];
      this->lad12 =
        (int)self->connp->connua_v6addr.connua_laddr._S6_un._S6_u8[12];
      this->lad13 =
        (int)self->connp->connua_v6addr.connua_laddr._S6_un._S6_u8[13];
      this->lad14 =
        (int)self->connp->connua_v6addr.connua_laddr._S6_un._S6_u8[14];
      this->lad15 =
        (int)self->connp->connua_v6addr.connua_laddr._S6_un._S6_u8[15];
    /* At this point, this->{f|l}ad1{2345}->connua_v6addr.connua_{f|l}addr._S6_un.S6_u8
        are empty - where is this data? */
    }

    http://www.cisco.com/en/US/docs/app_ntwk_services/data_center_app_services/css11500series/v7.50/command/reference/CmdGrpC.html#wp1139667
    portmap [base-port base_number|disable|enable|number-of-ports number|vip-address-range number]
    disable
    Instructs the CSS to perform Network Address Translation (NAT) only on the source IP addresses and not on the source ports of UDP traffic hitting a particular source group. This option does not affect TCP flows.
    For applications with high-numbered assigned ports (for example, SIP and WAP), we recommend that you preserve those port numbers by configuring destination services in source groups. Destination services cause the CSS to NAT the client source ports, but not the destination ports.
    Note If you disable flows for a UDP port using the flow-state table and configure the portmap disable command in a source group, traffic for that port that matches on the source group does not successfully traverse the CSS.
    The CSS maintains but ignores any base-port or number-of ports (see the options above) values configured in the source group. If you later reenable port mapping for that source group, any configured base-port or number-of ports values will take effect. The default behavior for a configured source group is to NAT both the source IP address and the source port for port numbers greater than 1023.
    There is no possibility to disable it for TCP.
    We need to source nat the port to guarantee that the server response comes back on the same module/CPU and the internal packet allocation algorithm is based on src and dst ports.µ
    Gilles:

  • Issue on Service Ports for outgoing connection

    Hi,
    My question is regarding to my desktop Mac making outgoing connection to an external IP address 184.84.124.244 using TCP protocol destination port 443 but using 40 Service Ports between 49170 through 49217.  This is an automatic outgoing connection by OS X 10.7.3 (I assumed as I did not make that connection).  Why such connection required 40 ports to be opened at the same time?  Anyone have any idea what might have caused that?  Thanks.

    There could be lots of outgoing connections when you fire up Safari, as an example, because by default it has many favourites that are RSS feeder. You could have added some new yourself.
    How do I find out if those connections stay up indefinitely?
    By the way just curious, how did you look up the IP address as who they are?
    If you are "Terminal aware" there are some commands that can help you in this direction
    host
    host is a simple utility for performing DNS lookups. It is normally used to convert names to IP addresses and vice versa. When no arguments or options are given, host prints a short summary of its command line arguments and options.
    netstat
    show network status
    whois
    The whois utility looks up records in the databases maintained by several Network Information Centers (NICs).
    nslookup
    query Internet name servers interactively
    dig
    dig (domain information groper) is a flexible tool for interrogating DNS name servers. It performs DNS lookups and displays the answers that are returned from the name server(s) that were queried. Most DNS administrators use dig to troubleshoot DNS problems because of its flexibility, ease of use and clarity of output. Other lookup tools tend to have less functionality than dig.
    just to name a few.
    netstat in particular let you know which connections and their relative status are going on between your computer and the rest of the world

  • Listerning port for client connection

    When the oracle client connects to the oracle database, the default port that the system uses is 1521, which is configured as the listerner location using TCP/IP protocol.
    However, we noticed that once the connection has been establised, the oracle database will start to use different ports (range from 1000 to 5000) in a random manner throughout the connection.
    Is there a way to specify the range or limit the ports used by the database?
    Thank you
    Oo

    Have you set USE_SHARED_SOCKET to true? The Security and Network Integration Guide for Windows has a section on this parameter http://download-west.oracle.com/docs/cd/B10501_01/win.920/a95492/net_conf.htm#634333.
    By default, when any Oracle application contacts a Windows database, it connects to the listner (generally on port 1521) and is then given a port to connect back to. The application then reconnects to the database on this new port and does its work. USE_SHARED_SOCKET changes this behavior so that all the communication happens on the listener port, but this only works in dedicated server mode because of architectural restrictions on Windows.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Listen on multiple ports for smtp?

    Traditionally, we've provided setup smtp to listen on an additional port to 25 for travellers who find themselves on an ISP which blocks that port. We used a line in master.cf like:
    <newportnumber> inet n - y - - smtpdproxywrite unix - - n - 1 proxymap
    This seems to make snow leopard's postfix unhappy. It also doesn't work. I'd be grateful if anybody could tell me:
    * what is or where to look for info on setting up postfix to do multiple ports? I've tried Apple docs and found nothing and only old-style in postfix docs -- though I could be missing something obvious as always.
    * is this the modern and preferred way to get around the blocked port 25 problem or is it better to do some fancy-schmancy port redirection eg at the firewall to map multiple ports on to port 25 for postfix?
    thanks and allbests,

    In the past I've used the following with great success. Add the following line to /etc/postfix/master.cf file:
    2525 inet n - n - - smtpd
    Stop and start the mail service. Then test with telnet to ensure that the port is responding. Sadly, this still appears to be the best way, sans the use of a VPN, to get around ISP blocking.
    Obviously port 25 needs to be open to receive mail. But instead of opening additional port in the firewall, you could drive all users to VPN.
    I just tested the above line in 10.6.1 and it is responding.
    Hope this helps

  • Port for JCO connection

    Hi,
      I am accessing an R3 table using JCO connection. Can someone please let me know the port no. of the server which will be neccessary for doing this?
    Thanks

    Hi Jacob,
    try {
    con = cgservice.getConnection("ISOILESconnect", cp);
    ix = con.createInteractionEx();
    ixspec = ix.getInteractionSpec();
    ixspec.setPropertyValue("Name", "Z_MESSAGES");
    rf = ix.getRecordFactory();
    // CCI api only has one datatype: Record
    RecordFactory recordFactory = ix.getRecordFactory();
    MappedRecord importParams=recordFactory.createMappedRecord("CONTAINER_OF_IMPORT_PARAMS");
    MappedRecord exportParams = (MappedRecord) ix.execute(ixspec, importParams);
    output = (IRecordSet) exportParams.get("LI_MESSAGES");
    This is the piece of code im using, I have already created a system on both the servers and tested them successfuly. But for some reason it works on one but does not give an output when i run it on the other server.
    I get an error which tells me that no output is returned.
    Thanks.

  • Do we need two ports for establishing one connection to EJB from swing clie

    Hi all,
    I have an application which uses Java Swing client and accesses an EJB to connect to the server.
    I am connecting to the EJB using iiop://server-ipaddress:port.
    It is required for me to open the firewall to access the above specified ip address and port number. Even though, I am able to access the specific ip address and port number, I am not able to establish the connection.
    I tried out to check the porblem and I came to know that, this aplication is trying to open another port also on the same IP address.
    I am just wondering whether we need two ports for one connection.
    Does anybody face this type of problem?

    If you need to access on two ports, you would have to open both :)

  • OS X Server 3 outgoing mail relay no longer supports a specific port

    Just installed OS X Server 3 on Mavericks. All is well, but for some reason it does not allow adding a specific port for "Outgoing mail relay: mailout.isp.com:587"
    OS X Server 2 used to allow this and i used it to connect to my smtp relay from my isp. It does not allow port 25 connections. If you try this in OS X Server 3 it just complains with "bad formatting"
    Can anyone confirm this?

    Found another thread discussing this.
    https://discussions.apple.com/message/23544605#23544605
    Answer from there:
    You need to edit the postfix main.cf file manually with your favorite text editor:
    sudo vi /Library/Server/Mail/Config/postfix/main.cf
    find the line
    relayhost = host.example.com
    change it to
    relayhost = host.example.com:587 (or some other port)
    then do a
    sudo postfix reload
    to reload postfix configuration files
    and
    sudo postsuper -r ALL
    to retry sending the e-mails again.
    NOTE: If you open OS X Server 3 app and go to Mail -> Relay outgoing mail through ISP -> Edit the Outgoing server address will show as BLANK, this is normal, just click cancel and leave it alone.

Maybe you are looking for

  • Can't highlight, underline, strike through or select text in iOS 7 Adobe Reader

    I have enjoyed using Adobe Reader to proofread clients' documents, but since the last two iOS 7 updates I can't highlight, underline, strike through or select text in PDFs generated by the same source that previously presented no problems. The drawin

  • How to install in diffrent drive

    Hi, How to install at diffent drive?

  • Safari upload issues

    Issues with uploading pictures with Safari, recently on both our computers PC we have had issues with Safari uploading pictures let's say to facebook, yet tried with internet explorer and it worked.  I can select the photo but then it does nothing, o

  • 2011 NFL Follow Your Team doesn't work

    For four consecutive weeks, I've gotten my e-mail alert from Apple saying "your episode is ready for download" and I click and nothing happens. It was fine until week 11. Help!

  • FILEOPEN failed:ORA-22288 and LFI-00108

    File or LOB operation FILEOPEN failed? My configuration of the Intermedia Cartridge respond VALID and INSTALLED, and my path and file is OK, whats this error messages: ORA-22288 and LFI-00108 ? - Sorry my english... null