please help me config POSTFIX

Talk about any thing that related to networking, running servers with *nux.

Moderator: kalinga

please help me config POSTFIX

Postby needee » Fri Oct 12, 2007 1:27 pm

Internet_Mail_Server FQDN: mail.test.com
Internet_Mail_Server MTA: POSTFIX, and facing the internet


have to configure Internet_Mail_Server so that it will forward/pass all the emails for test.com domain to the Local_Mail_Server(10.0.0.125/24)

have to configure Internet_Mail_Server so that it will ACCEPT all the emails(going to internet) comming from Local_Mail_Server and then forward/pass those emails TO internet

Regards
needee
 
Posts: 2
Joined: Fri Oct 12, 2007 12:35 pm

Postby kalinga » Mon Oct 15, 2007 10:24 am

show me your postfix configurations...
kalinga
Site Admin
 
Posts: 209
Joined: Fri Oct 14, 2005 3:19 pm
Location: Sri Lanka

Postby needee » Wed Oct 17, 2007 11:06 am

Thanks Kalinga for help

Yet Didnt configure the Internet_Mail_Server(need help)

Postfix configuration of Local_Mail_Server are :

myhostname = local.test.com
mydomain = test.com
myorigin = test.com
inet_interfaces = all
mydestination = $myhostname, localhost, $mydomain
mynetworks = 127.0.0.0/8, 10.0.0.0/24

rest of the options are all the default.


Now I need help to configure the

1, Local_Mail_Server to forward all the emails for outside/INTERNET to the Internet_Mail_Server(mail.test.com, private ip 10.0.0.225/24)

2, Internet_Mail_Server so that it will ACCEPT all the emails(going to internet) comming from Local_Mail_Server and then forward/pass those emails TO internet

3, Internet_Mail_Server so that it will forward/pass all the emails for test.com domain(comming from internet/outside) to the Local_Mail_Server(10.0.0.125/24)

Regards
needee
 
Posts: 2
Joined: Fri Oct 12, 2007 12:35 pm

Postby kalinga » Wed Oct 17, 2007 1:47 pm

Setup is like

<---INTERNET---> POSTFIX <---> Local Mail Server


on this im taking as your domain as 123.com and your local mail server ip as 1.2.3.4



postfix config

main.cf


Code: Select all
myhostname = relay.123.com
mydomain = relay.123.com
myorigin = relay.123.com
inet_interfaces = all
mydestination = $myhostname, localhost, $mydomain
mynetworks = 127.0.0.0/8, 10.0.0.0/24

relay_domains = 123.com

transport_maps = hash:/etc/postfix/transport

smtpd_recipient_restrictions =  reject_non_fqdn_recipient
               reject_unknown_recipient_domain
                permit_mynetworks
                reject_unauth_destination



---

transport file should be like


Code: Select all
123.com        smtp:[1.2.3.4]




---


make sure to postmap the file

Code: Select all
postmap /etc/postfix/transport



reload postfix, should work fine :)
kalinga
Site Admin
 
Posts: 209
Joined: Fri Oct 14, 2005 3:19 pm
Location: Sri Lanka


Return to Linux - Networking

Who is online

Users browsing this forum: No registered users and 1 guest

cron