Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Sendmail - How do I change the ports being used? My OS is Debian woody. Any and all help appreciated. Thanks...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2005
    Location
    Canada
    Posts
    17

    Sendmail - How do I change the ports being used?


    Sendmail - How do I change the ports being used?

    My OS is Debian woody.

    Any and all help appreciated.

    Thanks

  2. #2
    Linux Guru kkubasik's Avatar
    Join Date
    Mar 2004
    Location
    Lat: 39:03:51N Lon: 77:14:37W
    Posts
    2,396
    Can you give us more of an idea of what your are trying to accomplish? Something like iptables or any variety of port forwarding software is easy to use, also man sendmail might turn up the config file that holds that.
    Avoid the Gates of Hell. Use Linux
    A Penny for your Thoughts

    Formerly Known as qub333

  3. #3
    Just Joined!
    Join Date
    Jan 2005
    Location
    Canada
    Posts
    17
    Basically I want to use port 5110 and 5025 instead of 110 and 25.

    I have a different windows mail server that I want sendmail to send mail to but it runs on the standard ports +5000.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    Quote Originally Posted by Gimili
    Basically I want to use port 5110 and 5025 instead of 110 and 25.

    I have a different windows mail server that I want sendmail to send mail to but it runs on the standard ports +5000.
    I think for this you will have to scroll down the sendmail.cf file in /etc/mail
    it is huge and I don't know exactly how to get there but be patient and it wouldn't hurt to puruse the file anyway
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  6. #5
    Just Joined!
    Join Date
    Jan 2005
    Location
    Canada
    Posts
    17
    Thanks for the reply. I searched the sendmail.cf file and I couldn't find 110 or 25.

  7. #6
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    I will look into it.
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  8. #7
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    Ok I found it in the .cf file here you go:

    (Do yourself a favor and backup your origional version first)

    cp sendmail.cf sendmail.cf.orig
    then edit sendmail.cf

    Look for this line in your .cf file

    "DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')"

    replace "Port=smtp" to Port=5025 and Addr=127.0.0.1 to Addr=0.0.0.0
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  9. #8
    Just Joined!
    Join Date
    Jan 2005
    Location
    Canada
    Posts
    17
    All I have that is similar is:

    # SMTP daemon options
    O DaemonPortOptions=Name=MTA
    O DaemonPortOptions=Port=587, Name=MSA, M=E

    # SMTP client options
    #O ClientPortOptions=Family=inet, Address=0.0.0.

  10. #9
    Linux Engineer adrenaline's Avatar
    Join Date
    Aug 2004
    Location
    Seattle, Washington
    Posts
    1,058
    I think you went too far down. What you are looking for is closer to the top
    try this

    su -
    <password>
    cd /etc/mail
    less sendmail.cf
    /127.0.0.1
    That should take you to that line
    If you are still having difficulty let me know
    Some people have told me they don't think a fat penguin really embodies the grace of Linux, which just tells me they have never seen a angry penguin charging at them in excess of 100mph. They'd be a lot more careful about what they say if they had.
    -- Linus Torvalds

  11. #10
    Just Joined!
    Join Date
    Jun 2011
    Posts
    4
    Why would you change the address from 127.0.0.1 to 0.0.0.0 in your directions for changing ports for pop and smtp?

    Look for this line in your .cf file

    "DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')"

    replace "Port=smtp" to Port=5025 and Addr=127.0.0.1 to Addr=0.0.0.0


    Just curious why the localhost address would change from 127.0.0.1 to 0.0.0.0?

    Thanks for your help.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •