From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 8 Jul 2008 17:00:47 +0200 From: Christian Kellermann To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Message-ID: <20080708150047.GG29253@hermes.my.domain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="t4apE7yKrX2dGgJC" Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-09) Subject: [9fans] A question on remotemail Topicbox-Message-UUID: de3a0880-ead3-11e9-9d60-3106f5b1d025 --t4apE7yKrX2dGgJC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear List, I have been fiddling with the mail setup on my CPU server. This machine has to deliver all mail to my ISPs smtp so I set the rewrite script to rewrite.gateway. The ISPs smtp rejected my mail though because it expected a From: line different to my $user@$site or the default $fd set in remotemail. I added a=20 'From: "ckeen" '=20 line to /mail/box/ckeen/headers but this does not seem to have any effect. I thus added a names.remote file with 'ckeen Christian.Kellermann@nefkom.net'=20 and changed remotemail with this diff: 14c15,19 < exec /bin/upas/smtp -h $fd $addr $sender $* --- >=20 > remotename=3D`{/bin/upas/aliasmail $sender} > if ( test -n $remotename ) { sender =3D $remotename } >=20 > exec /bin/upas/smtp -a -h $fd $addr $sender $* This does the work for me. Questions: - shouldn't the headers file work too? - how is this done right? Thanks for your opinions, Christian --=20 You may use my gpg key for replies: pub 1024D/47F79788 2005/02/02 Christian Kellermann (C-Keen) --t4apE7yKrX2dGgJC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (OpenBSD) iEYEARECAAYFAkhzgR8ACgkQXYob3Uf3l4hvDQCgmL6x541Ia0sGTBBaEpHgMAD8 6sMAoMcJ0ylbh9k9TXIJvP5Lf2VEk8OW =eYkl -----END PGP SIGNATURE----- --t4apE7yKrX2dGgJC--