LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-17-2002, 09:14 PM   #1
explorer1979
Member
 
Registered: Aug 2001
Location: Hong Kong, China
Distribution: CentOS, Red Hat, Mandrake, Debian
Posts: 88

Rep: Reputation: 15
Question 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
 
Old 09-17-2002, 10:18 PM   #2
jpweston
Member
 
Registered: Mar 2002
Location: Sacramento, CA
Distribution: Slackware 8.1; Debian 3.0
Posts: 222

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

j.
 
Old 09-18-2002, 06:54 PM   #3
gway
LQ Newbie
 
Registered: Sep 2002
Distribution: Slackware
Posts: 24

Rep: Reputation: 15
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')
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail port 25 gigi Linux - Security 2 02-16-2005 05:54 PM
Sendmail settings. Will sendmail always answer "helo". (and tracing blocked port 25) Bjorkli Linux - Networking 5 05-24-2004 03:13 AM
Setting System Time: kernel in wrong time zone warrenweiss Linux - General 7 05-15-2004 03:25 PM
Using sendmail through port 80? registering Programming 7 11-11-2003 10:31 AM
Sendmail Port other than 25 DD2 Linux - Networking 1 01-23-2002 03:30 AM


All times are GMT -5. The time now is 02:41 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration