Geoff Roberts writes:
> I would like serialmail to look at the From: field of mail in the
> ppp Maildir and replace the From field which contains my own local
> pretend domain name with my username and the domain name of my ISP.
>
> So - From: [EMAIL PROTECTED]
> becomes - From: [EMAIL PROTECTED]
Ahhhh, I see. Wrong solution. Rewriting addresses is almost always
bad; avoid it if you can. Instead, create a list of local addresses:
[EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED] Stuff those addresses into
virtualdomains like this:
cd /var/qmail/control
cat >>virtualdomains <<EOF
[EMAIL PROTECTED]:alias-locally
[EMAIL PROTECTED]:alias-locally
[EMAIL PROTECTED]:alias-locally
EOF
And then redirect those addresses to the local host.
echo '|forward "$EXT2@localhost"' >~alias/.qmail-locally-default
Also a few things more:
grep '^localhost$' locals || (echo 'localhost' >>locals)
echo 'my.isp.com' >defaulthost
rm defaultdomain
Depending on your email client, you may need to fiddle around with
qmail-inject environment variables to get @my.isp.com as the outgoing
hostname.
--
-russ nelson <[EMAIL PROTECTED]> http://russnelson.com
Crynwr sells support for free software | PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213 | +1 315 268 9201 FAX | can outdo them. Homeschool!