9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Christian Kellermann <Christian.Kellermann@nefkom.net>
To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Subject: [9fans] A question on remotemail
Date: Tue,  8 Jul 2008 17:00:47 +0200	[thread overview]
Message-ID: <20080708150047.GG29253@hermes.my.domain> (raw)

[-- 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 --]

             reply	other threads:[~2008-07-08 15:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-08 15:00 Christian Kellermann [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080708150047.GG29253@hermes.my.domain \
    --to=christian.kellermann@nefkom.net \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).