On Saturday 30 August 2003 11:16, Ako Ito wrote:
> how can i configure postfix to just forward any incoming emails to another
> domain..

vi /etc/postfix/aliases

> [EMAIL PROTECTED] ---forward ---> [EMAIL PROTECTED]

add the line:

[EMAIL PROTECTED]: [EMAIL PROTECTED]

exit the editor and run newaliases (this is how i did it in sendmail, so
this is how i do it in postfix, the sendmail drop in replacement :).

you can specify multiple destination (right hand side) addresses, just
separate them with a space (not sure, but maybe comma works too).

unfortunately:

> can it also be configured that for  specific users.. an email would also be
> stored to an example.com mailbox and be accessed by pop/imap and still
> forward a copy of the email to the example.ph domain?

in this case, alias doesn't work because i don't think it can keep a copy for
itself, it just always forwards to the aliases.  a workaround would be to
forward to a new emailaddress, e.g., [EMAIL PROTECTED]  but that's not 
nice since you create a lot of new names and pollute the namespace.
better would be jopoy's .forward solution.  in /home/ako you create the
.forward file and put this in there:

\ako
[EMAIL PROTECTED]

the first line says send a copy to yourself and keep it in your mailbox.  the
second line forwards to the other address.  be careful about mail loops.  you
can bring down mail servers with this if you have two addresses that forward
to each other (well, if they're not configured to handle loops correctly).

tiger
-- 
Gerald Timothy Quimpo  gquimpo*hotmail.com tiger*sni*ph
http://bopolissimus.sni.ph
Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78"

    Adding manpower to a late software project makes it later.
                            "Brook's Law"
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to