LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-04-2006, 01:03 AM   #1
cbekannan06
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Rep: Reputation: 0
Lightbulb 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
 
Old 08-04-2006, 01:11 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 08-04-2006, 02:17 AM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
This should do the job for you

http://www.postfix.org/RESTRICTION_C....html#external
 
Old 08-05-2006, 12:15 AM   #4
cbekannan06
LQ Newbie
 
Registered: Mar 2006
Posts: 7

Original Poster
Rep: Reputation: 0
Lightbulb

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
 
  


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
SMTP with POSTFIX shipon_97 Linux - Newbie 2 05-02-2006 03:33 PM
Postfix - Using for SMTP wfernley Linux - Newbie 3 12-29-2005 08:22 AM
postfix smtp issue(s) (fedora core 4) alfNtexas Linux - Software 4 10-05-2005 03:44 AM
Postfix and SMTP Phaethar Linux - Software 0 03-09-2004 08:29 AM
Help with Postfix and SMTP????? graystarr Linux - Software 1 03-10-2003 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:22 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
Open Source Consulting | Domain Registration