One hack is to write a simple shell script, mine is called qmail-aliasemail,
that calls fastforward then runs another process if the user is still not
found.
This is a real simplified version but it should get you started. To use it
change you .qmail-default to call this script instead of fatforward. This
script will still bounce the messages but get you a copy of them too. If you
want to just absorbe the messages change the exit to exit 0.
#####
MailAgent={put in your path to your delivery wrapper}
Temp_File=/tmp/Temp_Alias_File.$$
cat > $Temp_File
fastforward -d /etc/aliases.cdb < $Temp_File
Return_Val=$?
if [ "$Return_Val" != "0" ]
then
$MailAgent {put in desired email address} < $Temp_File
fi
rm $Temp_File
exit $Return_Val
#####
Kep
_____
ants.com <http://www.ants.com> scout <http://www.ants.com/scout>
Kep Brown
Systems, Network and Database Administrator
phone: (805) 560-3781
fax: (805) 560-3991
e: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
-----Original Message-----
From: root [mailto:root]On Behalf Of Massimo Quintini
Sent: Wednesday, March 21, 2001 7:47 AM
To: Jörgen Persson; [EMAIL PROTECTED]
Subject: Re: no mailbox here(#5.1.1) - don't works!
I have seen the /var/log/maillog...
.. there is the msgs
1) "Sorry, no mailbox here ....."
2) starting delivery to remote [EMAIL PROTECTED] (the sender)
3) delivery success . Remote_host_said .....
Massimo.
Jörgen Persson wrote:
> On Wed, Mar 21, 2001 at 01:10:31PM -0200, Massimo Quintini wrote:
> > Don't works!!!
> >
> > 1) in ~alias/.qmail-default I had 1 line with |fastforward ....
> > 2) I have added a line with &[EMAIL PROTECTED]
> > 3) I have sent a msg from hotmail to mydomain....
> >
> > ... but it dont works !!!!
>
> How do you know?? What does the logs say (tm)??
> Jörgen
>
> >
> > I must re-start qmail ????
> >
> > thanks. Massimo
> >
> >
> > Shirish Bhagwat wrote:
> >
> > > Hi, what if my .qmail-default already contains following line
> > > =-=-=
> > > | fastforward -d /etc/aliases.cdb
> > > =-=-=
> > >
> > > Can I still add it there?
> > >
> > > - shirish
> > >
> > > Jörgen Persson wrote:
> > >
> > > > On Wed, Mar 21, 2001 at 11:19:09AM -0200, Massimo Quintini wrote:
> > > > >
> > > > > My QMAIL sends notification "Sorry, no mailbox here by that name.
> > > > > (#5.1.1)" to the sender for any unknown user in my domain.
> > > > >
> > > > > I WANT THESE MESSAGES IN A MAILBOX (e.g. postmaster)...HOW ???
> > > > [snip]
> > > >
> > > > let me rephrase you
> > > > > I want these messages in a mailbox (e.g. postmaster)...how ???
> > > >
> > > > Aaah... much better
> > > >
> > > > # echo postmaster > ~alias/.qmail-default
> > > >
> > > > Jörgen
> >
> > --
> >
==========================================================================
> > MASSIMO QUINTINI - Osservatorio Astronomico Collurania Teramo (O.A.C.T.)
=
> > Via Mentore Maggini s.n.c. - 64100 TERAMO (Italy)
=
> > Tel:39-0861.210490 Fax:39-0861.210492 http://www.te.astro.it
=
> >
==========================================================================
> >
> >
> >
--
==========================================================================
MASSIMO QUINTINI - Osservatorio Astronomico Collurania Teramo (O.A.C.T.) =
Via Mentore Maggini s.n.c. - 64100 TERAMO (Italy) =
Tel:39-0861.210490 Fax:39-0861.210492 http://www.te.astro.it =
==========================================================================