An easier way to do this that works is to create ~alias/.qmail-default
and insert | forward "$[EMAIL PROTECTED]" (your inside mailserver)
which will forward all mail it does
not know about to the inside server. Then you have create a .qmail file
for local users to the server and forward mail to the inside server.
Then make sure ~/qmail/control/locals has the domain that it will
accept mail for instead of just forwarding ,then create aliases for the
internal names and pipe to bitbucket. Just did
it and it works like a charm..
Eddy
"Hubbard, David" wrote:
>
> Hey Raj,
> how do you do the forwarding to the internal mail
> server? Do you have a virtualdomains entry set up for
> indsoft.co.in? If so, let's pretend that you have an
> entry like this:
>
> indsoft.co.in:username
>
> And then maybe in username's directory, you have a .qmail*
> of some type that handles the forwarding to the internal
> mail server. I think you could create a rule in your
> /.../qmail/users/assign file that says something like
> =username-all:blockall:uid:gid:directory:::
> where the 'blockall', uid, and gid, are an actual user
> account on your front-end computer. In blockall's
> directory, you put a .qmail & .qmail-default that has
> your email address, [EMAIL PROTECTED]
>
> I think if you did that, the rule would catch any incoming
> [EMAIL PROTECTED] emails and forward them to you instead
> of to the internal mail server.
>
> Dave
>
> -----Original Message-----
> From: RajKumar S. [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 28, 2000 5:22 AM
> To: [EMAIL PROTECTED]
> Subject: blocking aliases
>
> hello all,
>
> I have qmail server as my external server which receives my external mail
> and fwds it to my internal (in the local network) sendmail which
> distributes to the users who are in the private local network.
>
> i have setup some aliases in the internal server like [EMAIL PROTECTED]
> which when activated will send the mail to all the users. obviously i have
> not activated it till i find a way to disable all external mails to the
> aliased accounts.
>
> ie i do not want any one outside to mail to the aliased mails address.
>
> any help will be much appreciated.
>
> raj
>
> PS: if you mail to [EMAIL PROTECTED] now the mail will be accepted but it
> will go to the inbox of the user all which is not used.
--