Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Having trouble wrapping my head around sending notifications from linux box to us windows users. If I try to telnet to our public ip for our exchange server I get connection refused which is fine. If I try it by netbios name it works because I have told exchange to allow the linux box. My question is how can I set up postfix correctly so when it wants to send an email to person@publicdomain.com that it uses our internal network and not try to connect externally?
a.) Save date stamped copy of “main.cf” and “generic” in /etc/postfix.
b.) Modify original main.cf to contain line that has
relayhost = <your exchange relay hostname>
Insure all other relayhost lines are commented out.
Here we use the short name for our servers [set in /etc/sysconfig/network on RHEL]. You can skip remaining steps if you use FQDN names rather than short names.
c.) Modify the end of the main.cf file to have the following:
# Generic mapping due to short name rather than FQDN in /etc/sysconfig/network
# dd-Mmm-CCYY <your ID>
smtp_generic_maps = hash:/etc/postfix/generic
d.) Modify the original “generic” file to have the following at the end:
# Generic mapping due to use of short name rather than FQDN in /etc/network
# dd-Mmm-CCYY <your ID>
@<postfix server hostname.localdomain @<postfix server hostname>.<yourdomain>
e.) Run "postmap /etc/postfix/generic"
f.) Send test emails from servers and verify it comes showing FQDN to you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.