LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 04-27-2005, 05:32 PM   #1
pheasand
LQ Newbie
 
Registered: Sep 2004
Posts: 7

Rep: Reputation: 0
Postfis SMTP forwarding and Incoming SMTP


Hey all,

This is a two part question. For a while now I have been wanting to consolidate all my email on one server and then be able to browse the email via IMAP (all remote boxes are POP..yuck) I have fetchmail, postfix, and dovecotIMAP working just fine. My questions regard sending and recieving SMTP to the server directly. As I have it configured now, the client (my laptop) has an IMAP connection to my server. The laptop sends mail via my schools smtp server (idol). I have the relayhost=idol.union.edu variable set in main.cf. Does this mean that I can set my laptop to use my server as outbound smtp and it will relay it to idol?

(See my main.cf below)

In order for fetchmail to work I have opened port 25 on my firewall. Assuming that my school does not block port 25 incoming, how can I configure postfix to recieve incoming internet emails ? (I already have an entry in the school's DNS and static ip) Also, because 25 is open for fetchmail, how can i configure postfix to not accept outgoing smtp requests from the internet (i.e make sure the sever is secure) ?


Thanks for the help,

--Dave

<code>
## /etc/postfix/main.cf
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
myhostname = kernelpanic.union.edu
mydomain = union.edu
myorigin = kernelpanic.union.edu
inet_interfaces = localhost
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
mynetworks_style = subnet
relayhost = idol.union.edu
home_mailbox = .maildir/
mailbox_command = /usr/bin/procmail
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
setgid_group = postdrop
mailq_path = /usr/bin/mailq
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = /usr/share/doc/postfix-2.1.5-r2/readme
default_destination_concurrency_limit = 2
mail_spool_directory = /var/spool/mail/
alias_database = hash:/etc/mail/aliases
local_destination_concurrency_limit = 2
alias_maps = hash:/etc/mail/aliases

</code>
 
  


Reply



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
Limit incoming smtp connection by ip using iptables lynksinc Linux - Security 4 11-03-2005 12:27 PM
Mail forwarding via smtp w/rules Greg21 Linux - Software 1 04-29-2004 02:03 AM
Why Sendmail takes so much time to handle incoming SMTP packets? maxerg Linux - Networking 0 01-28-2004 08:07 PM
SMTP and KMail and SMTP and Netscape Mail jazz... Linux - Newbie 5 10-11-2003 03:49 AM
SMTP Forwarding lesath Linux - Networking 3 05-28-2001 08:26 AM

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

All times are GMT -5. The time now is 03:30 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