LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Postfix SMTP issue (https://www.linuxquestions.org/questions/linux-software-2/postfix-smtp-issue-470638/)

cbekannan06 08-04-2006 01:03 AM

Postfix SMTP issue
 
Hi All,

I have installed postfix on redhat linux server Ver9, I have been using it for quite sometime and I have been facing a peculiar problem, This postfix mail server I have been using it for intra office communication, i.e only for internal office people communication only, but when I send mail to the internet address something like abc@linuxquestion.org or something like cbekannan@gmail.com, the mail goes out from mail server, I haven't given gateway or dns adress in the network configuration of my ethernet NIC, as server is not configured for internet use the mail should not route out of the local LAN, but in my case all our internal user are able to send mails to the outside world, I have to restrict this at the earliest, if anyone can help me out that would be great for me, I do run netstat -antp | grep 25 and I got the follwing message in my terminal,

[root@server2 postfix]# netstat -antp | grep 25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
3417/
tcp 0 0 127.0.0.1:54325 127.0.0.1:631 TIME_WAIT
-
tcp 0 0 192.168.27.35:139 192.168.27.44:4318 ESTABLISHED
28225/
tcp 0 0 192.168.27.35:139 192.168.27.25:1033 ESTABLISHED
27819/
tcp 0 0 192.168.27.35:139 192.168.27.48:1125 ESTABLISHED
27933/
[root@server2 postfix]#

Please help me out to resolve this problem.

Many thanks

Kannan B

MasterC 08-04-2006 01:11 AM

Can't you just pull it off the wan side of your network?

Also, can you post up your:
postconf -n
results so we can see your conf info. Feel free to remove personal/sensitive information (or simply alter it to something like example.com).

Cool

billymayday 08-04-2006 02:17 AM

This should do the job for you

http://www.postfix.org/RESTRICTION_C....html#external

cbekannan06 08-05-2006 12:15 AM

Hi...

Many thanks for replying, I have solved thism isssue by removing route information from my route entry, there was a route entry having 0.0.0.0 route with netmask 0.0.0.0 and through my internet gateway, I removed this entry by the command
"route del -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.0.1 etho" command and added a entry in main.cf "maximal-queue_lifetime = 0".
So this solved my problem and mails are not going out of my LAN as well as I'm getting the bounce back mail.

Many thanks

Kannan B


All times are GMT -5. The time now is 05:11 AM.