From owner-freebsd-questions@FreeBSD.ORG Wed Aug 13 08:01:32 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F9D237B404 for ; Wed, 13 Aug 2003 08:01:31 -0700 (PDT) Received: from hauptpostamt.charite.de (hauptpostamt.charite.de [193.175.66.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42C9D43F3F for ; Wed, 13 Aug 2003 08:01:30 -0700 (PDT) (envelope-from alexander.haderer@charite.de) Received: from postamt1.charite.de (postamt1.charite.de [193.175.66.246]) by hauptpostamt.charite.de (Postfix) with ESMTP id 41D4C15C011; Wed, 13 Aug 2003 17:01:06 +0200 (CEST) Received: from chaplin.charite.de (chaplin.str.charite.de [192.168.202.88]) by postamt1.charite.de (Postfix) with ESMTP id DF32A633B3; Wed, 13 Aug 2003 17:01:05 +0200 (CEST) Message-Id: <5.2.0.9.1.20030813163239.01a35490@postamt1.charite.de> X-Sender: afrika@postamt1.charite.de X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Wed, 13 Aug 2003 16:55:44 +0200 To: Scott Mitchell , freebsd-questions@freebsd.org From: Alexander Haderer In-Reply-To: <20030813082021.GA31320@llama.fishballoon.org> References: <20030812184703.GC14078@devil.stderror.at> <5.2.0.9.1.20030812180445.0196f180@postamt1.charite.de> <20030812184703.GC14078@devil.stderror.at> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new at charite.de Subject: Re: How to send a PR without send-pr? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2003 15:01:33 -0000 At 09:20 13.08.2003 +0100, Scott Mitchell wrote: >On Tue, Aug 12, 2003 at 08:47:03PM +0200, Toni Schmidbauer wrote: > > > > trying to answer q2 because q1 was too complicated :-) > > > > edit /etc/mail/submit.cf and change > > > > D{MTAHost}[localhost] > > > > to > > > > D{MTAHost}[] > > > > restart sendmail. this is untested, so let me know if it works > > for you. > > > > because relaying over is only permitted > > after a successfull pop login, use fetchmail just before sending > > the mail: > > > > fetchmail -c -p pop3 -u > >Possibly easier to edit /etc/mail/freebsd.submit.mc. Change the last line: > >FEATURE(`msp', `[127.0.0.1]')dnl > >to > >FEATURE(`msp', `your.mail.server')dnl >... I tried Scott's version together with fetchmail, it did't work. After fetchmail ... I did a "mail known@email.address" and I get a dead.letter without any error information. Thanks for your answers. Meanwhile I got send-pr working by doing two things: 1. send-pr is just a shell script which calls /usr/sbin/sendmail to deliver the message. send-pr reads the env MAIL_AGENT. When setting the env Variable MAIL_AGENT to "/usr/sbin/sendmail -oi -t -falexander.haderer@charite.de" instead of the default "/usr/sbin/sendmail -oi -t" it worked. Here -f did the trick because our mailserver only allows "relaying" mail to outside when the "originator" has a valid public email address which is known to our mail server. 2. Modify /etc/mail/freebsd.cf: add define(`SMART_HOST' `our.mail.server') This works. Just for curiousity: Is there a place in /etc/mail where I can tell my sendmail daemon that: - it should use -fpublic.address@charite.de when sending mail - it maps local users like "jd" to joe.doe@charite.de for this -f thing I dont want to read my mail on the FreeBSD machine, it would be just nice if a "mail xy@abc.def < somefile" would work, because now I have to transfer somefile to my Winbox' Email programm somehow. with best regards, Alexander Haderer -- ------------------------------------------------------------------ Alexander Haderer Charite Campus Virchow-Klinikum Tel. +49 30 - 450 557 182 Strahlenklinik und Poliklinik Fax. +49 30 - 450 557 117 Sekr. Prof. Felix Email alexander.haderer@charite.de Augustenburger Platz 1 www http://www.charite.de/rv/str/ 13353 Berlin - Germany ------------------------------------------------------------------