Sendmail on a LAN
Chris Adams
cmadams at hiwaay.net
Tue Aug 17 19:53:35 UTC 2010
Once upon a time, JD <jd1008 at gmail.com> said:
> Well, that would require that sendmail would have to listen
> on that alternate port. How is that accomplished?
Change DaemonPortOptions.
If you are using the .mc (recommended) way of configuring sendmail, do
something like:
dnl for local connections
DAEMON_OPTIONS(`Port=smtp, Name=MTA')
dnl for outside connections redirected
DAEMON_OPTIONS(`Port=1234, Name=EMTA')
If your system has multiple IPs (e.g. a router with outside and inside
interfaces), you could restrict which IP and port combos are used (if
you do this, you usually want to listen on localhost as well):
dnl for local connections
DAEMON_OPTIONS(`Port=smtp, Address=192.168.1.1, Name=MTA')
DAEMON_OPTIONS(`Port=smtp, Address=127.0.0.1, Name=LMTA')
dnl for outside connections redirected
DAEMON_OPTIONS(`Port=1234, Address=10.1.1.1, Name=EMTA')
--
Chris Adams <cmadams at hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.
More information about the users
mailing list