LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-24-2003, 05:25 AM   #1
adengua
Member
 
Registered: Oct 2003
Posts: 32

Rep: Reputation: 15
Good Question For postfix Experts


Help needed
Dear linux users , i have just migrated to linux i dont have much knowledge about linux . I need help on postfix-2.0.16-3 configuration.

Notes
1. I have a registered domain name. ( mydomain1.com )

2. I have 2 PCs on my LAN both of them having their IP 's NAT differently

Lets say PC AA and PC BB

PC AA is hosting my domain ( mydomain1.com ) {O/S windows 2000}
PC BB is hosting postfix ( BB.mydomain1.com ) {O/S redhat Linux 9.0}

3. PC AA has no A and MX records configured. only mydomain1.com configured just
for my webpage.

HELP HELP

HOW DO I CONFIGURE POSTFIX TO RECEIVE MAIL FOR mydomain1.com
i.e main.cf , master.cf , bind , MX ,A records etc.....

i have surffed the internet for docs related to this topic but all in vein

I can send mail to internet say user@hotmail.com
but i can't receive when i reply to that mail.

i can also send and receive mail only on LAN



main.cf
/////////////////////////////////////////////////////////////////////////////////////
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_privs = nobody
inet_interfaces = all
local_destination_concurrency_limit = 2
local_recipient_maps = unixasswd.byname $alias_maps
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail -a "$EXTENSION"
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, $mydomain
mydomain = ekinata.com
myhostname = moses.ekinata.com
mynetworks = 192.168.0.0/24, 195.128.33.0/24, 127.0.0.0/8
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /etc/postfix/README_FILES
relay_domains = $mydestination
relay_recipient_maps = hash:/etc/postfix/relay_recipients
sample_directory = /etc/postfix/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
unknown_local_recipient_reject_code = 450
//////////////////////////////////////////////////////////////////////////////////////
 
Old 10-24-2003, 05:31 AM   #2
jsmith22046
LQ Newbie
 
Registered: Oct 2003
Location: North Carolina
Distribution: Red Hat 9
Posts: 17

Rep: Reputation: 0
Are you blocking that port with iptables? /etc/rc.d/init.d/iptables is Red Hat's default proxy and it seems like that might sound like your problem. I am not all that experienced with iptables but I hope I can point you in the right direction. Sorry if it doesn't help.

Jeff Smith
 
Old 10-24-2003, 05:54 AM   #3
adengua
Member
 
Registered: Oct 2003
Posts: 32

Original Poster
Rep: Reputation: 15
iptables

i am not sure .. how can itell that i am blocking it ???
using
/etc/rc.d/init.d/iptables

i only use /etc/rc.d/init.d/postfix start for reloading and stopping postfix
coud these be the problem
 
Old 10-24-2003, 06:35 AM   #4
daveo
Member
 
Registered: Sep 2003
Location: Holland
Distribution: Gentoo 1.4, Slackware
Posts: 196

Rep: Reputation: 30
Re: Good Question For postfix Experts

Quote:
Originally posted by adengua
Help needed
Dear linux users , i have just migrated to linux i dont have much knowledge about linux . I need help on postfix-2.0.16-3 configuration.

Notes
1. I have a registered domain name. ( mydomain1.com )

2. I have 2 PCs on my LAN both of them having their IP 's NAT differently

Lets say PC AA and PC BB

PC AA is hosting my domain ( mydomain1.com ) {O/S windows 2000}
PC BB is hosting postfix ( BB.mydomain1.com ) {O/S redhat Linux 9.0}

3. PC AA has no A and MX records configured. only mydomain1.com configured just
for my webpage.

HELP HELP

HOW DO I CONFIGURE POSTFIX TO RECEIVE MAIL FOR mydomain1.com
i.e main.cf , master.cf , bind , MX ,A records etc.....

i have surffed the internet for docs related to this topic but all in vein

I can send mail to internet say user@hotmail.com
but i can't receive when i reply to that mail.

i can also send and receive mail only on LAN



main.cf
/////////////////////////////////////////////////////////////////////////////////////
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_privs = nobody
inet_interfaces = all
local_destination_concurrency_limit = 2
local_recipient_maps = unixasswd.byname $alias_maps
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail -a "$EXTENSION"
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, $mydomain
mydomain = ekinata.com
myhostname = moses.ekinata.com
mynetworks = 192.168.0.0/24, 195.128.33.0/24, 127.0.0.0/8
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /etc/postfix/README_FILES
relay_domains = $mydestination
relay_recipient_maps = hash:/etc/postfix/relay_recipients
sample_directory = /etc/postfix/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
unknown_local_recipient_reject_code = 450
//////////////////////////////////////////////////////////////////////////////////////
Ok, i'm missing something here. You say that you didn't have any A or MX record configured right? So I assume that you are not running a dns server and have that part hosted by an isp. In the dns you need:

An MX record, which has the IP address of the mail-server together with a name e.q mail.yourdomain.com, so every mail-server on the internet is able to get MX info out of the dns and deliver it to your machine.

I'm unsure what you exactly mean, because of the dns part (which you are actually not running right?

Hope this helps,
 
Old 10-24-2003, 09:09 AM   #5
adengua
Member
 
Registered: Oct 2003
Posts: 32

Original Poster
Rep: Reputation: 15
thanks very much

Thanks alot for your help

i configured the MX records on PCAA to point to PCBB
and now its working fine

Thanks alot thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
A Question for the Experts tstrickland Linux - Newbie 3 07-26-2005 11:23 PM
Just a question...maybe for experts, not like me :P frenchi Linux - Networking 7 12-27-2003 09:43 AM
Good Question For Postfix Experts adengua Red Hat 1 10-24-2003 04:40 PM
Good Question for Postfix Experts adengua Linux - Software 4 10-24-2003 09:12 AM
Good Question for Postfix Experts adengua Linux - Networking 0 10-24-2003 05:27 AM


All times are GMT -5. The time now is 08:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration