LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-18-2007, 05:41 AM   #1
namit
Member
 
Registered: Aug 2005
Distribution: Debian
Posts: 355

Rep: Reputation: 30
Postfix Configuration


Ok so i have setup my mail server using postfix.

My understanding is that this controls the sending and receiving of mail am i correct?
mail is sent threw port 25 on SMTP protocol?
mail is received threw port 25 also?

My configuration file is now this is a problem because anyone can send email threw my server and i do not want that. Because do not want to be a relay but i do want to handle my own emails going in and out.

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
alias_maps = hash:/etc/aliases
myorigin = $mydomain
mydestination = mymailserver.org, localhost.localdomain, localhost.localdomain, localhost
relayhost = mail.esat.net
mailbox_command = /usr/bin/procmail
mailbox_size_limit = 0
recipient_delimiter = +
home_mailbox = Maildir/

So i thought i would block the port forwarding to port 25 on my router but this did not help because I stopped receiving emails. Does this sound correct?

I have Dovocot setup with imaps to check my emails.

Thank you
 
Old 02-18-2007, 01:55 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
there's no mynetworks definition, which is probably where your problem is coming from. mynetworks defines what sources can use you as a relay, ie. who can give it mail not destined for the server itself, but some other domain (i.e. who you are sending mail to at hotmail etc..) so add that and you'll see a big difference, e.g. mynetworks=192.168.1.0/24 for a fairly standard local subnet.

and mail isn't sent and recieved on port 25 the way you suggest. smtp servers pass mail to other smtp servers, which all listen on port 25. so if someone sends YOU mail, they connect to YOUR port 25. if you send someone else mail, you connect to THEIR port 25, so it's exactly the same process, but from the other side, yeah?
 
  


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
Postfix configuration help. mdpolaris Linux - Software 7 10-06-2006 02:31 AM
Postfix Configuration ToothlessRebel Linux - Networking 8 03-05-2006 02:10 AM
postfix configuration jkmartha Linux - Newbie 1 04-22-2005 02:29 AM
Postfix configuration RomanG Linux - Newbie 7 04-04-2005 07:38 AM
PostFix Configuration triki Linux - Software 4 12-14-2003 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:16 PM.

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