Re: [PATCH] send-email: allow sendmail binary to be used instead of SMTP
- From
Martin Langhoff <martin.langhoff@gmail.com>
- Date
- May 15, 2006, 22:07 UTC
- Message-ID
- <46a038f90605151507p313386efv7998b2376cd85b2c@mail.gmail.com>
- In-Reply-To
- <7vhd3rgfey.fsf@assigned-by-dhcp.cox.net>
On 5/16/06, Junio C Hamano <junkio@cox.net> wrote:
> Ryan Anderson <ryan@michonline.com> writes: > > > I think, in practice, that /usr/lib/sendmail will exist anywhere you hve > > something running on port 25, at least on unixy machines.
...
> exim, postfix and friends?
/usr/sbin/sendmail is there for any current MTA, so if qmail, exim, postfix, sendmail and all MTAs I can think of install a working sendmail binary.
Newish desktop-targetted distros (and MacOSX) are leaning towards not running an MTA on port 25 any more unless you ask them for it. They'll do crontab-driven queue flushes, so the messages you feed to /usr/sbin/sendmail will be sent a few minutes later.
That is why IMHO /usr/sbin/sendmail is a better default than localhost:25, but I can live with either ;-)
> I used to know somebody who port-forwarded 25/tcp to central > smtp server from smaller machines in her intranet installation,
I can understand that, but I think the changes in unixy distros mentioned above make it unnecessary today.
cheers,
martin