Postfix as a relay hub

This is a discussion on Postfix as a relay hub within the mailing.postfix.users forums, part of the Mail Servers and Related category; HI there! I am trying to setup Postfix for the first time (have used Sendmail only in the past) and ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-30-2006
David Collantes
 
Posts: n/a
Default Postfix as a relay hub

HI there!

I am trying to setup Postfix for the first time (have used Sendmail
only in the past) and I am running into a slight problem. Mainly, I
need to have this server, foobar.A.com, (which it is the MX record for
A.com domain) to "only" receive email for the A.com domain and 'pass
it' to the final server (running Exchange, exchange.A.com). At the same
time, I want it to "only" accept outbound from the Exchange
(exchange.A.com) server as well.

How should my main.cf look? Thank you in advance.

Reply With Quote
  #2 (permalink)  
Old 10-31-2006
Greg Hackney
 
Posts: n/a
Default Re: Postfix as a relay hub

David Collantes wrote:
> HI there!
>
> I am trying to setup Postfix for the first time (have used Sendmail
> only in the past) and I am running into a slight problem. Mainly, I
> need to have this server, foobar.A.com, (which it is the MX record for
> A.com domain) to "only" receive email for the A.com domain and 'pass
> it' to the final server (running Exchange, exchange.A.com). At the same
> time, I want it to "only" accept outbound from the Exchange
> (exchange.A.com) server as well.
>
> How should my main.cf look? Thank you in advance.


The "mynetworks" parameter is used to specify the hosts that
are trusted to send outgoing email. Assuming the IP address of
exchange.a.com is 1.2.3.4, then it would look like this:

mynetworks = 127.0.0.1, 1.2.3.4
relay_domains = a.com
transport_maps = hash:/etc/postfix/transport
address_verify_relayhost = exchange.a.com

--< /etc/postfix/transport >--
a.com smtp:[1.2.3.4]
--or--
a.com smtp:[exchange.a.com]


--
Greg

Reply With Quote
  #3 (permalink)  
Old 10-31-2006
David Collantes
 
Posts: n/a
Default Re: Postfix as a relay hub

Greg Hackney wrote:
> David Collantes wrote:
> > HI there!
> >
> > I am trying to setup Postfix for the first time (have used Sendmail
> > only in the past) and I am running into a slight problem. Mainly, I
> > need to have this server, foobar.A.com, (which it is the MX record for
> > A.com domain) to "only" receive email for the A.com domain and 'pass
> > it' to the final server (running Exchange, exchange.A.com). At the same
> > time, I want it to "only" accept outbound from the Exchange
> > (exchange.A.com) server as well.
> >
> > How should my main.cf look? Thank you in advance.

>
> The "mynetworks" parameter is used to specify the hosts that
> are trusted to send outgoing email. Assuming the IP address of
> exchange.a.com is 1.2.3.4, then it would look like this:
>
> mynetworks = 127.0.0.1, 1.2.3.4
> relay_domains = a.com
> transport_maps = hash:/etc/postfix/transport
> address_verify_relayhost = exchange.a.com
>
> --< /etc/postfix/transport >--
> a.com smtp:[1.2.3.4]
> --or--
> a.com smtp:[exchange.a.com]


Excellent Greg, thank you so much!!!

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 03:38 AM.


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