Subject: email
To: None <port-hpcmips@netbsd.org>
From: Thomas Isenbarger <tom@isenbarger.us>
List: port-hpcmips
Date: 12/14/2006 07:31:19
--Apple-Mail-3-964802504
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed

I am trying to get email set up using the NetBSD guide (Chapter 24.   
Mail and News).  I am stuck at one of the first steps, setting up  
postfix.

hostname yields "moby.mad.wi.charter.com", so I set up /etc/postfix/ 
generic like so:

isen@moby.mad.wi.charter.com	isen@uwemail.edu
root@moby.mad.wi.charter.com	isen@uwemail.edu

(As an aside, I assume the domain information after "moby" will  
change when I am on another network.  How do I make the entries in / 
etc/postfix/generic work for any network? The "isen@moby" part will  
be the same.  I am thinking something like "isen@moby.*", but using  
whatever specific syntax the generic file needs to signify that.)

then I used postmap to create the db

I then edited /etc/postfix/main.cf to add the relayhost and  
smtp_generic_maps lines

I tried both

smtp_generic_maps = hash:/etc/postfix/generic

and

smtp_generic_maps = hash:/etc/postfix/generic.db

Now when I send a mail to 'isen' using sendmail, the received mail  
always says the mail is from 'isen@moby.mad.wi.charter.com', instead  
of substituting the 'isen@uwemail.edu' address from /etc/postfix/ 
generic.

Any help?
--Apple-Mail-3-964802504
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=ISO-8859-1

<HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; "><FONT class=3D"Apple-style-span" =
face=3D"Arial">I am trying to get email set up using the NetBSD guide =
(Chapter 24.=A0 Mail and News).=A0 I am stuck at one of the first steps, =
setting up postfix.</FONT><DIV><FONT class=3D"Apple-style-span" =
face=3D"Arial"><BR =
class=3D"khtml-block-placeholder"></FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial">hostname yields =
"moby.mad.wi.charter.com", so I set up /etc/postfix/generic like =
so:</FONT></DIV><DIV><FONT class=3D"Apple-style-span" face=3D"Arial"><BR =
class=3D"khtml-block-placeholder"></FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" =
face=3D"Arial">isen@moby.mad.wi.charter.com</FONT><SPAN =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</SPAN><FONT =
class=3D"Apple-style-span" face=3D"Arial"><A =
href=3D"mailto:isen@uwemail.edu">isen@uwemail.edu</A></FONT></DIV><DIV><FO=
NT class=3D"Apple-style-span" face=3D"Arial"><A =
href=3D"mailto:root@moby.mad.wi.charter.com">root@moby.mad.wi.charter.com<=
/A></FONT><SPAN class=3D"Apple-tab-span" style=3D"white-space:pre">	=
</SPAN><FONT class=3D"Apple-style-span" face=3D"Arial"><A =
href=3D"mailto:isen@uwemail.edu">isen@uwemail.edu</A></FONT></DIV><DIV><FO=
NT class=3D"Apple-style-span" face=3D"Arial"><BR =
class=3D"khtml-block-placeholder"></FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial">(As an aside, I assume the =
domain information after "moby" will change when I am on another =
network.=A0 How do I make the entries in /etc/postfix/generic work for =
any network? The "isen@moby" part will be the same.=A0 I am thinking =
something like "isen@moby.*", but using whatever specific syntax the =
generic file needs to signify that.)</FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial"><BR =
class=3D"khtml-block-placeholder"></FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial">then I used postmap to create =
the db</FONT></DIV><DIV><FONT class=3D"Apple-style-span" =
face=3D"Arial"><BR =
class=3D"khtml-block-placeholder"></FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial">I then edited =
/etc/postfix/main.cf to add the relayhost and smtp_generic_maps =
lines</FONT></DIV><DIV><FONT class=3D"Apple-style-span" face=3D"Arial"><BR=
 class=3D"khtml-block-placeholder"></FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial">I tried =
both</FONT></DIV><DIV><FONT class=3D"Apple-style-span" face=3D"Arial"><BR =
class=3D"khtml-block-placeholder"></FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial">smtp_generic_maps =3D =
hash:/etc/postfix/generic</FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial"><BR =
class=3D"khtml-block-placeholder"></FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial">and</FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial"><BR =
class=3D"khtml-block-placeholder"></FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial">smtp_generic_maps =3D =
hash:/etc/postfix/generic.db</FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial"><BR =
class=3D"khtml-block-placeholder"></FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial">Now when I send a mail to =
'isen' using sendmail, the received mail always says the mail is from =
'<A =
href=3D"mailto:isen@moby.mad.wi.charter.com">isen@moby.mad.wi.charter.com<=
/A>', instead of substituting the '<A =
href=3D"mailto:isen@uwemail.edu">isen@uwemail.edu</A>' address from =
/etc/postfix/generic.</FONT></DIV><DIV><FONT class=3D"Apple-style-span" =
face=3D"Arial"><BR =
class=3D"khtml-block-placeholder"></FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial">Any =
help?</FONT></DIV></BODY></HTML>=

--Apple-Mail-3-964802504--