D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Redirecting STDOUT to SMTP



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

martin.gautier@xxxxxxxxxxxxx wrote:
>
> Thanks. Shutting Domino down so no SMTP server is running
gives exactly
> the same error. ie. I'm not getting that far (I can tell that
from the
> logs too). Mapping & aliasing is actually a trivial matter for
a Domino
> system - I've put those changes in place (and I know they work
because of
> other stuff like fetchmail that needs 'em).
>
> I've grepped my whole drive for mail.domain.co.uk that the
mail command
> seems to want to use but there's no reference (apart from in
my bash
> history where I've been pinging & tracerouting etc.) - I guess
that the
> hostname (ie. mail.xxx )is hard-coded into mail as the default
relay host.
> If I can point mail to the right relay host (ie. the Domino
MTA) then the
> canonical maps etc should kick in...

I think your problem is that "mail" defaults to trying to send
via sendmail, and you probably haven't configured sendmail. If
you post the whole error message it would help - headers and all.

Lotus do a command line mail client tool for *nix which you
could use instead of mail.

For straight sending (to local trusted servers) sendmail is fine
as it doesn't need to run as a daemon listening for incoming on
port 25 so it is only exploitable by local users (which is
usually acceptable - especially if you can stop paying them if
they mess up).

I've never configured the mail utility to work with anything but
sendmail or Postfix.

You find plenty on how to get sendmail to "send only", for most
purposes you can just configure sendmail correctly (which is
where I suspect your incorrect names are coming from), and then
the message is delivered via SMTP to a relay host. You only need
to get "smart" if it is likely the Notes SMTPA is often down or
busy, then you can run sendmail via cron to process any queued
messages that were not delivered to SMTPA first time.

Faced with sorting out sendmail for this - I'd probably just
install the Lotus Note command line client for mail - it aint
pretty but if you do Notes it will make more sense than sendmail.

So you were expecting;

mail -> SMTPA -> Domino

You probably need;

mail -> sendmail or Postfix to provide SMTP connection to a
relay -> SMTPA -> Domino

You could have;

Little Notes util who's name I forgot -> Domino

I dare say there exist (or maybe mail can do SMTP) command line
utilities that turn text into SMTP - I don't think mail does it
by default. They are trivial to write with sendmail, or Perl around.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+QFvYGFXfHI9FVgYRAuYCAJ4+wRFhj58AGguAnHOz2eTd0BwUCACgwvKU
s2LvQj26QvsiW3Fud511ohw=
=f+Ad
-----END PGP SIGNATURE-----

--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly