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....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
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. |
|
|||
|
>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 |
|
|||
|
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. |
|
|||
|
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. |