About HyperNews
 Next-in-Thread Next-in-Thread
 Next Message Next Message

Question sender and recipient rewrite not working.. cgiwrap? 

Forum: HyperNews and Email
Date: 2000, Jul 24
From: Richard Grant

Hi!

I am having trouble with sender/recipient rewrites in outgoing mail. Specifically, I am unable to change the default sender and recipient.

I am using latest HyperNews/cgiwrap and have a test forum working as expected. HyperNews runs as "hypnews" user via cgiwrap.

Outgoing mail appears in my maillog like:

  sendmail.. from=Owner-hypnews@..
  sendmail.. to=hypnews@..
  sendmail.. to=richard@glen-echo.md.us

In hnrc I have:

  $hnEmail = 1;
  $mail_admin = 'townnews@glen-echo.md.us';
  $sendmail = '/usr/lib/sendmail -oi -oem';
  $mail_to = 'TownNews@glen-echo.md.us';
  $mail_from = 'Owner-TownNews@glen-echo.md.us';
  $mail_sender = 'Owner-TownNews@glen-echo.md.us';
  $allowEmailIn = 1;

I have adjusted sendmail.cf with "Thypnews".

I have created an Admin user for "townnews@glen-echo.md.us".

In etc/aliases I have (I exec'd newaliases after mod):

  Owner-TownNews: richard
  TownNews: "| /opt/HyperNews/.scripts/mail-incoming.pl"

Received mail from the list in an Outlook 2K client has:

  From: richard@glen-echo.md.us
  to: hypnews@glen-echo.md.us

A sample header looks like:

  Return-Path: <Owner-hypnews@glen-echo.md.us>
  Received: (from hypnews@localhost)
    by mail.glen-echo.md.us (8.9.3/8.9.3) id XAA17302;
    Sun, 23 Jul 2000 23:19:38 -0400
  Date: Sun, 23 Jul 2000 23:19:38 -0400
  To: hypnews@glen-echo.md.us
  From: "Richard Grant" <richard@glen-echo.md.us>
  Errors-To: Owner-TownNews@glen-echo.md.us
  Content-Type: text/plain; charset=iso-8859-1
  X-HN-Forum: test forum
  Subject: test 2 of email mods
  Message-ID: <"/test/5"@www.glen-echo.md.us>
  X-Mailer: HyperNews at www.glen-echo.md.us 1.10
  X-Hn-Loop: http://www.glen-echo.md.us/cgi-
    bin/cgiwrap/hypnews/HyperNews/get.cgi/test/5.html
  Precedence: list
  Errors-To: Owner-TownNews@glen-echo.md.us
  Newsgroups: http://www.glen-echo.md.us/cgi-
    bin/cgiwrap/hypnews/HyperNews/get.cgi/test.html

What do I need to do to get the system to respect the specifications in hnrc? In my maillog, I was expecting to see:

  sendmail.. from=Owner-TownNews@..
  sendmail.. to=TownNews@..
  sendmail.. to=richard@glen-echo.md.us

And in my mail message I expected:

  From: richard@glen-echo.md.us
  to: TownNews@glen-echo.md.us

I am posting here because it seems possible the problem could be caused by running as the hypnews user via cgiwrap. It could also have something to do with sendmail and outgoing mail from an alias.

Any advice greatly appreciated.

R

 Next-in-Thread Next-in-Thread
 Next Message Next Message
Inline:
 1 1
 All All
Outline:
 1 1
 2 2
 All All

1 None: mail mysteries by liberte@holonexus.org, 2000, Jul 25

 Add Add
to: "sender and recipient rewrite not working.. cgiwrap?"

 Members Members
 Subscribe Subscribe
 Admin Mode Admin Mode
 Show Frames Show Frames
 Help Help


Installation Topics:
  • Creating Base Articles, also called Forums.
  • Security Issues regarding HyperNews
  • Bidirectional E-mail gateway

    Earn money with Scour!
    Google
     
    Web www.HyperNews.org
    Earn money with Scour!