On Aug 21, 2007, at 8:53 PM, Neil Schneider wrote:
mailx is not a mail server. But that doesn't mean you can't run without one. If you only want to send postfix has a replacement for /usr/sbin/ sendmail which is the command line method for sending messages. I think if you have sendmail configured properly and use mailx, it should automatically find the sendmail binary if the address is outside the host, and send the mail. Someone will correct me if it's wrong, but AFAIK it uses /usr/sbin/sendmail -t to sendout without a running server.
Along these lines, I have at least a couple systems at work where we really only want an MTA available for local processes. Simplest thing we did was simply comment out all the smtp, smtps and submission lines in /etc/postfix/master.cf. Things locally submitted via the sendmail command, either by calling sendmail directly or by using something like mailx, still get forwarded on where they're supposed to, but I don't have to worry about listening on localhost, or having anything bind port 25.
main.cf can be as simple as: myhostname = localhost.localdomain mydomainname = localdomain relayhost = some.smtp.host.that.you.have.access.toIf you really wanted to get fancy, you can set up postfix to act as a client to an SMTP server that requires SMTP AUTH over TLS, which would be useful if you are a mobile hardcore command-line kind of person and use fetchmail/mailx for all your email needs. I've seen stranger. :)
Gregory -- Gregory K. Ruiz-Ade <[EMAIL PROTECTED]> OpenPGP Key ID: EAF4844B keyserver: pgpkeys.mit.edu
PGP.sig
Description: This is a digitally signed message part
-- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
