"Chris Davies" <chris-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> (E-Mail Removed) wrote:
>> The docos for my prefered front-end mentions 'MailQ'.
>> `man mailq` indicates that that is a link to sendmail.
>
> The mailq command lists the contents of the mail queue. (That's email
> that has not yet been delivered.)
>
>
>> The source-code of the front-end says:
>> "/usr/lib/sendmail -oi -t < /tmp/Mailer.Send"
>
> That queues a message contained in "/tmp/Mailer.Send" to the mail
> subsystem (whether or not that subsystem is implemented by the application
> called "sendmail"; you'll find that /usr/lib/sendmail always exists). The
> submission program is expected to scan the message headers for To, Cc,
> Bcc lines to work out where to deliver the message.
>
>
>> Apparently the font-end was supposed to `put the outgoing mail to
>> /tmp/Mailer.Send` before calling `sendmail`.
>
> Looks like it, yes.
>
>
>> I need to test/bebug the front-end and sendmail separately.
>
> You could (temporarily) replace /usr/lib/sendmail with a simple script
> that captures date/time, command line arguments, and stdin, to a file. You
> can then see what was going to be passed to the mail subsystem.
>
> #!/bin/sh
> exec 1>>/tmp/my-sendmail.log
> echo "Date:" `date`
> echo "Args ($#): $*"
> echo "STDIN:"
> sed 's/^/| /'
> echo
> exit 0
>
>
>> Q. how can I feed a <mailMesg> to sendmail to be sent ?
>
> Another poster has given you a one-liner to try this. You can also try
> this:
>
> uptime | mail -s 'TEST MESSAGE' -v $USER
>
>
>> What's the minimal format besides fields:
>> "To: ","Cc: ", "Bcc: ", 'Subject: " & body terminated with dot-line?
>
> From: Me
> To: You
>
> some message goes here
>
> In your context you do not need the trailing dot; EOF is sufficient.
>
>
>> How can I test/debug using the 'loop'/127.0.0.1 to avoid dialup
>> costs?
>
> Unless you (or someone) has configured your mail subsystem as a satellite
> node, you can email any local account just "as is", with an @{domain}
> bit after the username.
>
> Chris --------------
Thanks, that all tests OK.
But my <front end> can't <pipe to sendmail>.
It can only read & write *nix files. But a pipe IS a file ?
So, I'll just let it write to a file and then have a script to
<pipe the-file to sendmail>.
So it seems that I can get my <From: To: Subject: body>
to sendmail. Now I need sendmail to forward the mail to my
ISP, and get past the TXAuthenticate protocol.
Obviously sendmail needs to know/have-access-to my:
SMTP server
UserID
Password
? what else ?
On an earlier linux version these were set up.
Now I can't see how/where to set them.
I've always used a dial-up with specific SEND-MAIL-NOW, and
not <mail gets sent automatically in the background> and once
when I had:
cat JapWME | sendmail -t -f
(E-Mail Removed)
it repeatedly sent an email.
I don't know why that happened, and I don't want it to
happen again.
Perhaps that line was uncommented in the script, which did
my online-tasks; so it re-sent each time the script was run?
Obviously sendmail keeps an <outbox> and it removes the
item once it gets an <accepted signal> from the SMTP ?
Right now, I haven't got access to my dialup & am using a crappy
M$+wireless-modem. But I want all the parts setup for when I get
access to dialup again.
Does this look right? :-
-> tail /var/log/maillog == ...
Sep 11 09:37:33 localhost sendmail[16782]:
p8B7bXKn016782: to=root, ctladdr=root (0/0), delay
....dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Why is "Connection refused by [127.0.0.1]" ?
Is that relevant to sendmail-relaying-to-my-ISP ?
The confusing aspect, is that apparently, sendmail will store
the post, and automatically send, when it gets access to ppp.
I prefer to have CONTROL: to say 'NOW send that mail',
via ppp -> serial-port -> modem.
== TIA