Hi,
again.
At 17:30 14.3.2000 -0500, you wrote:
>
>> >How do I go about doing this with qmail? Esp since I will
>> >be sending this mail unaltered from the old mailserver to
>> >the new qmail host (in the mailhub setup, your client
>> >doesnt touch the headers, its all up to the mailhub right?)
>>
>> I agree with Chareles for this item.
>
>Well, I agree that we should be setting these things in
>the MUA, but let me ask you an embarassingly stupid question.
>sendmail masquerading feature -- how does qmail deal
>with this?
>
>I have a box where people have shell access, which
>has a name shell.mydomain.com (its using sendmail),
>my second machine mailhost.otherdomain.com is my qmail
>host.
>
Ok lets take that scenario. People on shell.mydomain.com have some kind of
MUA (eg. Netscape) and shell.mydomain.com employs sendmail from here.
>Now I want people on shell.mydomain.com to send
>mail through mailhost.otherdomain.com,
-- Wait. You may distinguish in the MUA between a POP3 (receive) host
(which should be shell.mydomain.com) and a SMTP (sending) host -
mailhost.otherdomain.com. But obviously, thats not what you want.
>but I need
>mailhost to rewrite the address
>from [EMAIL PROTECTED] to [EMAIL PROTECTED],
>and in some cases from [EMAIL PROTECTED]
>to [EMAIL PROTECTED] .
-- Ok. That means effectively that mailhost.otherdomain.com receives SMTPD
Mail from shell.mydomain.com and rewrites the address. Otherwise, QMAIL
will transparently forward the Mail.
>An example
>of how to do this with .qmail files would be
>really helpful.
-- Not just this.
(1) You have to convince shell.mydomain.com to use mailhost as the first
SMTP hop.
(2) mailhost has to catch the Mail and to interpret it to be local. Check
the relayclient section in SPAMCONTROL readme.
(3) Check the QMAIL add-on "newaliases" or even better "fastforward" and
install it.
(4) Put the users/hosts/domains in a file like you do it for sendmail's
alias mechanism and employ fastforward as described.
(5). Include the following lines into the file
/var/qmail/alias/.qmail-default:
|/var/qmail/bin/fastforward -p /var/qmail/etc/rewritten.cdb
|/var/qmail/bin/forward "$LOCAL"@"$HOST"
Here, rewritten.cdb is the fastforwarding database including any address
you may need to be rewritten (see 4). Any other address will stay as-is.
Cheers.
eh.
PS: Sorry. Nothing is easy with QMAIL - but its working well thereafter.
+-----------------------------------------------------------------------+
| fff hh Dr. Erwin Hoffmann |
| ff hh |
| ff eee hhhh ccc ooo mm mm mm Wiener Weg 8 |
| fff ee ee hh hh cc oo oo mmm mm mm 50858 Koeln |
| ff ee eee hh hh cc oo oo mm mm mm |
| ff eee hh hh cc oo oo mm mm mm Tel 0221 484 4923 |
| ff eeee hh hh ccc ooo mm mm mm Fax 0221 484 4924 |
+-----------------------------------------------------------------------+