AIX configuration alternate SMTP port for Relay Server

Posted on 2011-10-18
Last Modified: 2012-05-12
Have previously configured AIX server for "smart relay" DS[hostname]. Trying to find the configuration value to change the relay to a specific port (not default SMTP).

Question by:gskortz
    LVL 19

    Assisted Solution

    Look for the line that says something like:

    O DaemonPortOptions=Port=smtp, Name=MTA

    And change 'smtp' to the numerical port you'd like to listen on instead and then restart sendmail.

    Accepted Solution

    This is the configuration to alter the local host listening port rather than the port to be used to connect to the smart relay host (DS). The relay host email administrator wishes to segerate the relay traffic on separate port. Did receive a response from IBM support that indicates the change should be to /etc/services smtp value entry.


    Author Closing Comment

    The answer addressed a different requirement.
    LVL 19

    Expert Comment

    Oh, I see, so your daemon will still listen on port 25, but you want to use a 3rd party mail system running on something other than port 25 as your smart host?

    If that is the case, IBM is wrong, because changing the value of smtp in /etc/services to another port will also just change which port your system is listening for incoming connections on.  Let me know on the question above, and if that is affirmative, I'll get you info on changing that.
    LVL 19

    Expert Comment

    Here's how you modify your file (and then you'll have to do a make to create a new with a smart host on a different remote port:

    The specific line you're looking for is:

    define(`RELAY_MAILER_ARGS', `IPC $h 3325')dnl

    Change 3325 to whatever the value port that the other administrator gives you.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
    Easy CSR creation in Exchange 2007,2010 and 2013
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now