Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-24-2003, 04:23 AM   #1
Registered: Oct 2003
Posts: 32

Rep: Reputation: 15
Question 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.

1. I have a registered domain name. ( )

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 ( ) {O/S windows 2000}
PC BB is hosting postfix ( ) {O/S redhat Linux 9.0}

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


i.e , , 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
but i can't receive when i reply to that mail.

i can also send and receive mail only on LAN
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 =
myhostname =
mynetworks =,,
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, 04:37 AM   #2
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Re: Good Question for Postfix Experts

Originally posted by adengua
PC AA is hosting my domain ( ) {O/S windows 2000}
PC BB is hosting postfix ( ) {O/S redhat Linux 9.0}

First you need an MX record for your domain pointing to Mail servers the net wide will then send mail for to the Postfix server on BB (the postfix *is* accessible from the internet, is it not?).

Then you simply add to mydestinations in Postfix will then consider mail to as local and will deliver it to the mailbox for user on BB. If you want it to be delivered elsewhere, you can work through aliases or recipient canonical maps.

You could also run a POP or IMAP server on BB so that users on other machines on the LAN can get their mail from it.

Good luck!
Old 10-24-2003, 05:08 AM   #3
Registered: Oct 2003
Posts: 32

Original Poster
Rep: Reputation: 15
i have MX records at

but i dont have a registered domain on BB its only on AA

do i need to add MX records at AA too?

i tried what you said by adding to mydestinations still not working
Old 10-24-2003, 07:13 AM   #4
LQ Newbie
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
Try using 'dig -t mx' from your linux machine.

If it doesn't show in the ANSWER SECTION: as the MX with the smallest number, your mail will never get to you.

Code:          8640      IN     MX      10
It sounds to me as if you don't have your DNS records implemented properly.
Old 10-24-2003, 08:12 AM   #5
Registered: Oct 2003
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks alot for your help

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

Thanks alot thanks


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 10:23 PM
Just a question...maybe for experts, not like me :P frenchi Linux - Networking 7 12-27-2003 08:43 AM
Good Question For Postfix Experts adengua Red Hat 1 10-24-2003 03:40 PM
Good Question For postfix Experts adengua Linux - Newbie 4 10-24-2003 08:09 AM
Good Question for Postfix Experts adengua Linux - Networking 0 10-24-2003 04:27 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:35 PM.

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