How to relay ?

This is a discussion on How to relay ? within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; I now have a Postfix server running, and, of course, I run into main.cf... I have a domain, zzz....


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-02-2004
Erik
 
Posts: n/a
Default How to relay ?

I now have a Postfix server running, and, of course, I run into
main.cf...

I have a domain, zzz.com, and some people I want to relay mail to:
john@zzz.com
mary@zzz.com

They live out on the internet and have their own e-mail addresses,
like john@yahoo.com and mary@hotmail.com.

I can arrange (at my DNS hosting company) DNS to send all e-mail for
zzz.com to my Postfix server, which then has to "forward" (?) the mail
for john and mary to yahoo and hotmail.

So the PF server will handle all zzz.com mail.

How would I set up the main.cf to do that ?
(the mydomain variables etc)
what are the keywords here ? relay, aliases, forwarding ?

Which main.cf variables are to be set here ?

Would I have to build an aliases file like this for all my
"customers":

john: john@yahoo.com
mary: mary@hotmail.com

etc ?

friendly greetings,
Erik.
Reply With Quote
  #2 (permalink)  
Old 09-03-2004
Mike
 
Posts: n/a
Default Re: How to relay ?

On Thu, 02 Sep 2004 20:56:36 +0200, Erik <et57 at correos calor dot
com> wrote:

>I now have a Postfix server running, and, of course, I run into
>main.cf...
>
>I have a domain, zzz.com, and some people I want to relay mail to:
>john@zzz.com
>mary@zzz.com
>
>They live out on the internet and have their own e-mail addresses,
>like john@yahoo.com and mary@hotmail.com.
>
>I can arrange (at my DNS hosting company) DNS to send all e-mail for
>zzz.com to my Postfix server, which then has to "forward" (?) the mail
>for john and mary to yahoo and hotmail.
>
>So the PF server will handle all zzz.com mail.
>
>How would I set up the main.cf to do that ?
>(the mydomain variables etc)
>what are the keywords here ? relay, aliases, forwarding ?
>
>Which main.cf variables are to be set here ?
>
>Would I have to build an aliases file like this for all my
>"customers":
>
>john: john@yahoo.com
>mary: mary@hotmail.com
>
>etc ?
>
>friendly greetings,
>Erik.


Some DNS providers (zoneedit.com, for example) allow you to perform
the forwarding on their servers. It might be useful for you to check
with your DNS provider to see if they provide that service.
Reply With Quote
  #3 (permalink)  
Old 09-03-2004
Erik
 
Posts: n/a
Default Re: How to relay ?


>Some DNS providers (zoneedit.com, for example) allow you to perform
>the forwarding on their servers. It might be useful for you to check
>with your DNS provider to see if they provide that service.



For EVERY john Doe I decide to give an e-mail address under my domain
????

1: I want all e-mail for zzz.com to go to my Postfix server. My
provider has that facility for me.
2: I want to maintain a list of persons I want to receive and forward
e-mail for in this server
3: I want to have the server send the e-mail on to their respective
e-mail addresses at their own providers.

friendly greetings
Erik
Reply With Quote
  #4 (permalink)  
Old 09-03-2004
Mike
 
Posts: n/a
Default Re: How to relay ?

On Fri, 03 Sep 2004 18:16:50 +0200, Erik <et57 at correos calor dot
com> wrote:

>For EVERY john Doe I decide to give an e-mail address under my domain
>????


You won't find out unless/until you ask them, will you?

If you prefer to maintain your own server, that's fine by me
(actually, I really don't care one way or the other). I just wanted
to offer a simple alternate solution in case it helps someone.

I did what you are looking for with Postfix and virtual domains. I
have some of the virtual mailboxes hosts on the box, and some are
forwarded as you want.

Check the docs for:

virtual_mailbox_domains
virtual_mailbox_maps

http://archive.mgm51.com/mirrors/pos...tml#forwarding

That should get you going in the right direction.

Reply With Quote
  #5 (permalink)  
Old 09-03-2004
Mike
 
Posts: n/a
Default Re: How to relay ?


man 5 virtual

will tell you how to do virtual aliases. My Postfix setup is a bit
more complicated so the parms I mentioned below may or may not be
fully suitable for your needs. Follow the URL I suggested below and
the above man page for the best advice.




On Fri, 03 Sep 2004 15:00:01 -0400, Mike <NoSpam@NoSpam.net> wrote:

>On Fri, 03 Sep 2004 18:16:50 +0200, Erik <et57 at correos calor dot
>com> wrote:
>
>>For EVERY john Doe I decide to give an e-mail address under my domain
>>????

>
>You won't find out unless/until you ask them, will you?
>
>If you prefer to maintain your own server, that's fine by me
>(actually, I really don't care one way or the other). I just wanted
>to offer a simple alternate solution in case it helps someone.
>
>I did what you are looking for with Postfix and virtual domains. I
>have some of the virtual mailboxes hosts on the box, and some are
>forwarded as you want.
>
>Check the docs for:
>
> virtual_mailbox_domains
> virtual_mailbox_maps
>
>http://archive.mgm51.com/mirrors/pos...tml#forwarding
>
>That should get you going in the right direction.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:08 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0