Hi,

I'm having some trouble setting up my MTAs. The situation is as
follows:


Server: provides dial-up connection to ISP, runs qmail
        qmail sends any non-local mail using smtp.SoftHome.net
          as remote SMTP server
        The remote SMTP server accepts mail only when envelope-sender
          and From: line are set to my mail-address
          ([EMAIL PROTECTED]).
        To get mail from my accounts, I'm running fetchmail to fetch it.

Workstation: runs exim
             exim sends any non-local to Server, using it as a relay
             exim does address-rewriting, using /etc/email-addresses


This works fine. I can send and receive mail reliably. Using
smtp.SoftHome.net to send mail to remote recipients instead of sending
it directly is required because I don't have a fixed IP address so
that I won't get error messages in case delivery of my mail
fails. Moreover, some stupid hosts won't accept my mail if sent
directly.

Now, I've set up exim to reject mails from some senders, using
/etc/exim.reject. This works fine, too: exim rejects mail from the
senders I specify, and the sender gets a mail like the following:


Return-Path: <>
Delivered-To: [EMAIL PROTECTED]
Date: 21 Jul 2001 14:10:46 -0000
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: failure notice

Hi. This is the qmail-send program at little.home.de.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<[EMAIL PROTECTED]>:
Connected to 192.168.0.1 but sender was rejected.
Remote host said: 550 rejected: administrative prohibition

--- Below this line is a copy of the message.

Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 6102 invoked by uid 5000); 21 Jul 2001 14:10:46 -0000
Date: Sat, 21 Jul 2001 16:10:46 +0200
From: server maintainer <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: eeeeee
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 1.0.1i

ddddddd


The problem is: If [EMAIL PROTECTED] sends mail and that mail is rejected by
exim, qmail would try to send the error message (as above) to
[EMAIL PROTECTED], thereby using smtp.SoftHome.net. But smtp.SoftHome.net
won't accept the error message because it is from
[EMAIL PROTECTED], not from [EMAIL PROTECTED]

What can I do to get the error messages sent? I don't want to replace,
on the server, qmail with exim, and it's not a good idea not to use
smtp.SoftHome.net as a relay.

Thus, I'd have to configure qmail to rewrite the From: and
envelope-sender to [EMAIL PROTECTED] when it tries to send such an
error message.

How can this be done? Is there maybe another good solution? Can qmail
be configured to reject mail from certain senders?


GH
-- 
Nieder mit der Mineralölsteuer!! Senkt die Benzinpreise!!

http://www.congressonlineproject.org/email.html:
> Timely, in-kind responses to e-mail provide the high-quality service
> that e-constituents expect, and failing to deliver it reflects poorly
> on Members of Congress.

Reply via email to