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>
|