[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .qmail-default forwards to another server?



* Jonas Pasche <qmail@jonaspasche.de> [020402 17:06]:
> > Got a somewhat weird one here.  A customer says that their previous ISP
> > hosted 1 email account for their domain and then forward all "bounced"
> > messages to their internal mail server.  I'm familiar with forwarding to
> > local or remote accounts, but not to another server, so am wondering if
> > anyone else has heard of this and knows how to do it?
> 
> $ cat ~alias/.qmail-default:
> |forward $LOCAL@my.otherdomain.com

I think you want:

  |forward "$DEFAULT"@my.otherdomain.com

instead. $LOCAL isn't always what you want it to be, especially if you are
using virtualdomains. Also, isn't it always a good idea to quote env. vars.?
I dunno, but better safe than sorry, esp. if my.otherdomain.com is running
an inferior MTA that doesn't deal with that sort of thing well...

/pg
-- 
Peter Green : Architekton Internet Services, LLC : pcg@ais.cx
-------------------------------------------------------------
It's now the GNU Emacs of all terminal emulators.
(Linus Torvalds, regarding the fact that Linux started off as a terminal
emulator.)