LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to setting sendmail listrening more than one port at the same time? (https://www.linuxquestions.org/questions/linux-general-1/how-to-setting-sendmail-listrening-more-than-one-port-at-the-same-time-30607/)

explorer1979 09-17-2002 09:14 PM

How to setting sendmail listrening more than one port at the same time?
 
Dear all Linux user:

I want to ask a questions, it is about sendmail.

My problems is my ISP blocks the port 25, so I can't send mail at home, but I can send by company or using my friend's ISP

How to setting sendmail that can listrening more than one port at the same time like Apache?

I want my sendmail can listren the default port 25 and I want to add a new port it listren to is port 1801

Do anyone can let me know how to setting in RH 7.2?

Thank

jpweston 09-17-2002 10:18 PM

Take a look at /etc/services That's where your port assignments are. You can change and, I believe, add ports there.

j.

gway 09-18-2002 06:54 PM

Hi,
I think that you have to change the DaemonPortOptions in file sendmail.cf . Look at this instructions from sendmail's site (www.sendmail.org).

-- Gway

DaemonPortOptions
Previously, sendmail would only listen on one port
Needed to run multiple sendmail daemons to list to multiple ports

Now one daemon can listen on multiple ports on multiple interfaces

Each "daemon" can have different behavior, controlled through new DaemonPortOptions syntax
Specify one DaemonPortOptions setting for each "daemon"
Configuration options: O DaemonPortOptions=Name=name, Modifiers=modifiers, Family=family, Address=addr, Port=port, Listen=listen, SndBufSize=size, RcvBufSizesize

Name= specifies a unique name for that daemon, used in logging (daemon=) and the new ${daemon_name} macro:
Feb 24 14:07:09 horsey sendmail[48955]: e1OM77i48955:
from=<gshapiro@example.com>, size=2163, class=-60, nrcpts=1,
msgid=<200002242206.OAA22862@katroo.example.COM>, proto=ESMTP,
daemon=example.net, auth=gshapiro@katroo.send,
relay=katroo.example.COM [10.246.26.35]

Modifiers= modifies the behavior of that daemon according to the following flags: Flag Description
a require SMTP authentication
b bind to interface through which mail has been received for outgoing message
c perform hostname canonification
f require fully qualified hostname
h use name of interface for outgoing HELO command
C don't perform hostname canonification
E disallow ETRN (see RFC 2476)

Address= specifies the address to listen on (default: all)
Port= specifies the port to listen on (default: smtp (25))
Family= specifies the protocol family (e.g., inet (IPv4) or inet6 (IPv6)) (default: both)

Listen= specifies the listen queue size
SndBufSize= specifies the network send buffer size
RcvBufSize= specifies the network receive buffer size

Example:
O DaemonPortOptions=Name=example.net, Addr=smtp.example.net
O DaemonPortOptions=Name=endmail, Addr=10.220.147.187, Port=smtp, Modifiers=bh
O DaemonPortOptions=Name=halcyondays, Addr=10.220.147.188, Port=25, Modifiers=bh
O DaemonPortOptions=Port=587, Name=MSA, M=E

DAEMON_OPTIONS(`Name=example.net, Addr=smtp.example.net')
DAEMON_OPTIONS(`Name=endmail, Addr=10.220.147.187, Port=smtp, Modifiers=bh')
DAEMON_OPTIONS(`Name=halcyondays, Addr=10.220.147.188, Port=25, Modifiers=bh')
DAEMON_OPTIONS(`Port=587, Name=MSA, M=E')


All times are GMT -5. The time now is 12:20 PM.