9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] A question on remotemail
@ 2008-07-08 15:00 Christian Kellermann
  2008-07-08 15:25 ` erik quanstrom
  2008-07-08 16:52 ` Russ Cox
  0 siblings, 2 replies; 9+ messages in thread
From: Christian Kellermann @ 2008-07-08 15:00 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 1070 bytes --]

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 

'From: "ckeen" <Christian.Kellermann@nefkom.net>' 

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' 

and changed remotemail with this diff:

14c15,19
< exec /bin/upas/smtp -h $fd $addr $sender $*
---
> 
> remotename=`{/bin/upas/aliasmail $sender}
> if ( test -n $remotename ) { sender = $remotename }
> 
> 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

-- 
You may use my gpg key for replies:
pub  1024D/47F79788 2005/02/02 Christian Kellermann (C-Keen)

[-- Attachment #2: Type: application/pgp-signature, Size: 202 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-07-08 18:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-08 15:00 [9fans] A question on remotemail Christian Kellermann
2008-07-08 15:25 ` erik quanstrom
2008-07-08 15:56   ` Christian Kellermann
2008-07-08 16:05     ` erik quanstrom
2008-07-08 16:21       ` Christian Kellermann
2008-07-08 16:32         ` Christian Kellermann
2008-07-08 16:45           ` erik quanstrom
2008-07-08 16:52 ` Russ Cox
2008-07-08 18:28   ` Christian Kellermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).