On 2010-10-28, Chris G <[email protected]> wrote:
> On Thu, Oct 28, 2010 at 01:00:43PM +0200, Matthias Apitz wrote:
>> El d?a Thursday, October 28, 2010 a las 11:50:23AM +0100, Chris G escribi?:
>>
>>> I have a small home LAN and have one machine set up as a server
>>> machine. That machine has postfix on it fully configured to both send
>>> and receive mail.
>>>
>>> Is it possible to use the sendmail (well, postfix's sendmail) on that
>>> machine from other machines on the LAN to send mail? Otherwise I
>>> have to configure each machine my ISP's smarthost SMTP details
>>> whereas if I use my LAN machine's sendmail I only need to set up the
>>> smart/relay host in one place.
>>>
>>> If it is possible how do I configure the various mutts to use it?
>>
>> You could configure each sendmail to use your central box as relay
>> (smarter host) or you can set in each mutt something like:
>
> But then I have to install and configure an MTA on every machine.
Right.
>> set smtp_url=smtp://your-central-box/
>>
> Yes, I guess this is the way to do it, just seems wrong somehow to
> convert it all to SMTP and back.
Why does that seem wrong? You want to transfer mail over a network.
That's what SMTP is designed for: the letters stand for Simple Mail
Transfer Protocol.
> Will it work just as above with no user name or password?
That depends on how you have postfix configured.
> I guess I can just try it.
I guess so.
Another (IMO worse) option would be to set up a shellscript named
"sendmail" on each of the clients and have that shellscript do
something like "ssh myMailServer /usr/lib/sendmail $*". If you do that
you'll probably want to set up either ssh public-key authentication or
use something like ssh-add/ssh-askpass.
--
Grant Edwards grant.b.edwards Yow! Oh my GOD -- the
at SUN just fell into YANKEE
gmail.com STADIUM!!