That's because your MTA (Sendmail, Qmail or something) does not alter
the `envelope from' address of mail that originates from your machine.
When I was trying to find my way around, and send a bug report with
send-pr, the changes I had to make to my Sendmail configuration were
simple. I just had to configure Sendmail to make the envelope-from of
all mail coming from my personal account look like it was coming from
a valid e-mail account I have.
My machine thinks that it's name is "hades.hell.gr", an address that
does not resolve. So, I changed my /etc/mail/sendmail.mc to include:
FEATURE(`genericstable', `btree -o /etc/mail/genericstable')dnl
GENERICS_DOMAIN(`hell.gr')dnl
FEATURE(`generics_entire_domain')dnl
I rebuilt my sendmail.cf, and created a file called genericstable in
/etc/mail with the line:
cha...@hades.hell.gr cha...@labs.gr
cha...@hell.gr cha...@labs.gr
Rebuilt the genericstable.db table with:
% makemap btree genericstable < genericstable
And, finally restarted my Sendmail :-)
# killall -HUP sendmail
This way, when I do not specify an envelope address with the -f option
to /usr/sbin/sendmail, it uses cha...@hades.hell.gr which gets mapped
to cha...@labs.gr with genericstable, and the logs say something
similar to:
Oct 19 20:54:22 hades sendmail[21724]: f9JHsLU21724: from=cha...@labs.gr, \
size=2706, class=0, nrcpts=0, \
msgid=<20011019205421.A21519 @hades.hell.gr>, relay=charon@localhost
The envelope-from address as you can see has been rewritten (that is
what from=cha...@labs.gr means).
To Unsubscribe: send mail to majo...@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message