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 = unix:passwd.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 ////////////////////////////////////////////////////////////////////////////////////// |
Re: Good Question for Postfix Experts
Quote:
Then you simply add mydomain.com to mydestinations in main.cf. Postfix will then consider mail to user@mydomain.com 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! |
i have MX records at BB.mydomain1.com
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 mydomain1.com to mydestinations still not working |
Try using 'dig -t mx mydomain.com' from your linux machine.
If it doesn't show in the ANSWER SECTION: BB.mydomain.com as the MX with the smallest number, your mail will never get to you. Code:
mydomain.com 8640 IN MX 10 BB.mydomain.com |
Thanks alot for your help
i configured the MX records on PCAA to point to PCBB and now its working fine Thanks alot thanks |
All times are GMT -5. The time now is 02:31 PM. |