[imp] local and internet mail delivery

Lars Hecking lhecking@nmrc.ucc.ie
Wed, 25 Apr 2001 16:06:30 +0100


Lars Maschke writes:
> The location is a school. Internal emails can be send from one workstation
> to another. In addion every workstation can send emails in the internet. The
> recipient in the internet can that not reply the message because he/she gets
> an email from e.g. pc0@intern.int, pc1@intern.int
> 
> how can i tell sendmail or horde-imp that every email that goes outside has
> the adress school@foo.com
> and every email sending in the intranet the from-header: pcxx@intern.int

 This is an administration nightmare! Use the same domain and addresses for
 everything. _Much_ less hassle in the long run.

 If (and only if) all mail going out to the internet, and that includes
 mail from imp, is going through a central mail gateway, you can do a
 canonical rewrite or masquerade on the gateway. And remember to masquerade
 the envelopes as well.