OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Postfix Archives: Re: .forward files?

Re: .forward files?


Jim Seymour (jseymourjimsun.LinxNet.com)
Sat, 13 Nov 1999 09:48:13 -0500 (EST)


In message <Pine.BSO.4.10.9911130521270.17036-100000NOC.maKintosh.com>,
dated Sat, 13 Nov 1999 05:23:13 -0600 (CST),
"John K." <johnNOC.maKintosh.com> wrote regarding the subject ".forward files?":
>
> Hello. I'm having a mail forwarding problem. My normal email account is
> 'johnmaKintosh.com'. I'm trying to setup 'john-pagermaKintosh.com' to
> forward to 'mypagersemailaddress.com'. I was using a .forward file that
> contained 'john-pager mypagersemailaddress.com' but it seems to recieve
> both messages from 'john' and 'john-pager'. Any ideas?

I think perhaps you misunderstand the .forward file. From
.../rewrite.html#forward:

    Per-user .forward files

    Users can control their own mail delivery by specifying
    destinations in a file called .forward in their home directories.
    The syntax of these files is the same as with system aliases,
    except that the lookup key and colon are not present.

In other words: a .forward file can contain only the right-hand side of
what you might put in an aliases file. This is normal behaviour, and
not specific to Postfix.

If you enable address extensions by specifying a recipient_delimiter in
main.cf (traditionally, but not necessarily, "+") on the destination
machine, you could do:

    ~/.forward+pager:
        mypagersemailaddress.com

so email sent to "john+pagermaKintosh.com" would be forwarded to the
pager. Likewise:

    ~/.forward+pager:
        mypagersemailaddress.com,/home/john/Mail/pagerlog

would forward the email to the pager email address and save a copy in
a local mail folder. (Note: "/home/john/Mail/pagerlog" assumes that
the your home directory on your machine is "/home/john" and that your
mail folders are stashed in a sub-directory named "Mail" off your home
directory.)

Note also that if "john" appears in the system aliases file for
wherever mail to "johnmaKintosh.com" is delivered, as is not uncommon
(i.e.: "john john<wherever>"), you'll also have to add the following
line to Postfix's main.cf on that destination host:

    propagate_unmatched_extensions = canonical, virtual, alias

The default is only canonical and virtual. (Caveat: I don't know if
there are other implications to adding "alias" to that parameter!)

Regards,
Jim

-- 
Jim Seymour                  | PGP Public Key available at:
jseymourjimsun.LinxNet.com  | http://www.uk.pgp.net/pgpnet/pks-commands.html
http://home.msen.com/~jimsun | http://www.trustcenter.de/cgi-bin/SearchCert.cgi



This archive was generated by hypermail 2.0b3 on Sat Nov 13 1999 - 08:48:18 CST