[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [msmtp-users] msmtp-1.2.4 and errors with mail server



On Wed, 08. Dec 2004, 23:43:45 -0500, James B. Hiller wrote:
> From: "James B. Hiller" <jhiller@...5...>
This line looks ok...

> First step, having an issue.  Spent a couple hours tonight trying to do
> this one, failing.  The syntax of the cat as you have it above doesn't
> get anything.  If I make it '/bin/cat - > /tmp/dumpmail', I do get stuff
> in a file, but what looks like the 'from' line is getting parsed by elm
> as a file name, so this syntax can't be right either.
> 
> Sorry I can't figure this out myself, but is there some syntax a little
> better that should work?  I just can't get this one right.  For ref,
> the 'usual' answer is /full/path/to/MTA/binary (i.e. /usr/sbin/sendmail),
> which of course runs as a daemon, and I'm pretty sure it's just treated
> as a data sink - so what you/I have should more or less work.  But it's
> not (except for the /bin/cat - case).

Set the MTA to /home/james/myscript.sh and put the following in this file:

------------------
#!/bin/sh
cat > ~/dumpmail 2>&1
------------------

or

------------------
#!/bin/sh
msmtp --debug [other options] -- you@...10... > ~/msmtpdump 2>&1
------------------


Martin