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

Similar Messages

  • Can imapd listen on multiple ports?

    For historical reasons, we've got some multiplexors that expect to make the back-end imap connecto to port 993, and some others that want to talk to 994. Is it possible to configure imapd to listen on multiple ports?
    Thanks!

    I just realized this would be doable if the MMP would do STARTTLS to the back-end (since then I could enable STARTTLS on the default port and keep SSL on connect on the other port).
    If only.....

  • Need to setup monitoring aon multiple ports for IDS

    I have a cisco 3845. I need to need to setup monitoring aon multiple ports for IDS on 2 ports. How do I do this.
    Also,
    Is there a way to make ports on the switch portion act like hubs.
    Thanks

    I assume that you are referring to the Ethernet Switch Module in the 3845. If so it should support SPAN. Here is a SPAN configurations guide:
    http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122newft/122limit/122z/122zj15/fz1636nm.htm#1820129

  • 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

  • Listening to multiple ports(socets) for data?

    I know that this topic has been covered before, but is either simplistic questions or overly complex things (that I don't understand... yet)
    Here is my issue: I have data coming from two ports (TCP/IP) an array of 210 bytes and I'm not sure which port will be activated first. The data is asyncronus. So basically I want to figure out how to listen to the ports. I have this code...
    import java.io.*;
    import java.util.*;
    import java.net.*;
    public class SocketListener{
        public static void main(String[] argv){
            ServerSocket mySocket = null;
            ServerSocket mySocket2 = null;
            try {
                mySocket=new ServerSocket(12000);
                mySocket2= new ServerSocket (13000);
            catch (IOException e){
                System.err.println("error");
                System.exit(-1);
            try {
                Socket client = mySocket.accept();
                System.out.println("The server has connected to 12000\n");
                // do what I need it to do a.k.a. get data array
                client.close();
            catch(IOException e){
                System.err.println("error");
                System.exit(-1);
            try {
                Socket client2 = mySocket2.accept();
                System.out.println("The server has connected to 13000\n");
                // do what I need it to do a.k.a. get data array
                client2.close();
            catch (IOException e){
                System.err.println("error");
                System.exit(-1);
    }I'm not sure if it works or not... but thats what I got. Is this the best way to go about this or is there something else that I should look up in documentation / look for examples / someone might have a link to something.
    Thanks a lot!!!!
    Edited by: KTLightning on Sep 12, 2007 1:25 PM

    There are two issues at hand here, one being networking and the second being threading. Threading is an extensive subject and I don't want to shortchange you here, so you may want to read this tutorial if you are not familiar with Java threading concepts: http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html
    That being said, if you want to concurrently listen to the sockets, you will need a thread for each socket you are listening. Otherwise you can use Java NIO, but unless you are going to be listening to many sockets at once, this complication is not necessary since the learning curve of Java NIO can be quite steep.
    You might want to start out creating a new class that will handle the task of listening to a socket and retrieving the data in its own thread. You can do this by either extending the Thread class or implementing the Runnable interface. From your main class, you can then spawn as many of those objects as you need. The trick to this approach is knowing when the data has been read from the socket and stored in the object. For only two objects this is simple as you can have a hasData() method on your worker objects and then just put a loop in your main class checking to see if the condition has been met on the objects.
    Here's some code fragments as an example...
    public class SocketReader extends Thread ...
    ServerSocket ss = null;
    boolean hasData = false;
    SocketReader(int port) {
    ss = new ServerSocket(port);
    public void run() {
    ss.accept();
    // do your stuff
    hasData =true;
    public boolean hasData() {
    return hasData;
    main() {
    SocketReader sr1 = new SocketReader(12000);
    SocketReader sr2 = new SocketReader(12000);
    sr1.start();
    sr2.start();
    // keep looping until we have data in both
    while (!sr1.hasData() && !sr2.hasData()) {
    try {
    Thread.sleep(100);
    } catch (InterrruptedException ie) {/ do something}
    } // end main
    Keep in mind that this is a very simplistic example to demonstrate the concepts and would not be a good design for pretty much any other case.

  • SocketServer Listen on Multiple Ports

    What is the optimal way to have a SocketServer listen on more than one IP/port combination? I'm looking for various ways of doing this including a quick and easy way and the best-practices way.
    Thanks.

    There is no way to 'have a SocketServer listen on more than one IP/port combination'. A SocketServer can only listen at one port. You need multiple SocketServer objects, and you should use multiple threads executing accept loops.

  • Multiple port for one instance

    hello there,
    Here is my requirement...
    If one of my master ldap went down for couple of hours and when i bring it up... all the arrowpoint traffic is routed immediately to this server and hence whatever changes happend in the secondary server was not showing up immediately in this primary master server. To avoid this issue.. can i use a different port for replication only and once the replication is completed , then i want to allow the client to access the main port.
    Is it possible? Any idea? Thank you for anyone input.
    SS

    1. EITHER multi-home your network card so that it has multiple IP addresses
    Launch each instance of ldap with the commandline option to bind this instance to a particular IP address
    2. OR provide alternate ports for each instance of ldap
    This is easier to do . However, it is not recommended for production systems. Usually used in development.
    If the scenario is production environment use first method.
    If it is a development environment try the second.
    See the port properties. Check the ldap port settings.
    NOTE: ldap has a known bug. To fix this get into sun site. This bug is fixed.
    Thanks
    --Britto                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • 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.

  • Netbeans 6.1 SMS NON-Brute force ability listen to multiple ports

    First of all, my appologies for being a nubie coming from Mobile6. The company I slave at is migrating from MS Mobile to j2me!!! I am porting a code segment that listens to all incoming/outgoing SMS text messages and logs the messages into another java contact applet for our sales department. Our company policy(I cannot change) allows the sales department to use any/multiple SMS packages and install onto the device.
    Based on my understanding of the (MessageConnection)Connector.open("sms://" foo); I must include a port address to listen in on. Is there a NON-brute forced methodogy to poll "active" ports the device is using to send/recieve SMS text message?
    /dz
    Little Rock, AR.

    db,
    I was reading a blog by Bill Day [http://weblogs.java.net/blog/billday/archive/2004/02/midp_push_using.html]
    regarding MIDP Push; A paragraph jumped at me, it was "...
    Whichever network(s) you're application will be using, you need to find out what protocols they allow inbound to handsets. At the least, most GSM carriers will allow SMS (since they use SMS for short text messaging). Assuming your network does support SMS, from the server part of your application you would need to generate an SMS message directed to the port you bound your MIDlet to in its static or dynamic push registry settings. Assuming the network passes the SMS as expected, your MIDlet should be awakened when the SMS arrives in the handset..."
    Either I'm not understanding your reponse, the info in this blog is incorrect or I must include a port address as part of the open method of the Connector. Still confused.
    /dz

  • Valuechange listener called multiple times for checkbox in table.

    Hi All,
    I'm trying to understand how value change listeners work for checkbox components within a table column. I have a checkbox declared as below
    <af:selectBooleanCheckbox id="sbc1"
    valueChangeListener="#{pageFlowScope.classfiyBean.checkBoxValueChangeListener}"
    immediate="true"
    autoSubmit="true" />
    I notice the value change listener is called multiple times. There are 6 rows in the table within which the checkbox is a component. It is called 6 times for a change. How do I prevent this from happening as it's over writing the values of the other rows as well.
    Scenario : The page is based on a human task, so the outcome button cannot be set to Immediate = true since there are other validations on the page.
    JDev: 11.1.1.4
    Thanks
    PP

    Hi
    Please make sure that Is there any logic being implemented in WD MODIFY VIEW of view controller.
    If yes that may be the cause of your problem because WDModifyView() is being called every time u perform an action.
    or
    Try to Invalidate current context node which is bound to table UI element and actually containing data at run time. I think this node is not being refreshed. Try to refresh it in Search Button action.
    or
    Check your loop code snippet, if you implemented it anywhere.
    Mandeep Virk

  • Multiple Ports for one Content in CSS

    Dear All,
    We configure a CSS11506 (v5.2) and the enduser wants to setup only one content (vip address) to support multiple services (such as http, https and DNS).
    Since, in the configuration, we can only set one port in content rule. Is there any method to setup this requirement? Or we only need to create several content with the same VIP but for different services port?
    Thank you very much!
    Best Regards,
    Lawrence

    take a look at the odcumentation regarding the way in which the css processes rules, you can have multiple rules with the same vip...just specify the separate tcp ports in each rule, making them layer 4 rules.
    I would advise against an L3 rule, as there is an outstanding bug in the 5.00 and 5.03 releases regarding unexpected switch reboots when UDP hits a rule.
    HTH
    Mike

  • Multiple IP vs Same IP multiple port for virtual hosts

    Anyone have any recommendations or experience in setting up a virtual host that has a listener for each site?
    The issue is when I have to restart a single site, I have to restart them all, because they are installed under the same listener/server.
    I need a setup where I can install and manage each website (on the same box) on it's own listener/server instance so re-starting one site doesn't effect another.

    Add a service in the Network preference pane. Select the network interface you want; e.g., Ethernet. Configure as desired. Apply and test.

  • One weblogic instance listening to multiple ports

    I'd like to run weblogic with its http subsysten listen to port 80.
    Any other service should listen to port 7001.
    Is it really impossible to let weblogic do this?
    Are there any plans to implement such a feature?
    Which alternatives do exist?
    TIA
    klaus

    No, it is impossible.
    Alternatives: use IIS/Apache/NES to listen to port 90, and use weblogic
    plugin to proxy request to WLAS (7001).
    Still, you can use one WLAS listent to port 80, and use HttpClusterServlet
    to proxy requests to another WLAS (7001)
    Cheers - Wei
    Klaus Pittig <[email protected]> wrote in message news:[email protected]..
    I'd like to run weblogic with its http subsysten listen to port 80.
    Any other service should listen to port 7001.
    Is it really impossible to let weblogic do this?
    Are there any plans to implement such a feature?
    Which alternatives do exist?
    TIA
    klaus

  • 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" !

  • Multiple listen ports for one weblogic instance

    Can anybody confirm that you can have only one listen port defined for a single
    weblogic instance (i.e. one instance cannot be listening to multiple ports at
    the same time)?
    Thanks

    you can have multiple ip's assigned to the same box
    and bind each WLS instance to a unique which will listen
    on the same port.
    Kumar
    Gary Wong wrote:
    Can anybody confirm that you can have only one listen port defined for a single
    weblogic instance (i.e. one instance cannot be listening to multiple ports at
    the same time)?
    Thanks

Maybe you are looking for

  • Unable to access MSDB on Integration Services

    Hi all I have a little problem with my IS Server. I am using Windows Server 2003 64bit and IS 9.0.1399. I have two named instances for databases. I am able to connect to Intergration Services just with the Servername (no Instance Name) and I see the

  • E-mailing Report :VERY URGENT!!!

    Hi, I'm trying to e-mail a single report to different persons.In fact the report contains all the emp's data which is to be e-mailed to their respective managers.I'm using SRW.RUN_REPORT function in a parent report to fetch data from a child report.

  • HT1338 How to Reinstall ilife apps and ICal from Original disc...

    My hard drive crashed. With my new hard drive, I somehow no longer have Calendar (iCal), Pages, Numbers or Keynote. I have my original discs from getting my computer July of 2011. How do I reinstall the apps I've lost? I don't want to mess up any oth

  • Adobe Reader X Crashing

    Every time I try to create a PDF plot file, I receive an error message.  It says, "PDF-X Change Driver Helper has encountered a problem & needs to close".  I then have to reboot my computer after it does that.  I have uninstalled the program, reinsta

  • Why can't I use Roboform with the new version?

    You keep asking me to upgrade to the new firefox, but it does not use Roboform. Why can't I use roboform? Without Roboform, I can't use Firefox!