Re: Can't send mail from my machine:
Hi Matt,
I have gotten rewriting working correctly now, though I don't understand
exactly why what I ended up having to do worked.
My rewrite configuration in /etc/exim.conf looks like this:
######################################################################
# REWRITE CONFIGURATION #
######################################################################
# There are no rewriting specifications in this default configuration
file.
# This is an example of a useful rewriting rule---it looks up the real
# address of all local users in a file
*@* ${lookup{$1}lsearch{/etc/email-addresses}\
{$value}fail} bcfrF
# End of Exim configuration file
Any the file /etc/email-addresses (which I created) looks like this:
gandalf:fsblk@aurora.alaska.edu
where `gandalf' is my username on my home linux box, `fsblk' my username
on my isp, and `aurora.alaska.edu' my isp's host name. The $1 in the
exim.conf expands to the contents of the first * (username part of addr),
which exim then `lookup's via an `lsearch' in `/etc/email-addresses'.
$value is then set to the second element in the colon-deliminated list in
/etc/email-addresses. The wierd part is that if I use *@aurora.alaska.edu
in exim.conf, the rewrite doesn't happen, even when I send to
fsblk@aurora.alaska.edu. Also, I've been told that this *@* rule is
horrible, since it rewrite local mail on my machine with the wrong
address. I havn't managed to ferret a solution to this out of the docs
though :)
__
GNU GPL: "The Source will be with you... always."
Britton Kerin
On Thu, 31 Dec 1998 matt@netnet.net wrote:
> On Sun, Dec 27, 1998 at 10:43:53PM -0900, Britton wrote:
> >
> > I would try exim instead of smail, I've found it easier to set up with
> > nice docs. I'm trying to get address re-writing working now, but at least
> > I can send messages (albeit with my-local-username@my-isps-hostname for a
> > From: address). The rewrite stuff has fairly good instructions. I think
> > I got errors something like yours also, I think it turned out to be a
> > question of picking the right response when asked for a hostname at some
> > point in there and restarting inetd or some deamon like that (helpful
> > huh?). Anyway, good luck, and let me know if you get rewriting working
> > logically for a ppp connected machine :)
>
> I replaced smail with exim, and had basically the same problem. However, exim's error email was formatted slightly better - just enough to point me in a direction that allowed me to get to the point you were. i.e., I can send messages (albeit with my-local-username@my-isps-hostname for a From: address.
>
> I will let you know if I improve this situation.
>
> Thanks,
>
> Matt Miller (mmiller@netnet.net)
> --------------------------------------------------------------------
> Q: How many Microsoft engineers does it take to change a light bulb?
> A: None. They just define Darkness(tm) as the new industry standard.
>
>
> --
> Unsubscribe? mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null
>
>
Reply to: